Skip to content

Commit 4cb872a

Browse files
Merge pull request #224 from ByteInternet/autoscaling_documentation
Autoscaling documentation
2 parents fee5f51 + 53a1ca4 commit 4cb872a

File tree

3 files changed

+146
-0
lines changed

3 files changed

+146
-0
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
myst:
3+
html_meta:
4+
description: This table of contents gives you a summary of all Hypernode platform
5+
knowledge base articles that include information about autoscaling.
6+
title: Autoscaling | Hypernode platform
7+
redirect_from:
8+
- /en/hypernode/autoscaling/
9+
---
10+
11+
# Autoscaling
12+
13+
```{toctree}
14+
---
15+
caption: Table of Contents
16+
maxdepth: 1
17+
glob:
18+
---
19+
autoscaling/*
20+
```
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
---
2+
myst:
3+
html_meta:
4+
description: Learn how autoscaling dynamically adjusts server resources based
5+
on CPU usage metrics, allowing efficient workload management without manual
6+
intervention. Configure thresholds, durations, and understand the workflow for
7+
seamless autoscaling on Hypernode.
8+
title: How does Autoscaling work? | Hypernode
9+
---
10+
11+
# How does Autoscaling work?
12+
13+
## Purpose
14+
15+
Autoscaling ensures dynamic server resource adjustments based on CPU usage metrics, efficiently managing workload demands without manual intervention. Once triggered, boosted state lasts for a 24-hour period.
16+
17+
## Supported providers:
18+
19+
Autoscaling is available for Combell Openstack and AWS cloud hosting providers.
20+
21+
## Configuration Parameters
22+
23+
In the control panel or with CLI tool, users can define autoscaling conditions based on CPU load thresholds and minimum duration to tailor actions to their workload demands:
24+
25+
- **CPU Load Threshold:** Specifies the CPU load percentage that triggers autoscaling using a range slider.
26+
- **Minimum Duration:** Determines the minimum duration, in minutes, for the CPU load to exceed the threshold to activate autoscaling.
27+
28+
## Autoscaling Triggering Process
29+
30+
- **Continuous Monitoring:** The autoscaling agent continually monitors your application's CPU load.
31+
- **Activation Conditions:** Autoscaling is triggered if the CPU load surpasses the defined threshold and duration criteria set by the user or default values that were set when the feature was enabled.
32+
33+
## Autoscaling Workflow
34+
35+
- **Initial Cooldown period:** A 5-minute cooldown period after enabling autoscaling prevents rapid scaling due to sudden spikes.
36+
- **Scaling Actions:** Autoscaling automatically upgrades the plan to the next available tier within the same provider, catering to increased demand. The upgraded plan remains effective for 24 hours before reverting to the original configuration.
37+
38+
## Continued Autoscaling Process:
39+
40+
If the server remains overloaded post-autoscaling, the next autoscaling trigger is determined based on these criteria:
41+
42+
- **The greater of either**:
43+
- **User-defined minimum duration for CPU threshold surpassing**: Allows time to assess newly allocated resources' impact on CPU performance.
44+
- **A fallback duration of 15 minutes**: Ensures a minimum interval for reassessment when the user-defined duration is less than 15 minutes.
45+
46+
This approach selects the longer duration between user-defined settings or the fallback duration before initiating the next autoscaling event. It ensures adequate time for evaluating resource changes on CPU performance.
47+
48+
To halt continued autoscaling behavior, simply turn off the autoscaling feature in your control panel. This prevents subsequent autoscaling triggers after the initial action.
49+
50+
**Important to know:**
51+
52+
- For the next 24 hours, plan adjustments are restricted. If necessary, please contact support for assistance.
53+
- If there are still insufficient resources and the conditions are met, the system will initiate another autoscaling process with a cooldown period of 5 minutes.
54+
- It will scale up to the largest plan available within the same provider.
55+
- Downscaling takes place within 24 hours from the initial autoscaling event.
56+
57+
## Enabling Autoscaling
58+
59+
For detailed steps on enabling Autoscaling, please refer to our documentation: [How to enable Autoscaling?](how-to-enable-autoscaling.md)
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
---
2+
myst:
3+
html_meta:
4+
description: Step-by-step instructions on enabling Autoscaling through the Control
5+
Panel or command line
6+
title: How to enable Autoscaling? | Hypernode
7+
---
8+
9+
# How to Enable Autoscaling?
10+
11+
## What is Autoscaling?
12+
13+
Vertical autoscaling in other words means upgrading your plan automatically when your server needs it, so you don’t need to worry about constant monitoring.
14+
15+
Your plan will be upgraded to the next possible plan within the same provider, increasing your resources while keeping the disk size the same. The upgrade is effective for 24h, after which your Hypernode will return to your regular plan. For more technical overview you can check our docs [How Autoscaling Works](how-does-autoscaling-work.md).
16+
17+
## How to enable Autoscaling?
18+
19+
You can enable Autoscaling two ways: in the Control Panel or directly via command line.
20+
21+
### How to enable Autoscaling in the Control Panel?
22+
23+
You can start using autoscaling by:
24+
25+
1. Log in to [Control Panel](https://my.hypernode.com).
26+
1. Navigate to Hypernodes > Autoscaling.
27+
1. Enable autoscaling.
28+
1. Optionally configure the conditions.
29+
30+
After enabling Autoscaling feature, expect a 5min grace period before Autoscaling takes effect.
31+
32+
Now, rest easy knowing that your server will automatically handle overloads.
33+
34+
## How to enable Autoscaling via command line?
35+
36+
To allow using autoscaling via the command line, follow the steps below:
37+
38+
- Navigate go the Change plan page.
39+
- Click on the CLI tab, enable plan changes via the CLI.
40+
41+
**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.
42+
43+
### Enable autoscaling via the CLI
44+
45+
To enable autoscaling via the CLI, you can run the following command:
46+
`hypernode-systemctl autoscaling --enable`
47+
48+
### Manage autoscaling tresholds via the CLI
49+
50+
If you have enabled autoscaling, you can configure the thresholds when it is being autoscaled.
51+
This tresholds does have a default value:
52+
53+
- autoscale_trigger_load_percentage **default: 70**
54+
- autoscale_trigger_load_avg_minutes **default: 15**
55+
56+
If you want to change the default settings, you can use the commands below:
57+
58+
```
59+
hypernode-systemctl settings autoscale-trigger-load-percentage 80
60+
hypernode-systemctl settings autoscale-trigger-load-avg-minutes 50
61+
```
62+
63+
### Disable autoscaling via the CLI
64+
65+
If you want to disable autoscaling via the CLI, you can run `hypernode-systemctl autoscaling --disable`.
66+
67+
**Please note:** if you enable autoscaling the next time, the last configured settings will be used.

0 commit comments

Comments
 (0)