Skip to content

Commit

Permalink
Merge pull request #3129 from GeorgianaElena/hhmi-hub-cluster
Browse files Browse the repository at this point in the history
Add hhmi cluster
  • Loading branch information
GeorgianaElena authored Sep 14, 2023
2 parents 3dbddf1 + 47377ff commit 01b685c
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 12 deletions.
16 changes: 4 additions & 12 deletions terraform/gcp/projects/daskhub-template.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -25,26 +25,18 @@ enable_filestore = true
filestore_capacity_gb = 1024

user_buckets = {
"scratch-staging" : {
"delete_after" : 7
},
"scratch" : {
"scratch-{{ hub_name }}" : {
"delete_after" : 7
},
# Tip: add more scratch buckets below, if this cluster will be multi-tenant
}

hub_cloud_permissions = {
"staging" : {
"{{ hub_name }}" : {
requestor_pays : true,
bucket_admin_access : ["scratch-staging", "persistent-staging"],
hub_namespace : "staging"
bucket_admin_access : ["scratch-{{ hub_name }}"],
hub_namespace : "{{ hub_name }}"
},
"prod" : {
requestor_pays : true,
bucket_admin_access : ["scratch", "persistent"],
hub_namespace : "prod"
}
# Tip: add more namespaces below, if this cluster will be multi-tenant
}

Expand Down
53 changes: 53 additions & 0 deletions terraform/gcp/projects/hhmi.tfvars
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
prefix = "hhmi"
project_id = "hhmi"

zone = "us-west2"
region = "us-west2"

# Default to a HA cluster for reliability
regional_cluster = true

core_node_machine_type = "n2-highmem-4"

# Network policy is required to enforce separation between hubs on multi-tenant clusters
# Tip: uncomment the line below if this cluster will be multi-tenant
# enable_network_policy = true

# Setup a filestore for in-cluster NFS
enable_filestore = true
filestore_capacity_gb = 1024

user_buckets = {}
hub_cloud_permissions = {}

# Setup notebook node pools
notebook_nodes = {
"small" : {
min : 0,
max : 100,
machine_type : "n2-highmem-4",
},
"medium" : {
min : 0,
max : 100,
machine_type : "n2-highmem-16",
},
"large" : {
min : 0,
max : 100,
machine_type : "n2-highmem-64",
},
}

# Setup a single node pool for dask workers.
#
# A not yet fully established policy is being developed about using a single
# node pool, see https://github.com/2i2c-org/infrastructure/issues/2687.
#
dask_nodes = {
"worker" : {
min : 0,
max : 200,
machine_type : "n2-highmem-16",
},
}

0 comments on commit 01b685c

Please sign in to comment.