Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
62 lines (50 sloc) 1.44 KB
# Elasticluster Configuration Template
# ====================================
# Author: Hatef Monajemi (July 18)
# Stats285 Stanford
# Create a cloud provider (call it "google-cloud")
[cloud/google]
provider=google
noauth_local_webserver=True
gce_client_id=<CLIENT>
gce_client_secret=<SECRET>
gce_project_id=<PROJECT>
zone=us-west1-b
[login/google]
# Do not include @gmail (example: monajemi@gmail.com -> monajemi)
image_user=<GMAIL_ID>
image_user_sudo=root
image_sudo=True
user_key_name=elasticluster
user_key_private=~/.ssh/id_rsa
user_key_public=~/.ssh/id_rsa.pub
[setup/ansible-slurm]
provider=ansible
frontend_groups=slurm_master
compute_groups=slurm_worker,cuda
# allow restart of compute nodes
compute_var_allow_reboot=yes
global_var_slurm_taskplugin=task/cgroup
global_var_slurm_proctracktype=proctrack/cgroup
global_var_slurm_jobacctgathertype=jobacct_gather/cgroup
[cluster/gce]
cloud=google
login=google
setup=ansible-slurm
security_group=default
image_id=ubuntu-1604-xenial-v20171107b
frontend_nodes=1
compute_nodes=2
ssh_to=frontend
# Ask for 500G of disk
boot_disk_type=pd-standard
boot_disk_size=500
[cluster/gce/frontend]
flavor=n1-standard-8
# add 2x GPUs (NVidia Tesla K80) to the compute nodes
# note that as of Nov. 2017, GPU-enabled VMs are available only in few zones
# use `gcloud compute accelerator-types list` to see what is available
[cluster/gce/compute]
flavor=n1-standard-8
accelerator_count=2
accelerator_type=nvidia-tesla-k80