Skip to content

Commit 3158d2d

Browse files
committed
add link to google cloud
Signed-off-by: vsoch <[email protected]>
1 parent 8e69d2d commit 3158d2d

File tree

3 files changed

+41
-9
lines changed

3 files changed

+41
-9
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
- [flux-in-slurm](tutorial/flux-in-slurm): Bring up a Flux instance (in user-space) in a Slurm Allocation - both in Kubernetes ([video](https://youtu.be/8ZkSLV0m7To?si=WqWKCe2jvRuTXvlJ))
88
- [Flux on AWS](tutorial/aws): Deploy an entire Flux Framework cluster to "bare metal" instances on AWS with (essentially) two `make` commands - one to build with packer, and one to deploy with Terraform ([video](https://youtu.be/LJh-ab6fAqE?si=dIzScA530N7lXs_7))
99
- [Flux on Azure](tutorial/azure): Deploy Flux Framework on Azure with Infiniband
10-
- [Flux on Google](tutorial/google): Deploy Flux Framework on Google Cloud
10+
- [Flux on Google](tutorial/google): Deploy Flux Framework on Google Cloud ([video](https://youtu.be/-EUE7Q6OI-8?si=F1UuFMRc71ddifDZ))
1111
- [HPCIC Tutorial 2024](https://youtu.be/Dt4CSZWSEJE?si=b2O7lQrJixcKh-EJ)
1212

1313
## What is this?

tutorial/google/build-images/build.sh

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,5 +221,24 @@ export VERSION=4.0.1 && \
221221
# Along with the /etc/flux/system/R
222222
sudo mkdir -p /etc/flux/system
223223

224+
# Memory / file limits
225+
cat <<EOF | tee /tmp/memory
226+
* soft nproc unlimited
227+
* hard nproc unlimited
228+
* soft memlock unlimited
229+
* hard memlock unlimited
230+
* soft stack unlimited
231+
* hard stack unlimited
232+
* soft nofile unlimited
233+
* hard nofile unlimited
234+
* soft cpu unlimited
235+
* hard cpu unlimited
236+
* soft rtprio unlimited
237+
* hard rtprio unlimited
238+
EOF
239+
240+
sudo cp /tmp/memory /etc/security/limits.d/98-google-hpc-image.conf
241+
sudo cp /tmp/memory /etc/security/limits.conf
242+
224243
#
225244
# At this point we have what we need!

tutorial/google/tf/basic.tfvars

Lines changed: 21 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,14 @@ compute_node_specs = [
33
{
44
name_prefix = "flux"
55
machine_arch = "x86-64"
6-
machine_type = "c2d-standard-112"
7-
gpu_type = null
8-
gpu_count = 0
9-
compact = false
10-
instances = 2
11-
properties = []
12-
boot_script = <<BOOT_SCRIPT
6+
machine_type = "c2d-standard-16"
7+
# machine_type = "c2d-standard-112"
8+
gpu_type = null
9+
gpu_count = 0
10+
compact = false
11+
instances = 2
12+
properties = []
13+
boot_script = <<BOOT_SCRIPT
1314
#!/bin/sh
1415
1516
# This is already built into the image
@@ -34,6 +35,16 @@ sudo mkdir -p /run/flux
3435
mkdir -p /opt/run/flux
3536
sudo chown -R flux /run/flux /opt/run/flux
3637
38+
# Write imp toml configuration
39+
40+
cat <<EOF | tee /tmp/imp.toml
41+
# Only allow access to the IMP exec method by the 'flux' user.
42+
# Only allow the installed version of flux-shell(1) to be executed.
43+
[exec]
44+
allowed-users = [ "flux" ]
45+
allowed-shells = [ "/usr/libexec/flux/flux-shell" ]
46+
EOF
47+
3748
# Write updated broker.toml
3849
cat <<EOF | tee /tmp/broker.toml
3950
# Flux needs to know the path to the IMP executable
@@ -77,8 +88,9 @@ hosts = [
7788
tcp_user_timeout = "2m"
7889
EOF
7990
80-
sudo mkdir -p /etc/flux/system/conf.d /etc/flux/system/cron.d
91+
sudo mkdir -p /etc/flux/system/conf.d /etc/flux/system/cron.d /etc/flux/imp/conf.d
8192
sudo mv /tmp/broker.toml /etc/flux/system/conf.d/broker.toml
93+
sudo mv /tmp/imp.toml /etc/flux/imp/conf.d/imp.toml
8294
8395
# Write new service file
8496
cat <<EOF | tee /tmp/flux.service
@@ -108,6 +120,7 @@ ExecStart=/bin/bash -c '/usr/bin/flux broker \
108120
SyslogIdentifier=flux
109121
ExecReload=/usr/bin/flux config reload
110122
LimitMEMLOCK=infinity
123+
LimitNOFILE=infinity
111124
TasksMax=infinity
112125
LimitNPROC=infinity
113126
Restart=always

0 commit comments

Comments
 (0)