Skip to content

Commit

Permalink
Merge pull request #1193 from yuvipanda/minzie
Browse files Browse the repository at this point in the history
Use minSize property for scaling eksctl nodes
  • Loading branch information
yuvipanda authored Apr 18, 2022
2 parents f20cbb9 + f67a6a1 commit 7b6d316
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 deletions.
6 changes: 3 additions & 3 deletions docs/howto/operate/new-cluster/aws.md
Original file line number Diff line number Diff line change
Expand Up @@ -204,11 +204,11 @@ minimum and maximum number of nodes. In certain cases, it might be helpful to 's
a nodegroup in a cluster before an event, to test cloud provider quotas or to make user
server startup faster.

1. Open the appropriate `.jsonnet` file for the cluster in question, and set the
`minNodes` property of `notebookNodes` to the appropriate number you want.
1. Open the appropriate `.jsonnet` file for the cluster in question, and set a
`minSize` property of `notebookNodes` to the appropriate number you want.

```{warning}
It is currently unclear if *lowering* the `minNodes` property just allows
It is currently unclear if *lowering* the `minSize` property just allows
the autoscaler to reclaim nodes, or if it actively destroys nodes at time
of application! If it actively destroys nodes, it is unclear if it does
so regardless of user pods running in these nodes! Until this can be
Expand Down
14 changes: 7 additions & 7 deletions eksctl/carbonplan.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ local namespaces = ['staging', 'prod'];
// A `node.kubernetes.io/instance-type label is added, so pods
// can request a particular kind of node with a nodeSelector
local notebookNodes = [
{ instanceType: "r5.large", minNodes: 0 },
{ instanceType: "r5.xlarge", minNodes: 0 },
{ instanceType: "r5.2xlarge", minNodes: 0 },
{ instanceType: "r5.8xlarge", minNodes: 0 },
{ instanceType: "x1.16xlarge", minNodes: 0 },
{ instanceType: "x1.32xlarge", minNodes: 0 }
{ instanceType: "r5.large" },
{ instanceType: "r5.xlarge" },
{ instanceType: "r5.2xlarge" },
{ instanceType: "r5.8xlarge" },
{ instanceType: "x1.16xlarge" },
{ instanceType: "x1.32xlarge" }
];

// Node definitions for dask worker nodes. Config here is merged
Expand Down Expand Up @@ -80,7 +80,7 @@ local daskNodes = [
// instanceTypes always have a .
name: "nb-%s" % std.strReplace(n.instanceType, ".", "-"),
availabilityZones: [nodeAz],
minSize: n.minNodes,
minSize: 0,
maxSize: 500,
instanceType: n.instanceType,
ssh: {
Expand Down
10 changes: 5 additions & 5 deletions eksctl/openscapes.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ local namespaces = ['staging', 'prod'];
// A `node.kubernetes.io/instance-type label is added, so pods
// can request a particular kind of node with a nodeSelector
local notebookNodes = [
{ instanceType: "m5.large", minNodes: 0 },
{ instanceType: "m5.xlarge", minNodes: 0 },
{ instanceType: "m5.2xlarge", minNodes: 0 },
{ instanceType: "m5.8xlarge", minNodes: 0 },
{ instanceType: "m5.large" },
{ instanceType: "m5.xlarge" },
{ instanceType: "m5.2xlarge" },
{ instanceType: "m5.8xlarge" },
];

// Node definitions for dask worker nodes. Config here is merged
Expand Down Expand Up @@ -83,7 +83,7 @@ local daskNodes = [
// instanceTypes always have a .
name: "nb-%s" % std.strReplace(n.instanceType, ".", "-"),
availabilityZones: [nodeAz],
minSize: n.minNodes,
minSize: 0,
maxSize: 500,
instanceType: n.instanceType,
ssh: {
Expand Down

0 comments on commit 7b6d316

Please sign in to comment.