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
+20-4Lines changed: 20 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -73,7 +73,14 @@ For now, we don't support horizontal autoscaling for development plans.
73
73
74
74
#### Enable and configure Varnish
75
75
76
-
To make use of Horizontal autoscaling, Varnish should be enabled and configured on the Hypernode.
76
+
Varnish is a requirement, because it's essential to deliver cached pages from the load balancer instead of the application servers when scaled up.
77
+
The benefits are:
78
+
79
+
- Pages in the cache are served faster, because it is one less network hop
80
+
- Saves network bandwidth
81
+
- Saves CPU usage for both load balancer and application servers
82
+
- Page cache is not affected by scaling up or down
83
+
77
84
You can check if Varnish is enabled on your Hypernode by running
78
85
79
86
```console
@@ -99,7 +106,9 @@ acl purge {
99
106
100
107
#### Make sure to use MySQL 5.7 or higher
101
108
102
-
The configured MySQL version should be 5.7 or above. You can check the enabled MySQL version by running the following command.
109
+
MySQL 5.7 or higher is a requirement, because those versions support auto negotiation of TLS. TLS is an essential part for horizontal autoscaling, because the application servers will connect to the MySQL instance over the internet instead of wireguard.
110
+
111
+
You can check the enabled MySQL version by running the following command:
@@ -116,10 +125,14 @@ You should see something similar to `'host' => 'mysqlmaster',`. If this is not t
116
125
117
126
Make sure supervisor is disabled and that there are no supervisor services configured.
118
127
128
+
For now, we don't support having supervisor services, because we can't guarantee everything works when scaling up. If you do think your use case should be supported, please let us know!
129
+
119
130
#### Disable Podman services
120
131
121
132
Make sure podman is disabled and that there are no podman services running.
122
133
134
+
For now, we don't support having podman containers/services, because we can't guarantee everything works when scaling up. If you do think your use case should be supported, please let us know!
135
+
123
136
#### Configure hostnames correctly
124
137
125
138
The database, cache, session and queue of the application must be configured with correct hostnames instead of `localhost` or `127.0.0.1`. This way the services will be available across multiple hypernodes when the app is autoscaled.
@@ -133,7 +146,9 @@ Make sure the env variables (db, cache, session, queue) are not using localhost.
133
146
Horizontal autoscaling is available for Magento 2.4.7 and higher.
134
147
To make use of Horizontal autoscaling, there are a couple of other requirements the application should meet.
135
148
136
-
#### Make sure Redis cache is configured properly
149
+
#### Make sure Redis cache is configured
150
+
151
+
Having a centralized cache database is essential for a consistent experience for your application.
137
152
138
153
Please make sure Redis cache is configured properly in the Magento 2 configuration file at `<magento_root>/app/etc/env.php`.
139
154
@@ -143,7 +158,8 @@ More information about [Redis on Hypernode](../../ecommerce-applications/magento
143
158
144
159
#### Enable and configure Redis sessions
145
160
146
-
Redis persistent is another requirement before you can make use of Horizontal autoscaling.
161
+
Redis sessions on the persistent instance is also required to make use of Horizontal autoscaling.
162
+
147
163
The persistent instance will be used to store the sessions so we can access the same sessions from the Horizontal autoscale Hypernodes.
148
164
149
165
You can check if Redis Persistent is enabled on your Hypernode by running
0 commit comments