Skip to content

Commit cad7e02

Browse files
Docs: manage autoscaling via CLI
1 parent b9dddb7 commit cad7e02

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

docs/hypernode-platform/autoscaling/how-to-enable-autoscaling.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,34 @@ You can start using autoscaling by:
2929
After enabling Autoscaling feature, expect a 5min grace period before Autoscaling takes effect.
3030

3131
Now, rest easy knowing that your server will automatically handle overloads.
32+
33+
## How to enable Autoscaling via command line?
34+
35+
To allow using autoscaling via the command line, follow the steps below:
36+
37+
- Navigate go the Change plan page.
38+
- Click on the CLI tab, enable plan changes via the CLI.
39+
40+
**Please note:** when enabled, **everyone who has SSH access can enable and configure autoscaling from the CLI**, even if they are not the Owner or Admin.
41+
42+
### Enable autoscaling via the CLI
43+
44+
To enable autoscaling via the CLI, you can run the following command:
45+
`hypernode-systemctl autoscaling --enable`
46+
47+
### Manage autoscaling tresholds via the CLI
48+
If you have enabled autoscaling, you can configure the thresholds when it is being autoscaled.
49+
This tresholds does have a default value:
50+
- autoscale_trigger_load_percentage **default: 70**
51+
- autoscale_trigger_load_avg_minutes **default: 15**
52+
53+
If you want to change the default settings, you can use the commands below:
54+
```
55+
hypernode-systemctl settings autoscale-trigger-load-percentage 80
56+
hypernode-systemctl settings autoscale-trigger-load-avg-minutes 50
57+
```
58+
59+
### Disable autoscaling via the CLI
60+
If you want to disable autoscaling via the CLI, you can run `hypernode-systemctl autoscaling --disable`.
61+
62+
**Please note:** if you enable autoscaling the next time, the last configured settings will be used.

0 commit comments

Comments
 (0)