carlos / platform Public

docs: say instances get GOMEMLIMIT at 80% of their size

One sentence under "What an instance is started with" (#991): the box
sets GOMEMLIMIT unless the app's config or <host>.env sets its own.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev 75e0c87fe2768781df78d1f6e495c8c5155d0ad6 parent c058ec6
1 file changed, +2 −0
  • docs/site/cli.md +2 −0
diff --git a/docs/site/cli.md b/docs/site/cli.md
index 1826d00cb..4fd4bee2c 100644
--- a/docs/site/cli.md
+++ b/docs/site/cli.md
@@ -1213,6 +1213,8 @@ no bundle can override:
| `CARLOS_PURGE` | `header` when the edge honours a `Carlos-Purge` response header, including `all` for every host of the instance |
| `CARLOS_ADMIN_TOKEN` | a secret shared with this one instance: the platform presents it when it calls your app, and your app presents it on `CARLOS_CONTROL_SOCKET` |
+The box also sets `GOMEMLIMIT` to 80% of the instance's memory size, unless your app's config or `<host>.env` sets its own.
+
The box keeps a sealed copy of each instance's `<host>.env`. It also keeps sealed copies of the `instance.key` and `report.token` files an app keeps at the top of its own directory. These copies are stored in the region's data bucket. Each copy is sealed to the box's secrets key and bound to your app. Only a box that can already read your app's secrets can open it. When a box starts an instance whose `<host>.env` is missing, it puts the sealed copy back first. This keeps the instance's `CARLOS_ADMIN_TOKEN` and `CARLOS_INSTANCE_KEY` instead of giving it new ones. A file that is there is never replaced. You can edit other values in `<host>.env`. The box seals the new contents within a minute. `CARLOS_ADMIN_TOKEN`, `CARLOS_INSTANCE_KEY`, `instance.key` and `report.token` cannot change once sealed. If the box finds a different value, it refuses to start the instance and raises an alert. Deleting the file does not reset it. A box without the secrets key a copy was sealed to will not start that instance. This includes a box whose key was changed. Put the old key back.
A seed (the `--seed` command of `carlos instances enable`) runs with the same