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
**Important for Docker/Kubernetes:** The identity file must be persisted across container restarts. Mount a volume for the `DataDir` (Go) or `dataDir` (Node.js) configuration:
371
+
372
+
```yaml
373
+
services:
374
+
my-app:
375
+
volumes:
376
+
- ./data:/app/data # Persist identity file
377
+
environment:
378
+
- SHM_DATA_DIR=/app/data
379
+
```
380
+
381
+
If the identity file is lost, the instance will generate a new identity and the server will return **401 Unauthorized** for requests signed with the old key.
4.**Periodic Snapshots**: System metrics + custom metrics are sent at the configured interval
100
100
101
+
> **Docker/Kubernetes:** The identity file must persist across restarts. Mount a volume for `DataDir`, otherwise a new identity will be generated and the server will reject requests with **401 Unauthorized**.
Copy file name to clipboardExpand all lines: sdk/nodejs/README.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -87,6 +87,8 @@ const client = new SHMClient({
87
87
88
88
4.**Periodic Snapshots**: System metrics + custom metrics are sent at the configured interval
89
89
90
+
> **Docker/Kubernetes:** The identity file must persist across restarts. Mount a volume for `dataDir`, otherwise a new identity will be generated and the server will reject requests with **401 Unauthorized**.
0 commit comments