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: serverless/containers/troubleshooting/502-error-when-scaling.mdx
+7-7
Original file line number
Diff line number
Diff line change
@@ -15,21 +15,21 @@ categories:
15
15
16
16
## Problem
17
17
18
-
In some cases 502 errors can occur on Serverless Containers during autoscaling process: when the system creates new instances of the Container.
18
+
502 errors can sometimes occur on Serverless Containers during the autoscaling process when new container instances are being created.
19
19
20
20
### Cause
21
21
22
-
When the new instance is created, Serverless healthcheck verification is by default done on the HTTP port. Once it's opened, the ressource is considered ready and traffic starts to be forwarded to it.
22
+
When a new instance is created, the Serverless health check verification is performed by default on the HTTP port. Once the port is opened, the resource is considered ready, and traffic starts being forwarded to it.
23
23
24
-
This is commonly due to the traffic being sent too early to the newly created Container.
24
+
This issue typically occurs when traffic is sent too early to the newly created container before it is fully deployed.
25
25
26
26
### Possible solutions
27
27
28
-
To ensure the Serverless Container is completly ready, not only the HTTP port opened but also in the software scope the solution is to use **custom healthchecks**.
28
+
To ensure the Serverless Container is completely ready, both in terms of the HTTP port and the software scope, it is recommended to use **custom health checks**.
29
29
30
-
**Custom healthchecks**are available via the API, in this case it's recommended to implement a custom http route on the Container that returns the readiness status.
30
+
**Custom health checks**can be configured via the API; in this case, it's recommended to implement a custom HTTP route on the Container that returns its readiness status.
31
31
32
-
*[Link to API documentation](https://www.scaleway.com/en/developers/api/serverless-containers/#path-containers-update-an-existing-container): look for `health_check`.
32
+
*[API Documentation for custom health checks](https://www.scaleway.com/en/developers/api/serverless-containers/#path-containers-update-an-existing-container) - Refer to the `health_check` parameter.
33
33
34
34
<Messagetype="tip">
35
35
A simple health check to implement is just a simple `GET` on `/` to make sure the HTTP server is properly listening.
@@ -45,5 +45,5 @@ To ensure the Serverless Container is completly ready, not only the HTTP port op
45
45
</Message>
46
46
47
47
<Messagetype="note">
48
-
Custom healthcheck feature will be available in the Scaleway console for Q1 2025.
48
+
The custom health check feature will be available in the Scaleway console in Q1 2025.
0 commit comments