-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -120,6 +120,27 @@ rosa describe cluster -c _cluster-name_ | |
|
||
The above installation script creates an admin user automatically but in case the user needs to be re-created it can be done via the `rosa_recreate_admin.sh` script, providing the `CLUSTER_NAME` and optionally `ADMIN_PASSWORD` parameter. | ||
|
||
== Scaling the cluster's nodes on demand | ||
|
||
The standard setup of nodes might be too small for running a load test, at the same time using a different instance type and rebuilding the cluster takes a lot of time (about 45 minutes). | ||
To scale the cluster on demand, the standard setup has a machine pool named `scaling` with instances of type `m5.4xlarge` spot instances which is scaled to zero by default. | ||
This comment has been minimized.
Sorry, something went wrong.
kami619
Contributor
|
||
|
||
To scale the machine pool at runtime, issue a command like the following, and the additional nodes will be available within about 5 minutes: | ||
|
||
[source,bash,subs=+quotes] | ||
---- | ||
rosa edit machinepool -c _**clustername**_ --min-replicas 3 --max-replicas 10 scaling | ||
---- | ||
|
||
To scale down the cluster, use a command like the following: | ||
|
||
[source,bash,subs=+quotes] | ||
---- | ||
rosa edit machinepool -c _**clustername**_ --min-replicas 0 --max-replicas 0 scaling | ||
---- | ||
|
||
To use different instance types, use `rosa create machinepool` to create additional machine pools | ||
|
||
[#aws-efs-as-readwritemany-storage] | ||
== AWS Elastic File Service as ReadWriteMany storage | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -87,4 +87,6 @@ echo | |
|
||
./rosa_recreate_admin.sh | ||
|
||
rosa create machinepool -c "${CLUSTER_NAME}" --instance-type m5.4xlarge --max-replicas 0 --min-replicas 0 --name scaling --use-spot-instances --enable-autoscaling | ||
This comment has been minimized.
Sorry, something went wrong.
kami619
Contributor
|
||
|
||
./rosa_efs_create.sh |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -51,6 +51,11 @@ spec: | |
- -c | ||
- max_prepared_transactions=100 | ||
{{ end }} | ||
resources: | ||
requests: | ||
cpu: "{{ .Values.cpuRequests }}" | ||
This comment has been minimized.
Sorry, something went wrong.
kami619
Contributor
|
||
limits: | ||
cpu: "{{ .Values.cpuLimits }}" | ||
startupProbe: | ||
tcpSocket: | ||
port: 5432 | ||
|
this would be really helpful to just scale down the worker nodes and get them back up as we cycle between runs. thanks for adding this.