You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/hypernode-platform/autoscaling/how-does-horizontal-autoscaling-work.md
+19-3Lines changed: 19 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -32,7 +32,6 @@ We create a snapshot of your main Hypernode and attach that snapshot to the extr
32
32
All the services, such as MySQL, Elasticsearch and Redis, keep running on your original Hypernode. We add the additional Hypernodes as PHP-fpm workers and will handle the incoming requests.
33
33
The load of the different autoscaling nodes will be balanced from your original Hypernode.
34
34
35
-
36
35
If the Hypernodes remains overloaded post-autoscaling, the extra needed resources will be added to handle the traffic. The autoscaling trigger is determined based on these criteria.
37
36
The greater of either:
38
37
@@ -55,36 +54,45 @@ Horizontal autoscaling is available on all the Falcon cloud plans (OpenStack).
55
54
Next to the provider, horizontal autoscaling does have a couple of additional requirements.
56
55
57
56
### Supported CMS
57
+
58
58
Horizontal autoscaling is available for Magento2.
59
59
To make use of Horizontal autoscaling, there are a couple of other requirements the Hypernode and the application should met:
60
60
61
-
**System requirements:**
62
61
### Operating system
62
+
63
63
- The operating system of the Hypernode should be Debian Bookworm
64
64
65
65
### Enable and configure Varnish
66
+
66
67
To make use of Horizontal autoscaling, Varnish should be enabled and configured on the Hypernode.
67
68
You can check if Varnish is enabled on your Hypernode by running
69
+
68
70
```console
69
71
hypernode-systemctl settings varnish_enabled
70
72
```
73
+
71
74
Example output if Varnish is enabled:
75
+
72
76
```console
73
77
varnish_enabled is set to value True
74
78
```
75
79
76
80
If Varnish is not enabled, you can [enable Varnish](../varnish/how-to-enable-varnish-on-hypernode.md) by following the documentation
77
81
If varnish is enabled on your Hypernode, your Magento store should also be configured to make use of varnish.
78
82
You can verify if the Varnish host is configured correctly by running the following command from the Magento root:
The output should show `varnish` as backend. If it is configured as something else (like `localhost` or `127.0.0.1`), you can update it by running which sets the backend host to `varnish` instead.
Aditionally make sure the IP range `10.0.0.0/24` is set to the `acl_purge` section in the Varnish VCL file. The `acl_purge` section should look something similar:loaded Varnish VCL.
95
+
88
96
```console
89
97
acl purge {
90
98
"localhost";
@@ -93,19 +101,24 @@ acl purge {
93
101
```
94
102
95
103
### Enable and configure Redis Persistent
104
+
96
105
Redis persistent is another requirement before you can make use of Horizontal autoscaling.
97
106
The persistent instance will be used to store the sessions so we can access the same sessions from the Horizontal autoscale Hypernodes.
98
107
99
108
You can check if Redis Persistent is enabled on your Hypernode by running
@@ -114,6 +127,7 @@ Make sure Redis session is configured as [described](../../ecommerce-application
114
127
Please notice the Redis host in the setup documentation. The Redis host should be set to `redismaster` instead of `localhost` or `127.0.0.1`.
115
128
116
129
### Make sure Elasticsearch/Opensearch configured properly
130
+
117
131
Please make sure Elasticsearch or Opensearch host is set to `elasticsearchmaster` in the Magento2 configuration file at `<magento_root>/app/etc/env.php`
118
132
More information about [Elasticsearch o Hypernode](../../hypernode-platform/tools/how-to-use-elasticsearch-on-hypernode.md)
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.
138
154
139
155
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.
140
156
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 `<magento_root>/app/etc/env.php`.
141
157
142
158
### Make sure the Hypernode is a production plan
143
-
Unfortunately we don't support Horizontal autoscaling for development plans.
144
159
160
+
Unfortunately we don't support Horizontal autoscaling for development plans.
0 commit comments