From bc444fa014355c303ad2325ca2cdc1443ee92e1c Mon Sep 17 00:00:00 2001 From: Hritik Kothari Date: Wed, 18 Dec 2024 11:15:43 +0100 Subject: [PATCH 1/2] Some typo fixing, paraphrasing, etc in the doc --- .../how-does-horizontal-autoscaling-work.md | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/docs/hypernode-platform/autoscaling/how-does-horizontal-autoscaling-work.md b/docs/hypernode-platform/autoscaling/how-does-horizontal-autoscaling-work.md index 09bd4aba..78b32293 100644 --- a/docs/hypernode-platform/autoscaling/how-does-horizontal-autoscaling-work.md +++ b/docs/hypernode-platform/autoscaling/how-does-horizontal-autoscaling-work.md @@ -15,7 +15,7 @@ This article explains how Horizontal autoscaling works, what the requirements ar ## How does it work With horizontal autoscaling, additional Hypernodes will be added automatically to your main Hypernode at peak times. The extra Hypernodes will be used as PHP fpm workers. -Since there are no configuration or IP changes needed, Horizontal autoscaling is zero-downtime. +Since there's no configuration or IP changes needed, Horizontal autoscaling has zero-downtime. For Horizontal autoscaling you can configure some conditions. If the conditions are met from the configured settings in the Control Panel, Horizontal autoscaling will be triggered. You can configure the following conditions: @@ -42,21 +42,25 @@ This approach selects the longer duration between user-defined settings or the f ### Downscaling -If the monitor agent noticed if one Hypernode will be removed, the used resources will stay below the configured thresholds, the downscale operation will be triggered. +If the monitor agent notices that the used resources are below the configured thresholds, the downscale operation will begin. This will lead to removing the additional servers that are no longer needed. + Downscale will happen by detaching the autoscaling instances from the main Hypernode one by one. -After a downscale operation has completed, there will be a cooldown of 15 minutes to monitor the behaviour of the newly available resources before downscale again. +After a downscale operation has been completed, there will be a cooldown of 15 minutes to monitor the behaviour of the newly available resources before downscaling again. + If the amount of used resources is still below the configured threshold, another downscale operation will be triggered. + If there is need for extra resources instead, extra resources will be added again. ## Horizontal autoscaling requirements Horizontal autoscaling is available on all the Falcon cloud plans (OpenStack). + Next to the provider, horizontal autoscaling does have a couple of additional requirements. ### Supported CMS Horizontal autoscaling is available for Magento2. -To make use of Horizontal autoscaling, there are a couple of other requirements the Hypernode and the application should met: +To make use of Horizontal autoscaling, there are a couple of other requirements the Hypernode and the application should meet: ### Operating system @@ -136,7 +140,7 @@ More information about [Elasticsearch o Hypernode](../../hypernode-platform/tool Please make sure RabbitMQ host is set to `rabbitmqmaster` in the Magento2 configuration file at `/app/etc/env.php` More information about [RabbitMQ o Hypernode](../../best-practices/database/how-to-run-rabbitmq-on-hypernode.md) -### Make sure we use MySQL 5.7 or higher +### Make sure to use MySQL 5.7 or higher The configured MySQL version should be 5.7 or above. You can check the enabled MySQL version by running the following command. @@ -150,9 +154,10 @@ Example output if MySQL version is 8.0: mysql_version is set to value 8.0 ``` -If your MySQL version is still set to 5.6, you can concider [upgrade](../mysql/how-to-use-mysql-on-hypernode.md) the MySQL version to a supported version for autoscaling. +If your MySQL version is still set to 5.6, you can consider [upgrading](../mysql/how-to-use-mysql-on-hypernode.md) the MySQL version to a supported version for autoscaling. After the version validation, please verify the MySQL host is set to `mysqlmaster`. You can verify this by running `cat app/etc/env.php | grep -i mysql | grep -i host` from the magento root. + You should see something similar to `'host' => 'mysqlmaster',`. If this is not the case please make sure the database connection host is set to `mysqlmaster` instead of `localhost` or `127.0.0.1` in the magento configuration file at `/app/etc/env.php`. ### Make sure the Hypernode is a production plan @@ -161,4 +166,4 @@ Unfortunately we don't support Horizontal autoscaling for development plans. ## Enabling Horizontal Autoscaling -For detailed steps on enabling horizontal Autoscaling, please refer to our documentation: [How to enable vertical Autoscaling?](how-to-enable-vertical-autoscaling.md) +For detailed steps on enabling horizontal Autoscaling, please refer to our documentation: [How to enable Horizontal Autoscaling?](how-to-enable-horizontal-autoscaling.md) From aabc223f8439a03eb7c49dea351f72530736b5f9 Mon Sep 17 00:00:00 2001 From: Hritik Kothari Date: Wed, 18 Dec 2024 11:26:47 +0100 Subject: [PATCH 2/2] run mdformat fix --- .../autoscaling/how-does-horizontal-autoscaling-work.md | 5 ++++- .../autoscaling/how-to-enable-horizontal-autoscaling.md | 3 ++- .../autoscaling/how-to-enable-vertical-autoscaling.md | 3 ++- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/docs/hypernode-platform/autoscaling/how-does-horizontal-autoscaling-work.md b/docs/hypernode-platform/autoscaling/how-does-horizontal-autoscaling-work.md index 8a933549..f02cdc25 100644 --- a/docs/hypernode-platform/autoscaling/how-does-horizontal-autoscaling-work.md +++ b/docs/hypernode-platform/autoscaling/how-does-horizontal-autoscaling-work.md @@ -1,7 +1,10 @@ --- myst: html_meta: - description: Learn how autoscaling dynamically adjusts server resources based on CPU usage metrics, allowing efficient workload management without manual intervention. Configure thresholds, durations, and understand the workflow for horizontal autoscaling without downtime on Hypernode. + description: Learn how autoscaling dynamically adjusts server resources based + on CPU usage metrics, allowing efficient workload management without manual + intervention. Configure thresholds, durations, and understand the workflow for + horizontal autoscaling without downtime on Hypernode. title: How does horizontal Autoscaling work? | Hypernode --- diff --git a/docs/hypernode-platform/autoscaling/how-to-enable-horizontal-autoscaling.md b/docs/hypernode-platform/autoscaling/how-to-enable-horizontal-autoscaling.md index e918727e..1b6dce99 100644 --- a/docs/hypernode-platform/autoscaling/how-to-enable-horizontal-autoscaling.md +++ b/docs/hypernode-platform/autoscaling/how-to-enable-horizontal-autoscaling.md @@ -1,7 +1,8 @@ --- myst: html_meta: - description: Step-by-step instructions on enabling horizontal Autoscaling through the Control Panel + description: Step-by-step instructions on enabling horizontal Autoscaling through + the Control Panel title: How to enable horizontal Autoscaling? | Hypernode --- diff --git a/docs/hypernode-platform/autoscaling/how-to-enable-vertical-autoscaling.md b/docs/hypernode-platform/autoscaling/how-to-enable-vertical-autoscaling.md index 767c5c8b..390692dc 100644 --- a/docs/hypernode-platform/autoscaling/how-to-enable-vertical-autoscaling.md +++ b/docs/hypernode-platform/autoscaling/how-to-enable-vertical-autoscaling.md @@ -1,7 +1,8 @@ --- myst: html_meta: - description: Step-by-step instructions on enabling vertical Autoscaling through the Control Panel or command line + description: Step-by-step instructions on enabling vertical Autoscaling through + the Control Panel or command line title: How to enable vertical Autoscaling? | Hypernode redirect_from: - hypernode-platform/autoscaling/how-to-enable-autoscaling