remove swarmctl migrate, migrate.json and the migrate docs
This commit is contained in:
parent
58e59be65e
commit
f89d289a9f
1 changed files with 25 additions and 1398 deletions
|
|
@ -11,6 +11,16 @@ or two cursors that push every CI run twice. `swarm-notify-router`,
|
|||
(`swarm-nats`) have the option today, and the other services that run in the
|
||||
cluster follow the same pattern.
|
||||
|
||||
## Moving a service
|
||||
|
||||
To move a service into the cluster, set its `runtime` to `"k8s"` and rebuild.
|
||||
To move it back, set `runtime` back to `"host"` and rebuild.
|
||||
No command copies data, and a move loses nothing a service holds.
|
||||
The queue keeps its host store: the pod mounts the directory the container's unit uses, so a switch moves the process and not the bytes.
|
||||
The controller and the other services hold nothing a move loses; [State](#state) lists what each one keeps.
|
||||
Hives and agents keep the queue's URL, port, certificate name and auth callout, so no hive needs a rebuild.
|
||||
The secret store, the forge, authelia, the gateway, `swarm-builder`, `swarm-matrix-ctl` and every hive stay on the host.
|
||||
|
||||
## Options
|
||||
|
||||
- `services.hyperhive.deploy.notify-router.runtime` (default `"host"`).
|
||||
|
|
@ -281,9 +291,17 @@ holds the container back until the pod has gone.
|
|||
so a switch moves the process and not the bytes, and the pod has no state
|
||||
gate. The container's unit runs `chown -R nats:nats` on the directory before
|
||||
the server starts, and the pod's `fsGroup` gives its group read and write.
|
||||
[The queue's store](migrate.md#the-queues-store) has the details. The claim
|
||||
and its volume stay after a switch back, as every claim does, with the
|
||||
directory.
|
||||
The volume is `local`, pinned to the node, with a storage class of its own
|
||||
and the `Retain` policy, and the claim binds it by name.
|
||||
The prune unit stops a pod before the container starts, and the Deployment
|
||||
replaces its pod rather than running two, so one server reads the directory
|
||||
at a time.
|
||||
nats-server keeps no lock or identity file in the store, so nothing there ties
|
||||
the directory to the side that wrote it.
|
||||
The module makes the directory on a host that never ran the container,
|
||||
because the volume needs it before the pod starts.
|
||||
The claim and its volume stay after a switch back, as every claim does, with
|
||||
the directory.
|
||||
- **Readiness.** The pod is Ready when the responder's `/readyz`, on the pod's
|
||||
port 8080, passes and the server's exec probe does. The probe runs
|
||||
`wget` against `/healthz?js-enabled-only=true` on the server's monitor, which
|
||||
|
|
@ -293,6 +311,8 @@ holds the container back until the pod has gone.
|
|||
up to 150 seconds to move. The pod's server gets `SIGTERM` and the pod's
|
||||
15-second grace period, so every client's connection drops at once and the
|
||||
clients reconnect when the next pod is up.
|
||||
Core NATS messages published while no server is up never arrive, and JetStream
|
||||
publishes fail at the publisher.
|
||||
- **Limits.** None, as on the host. The pod has no memory or CPU limit, and its
|
||||
descriptors are the container runtime's, not the 800000 the container's unit
|
||||
sets. The VM test checks the runtime's is at least that.
|
||||
|
|
|
|||
Loading…
Reference in a new issue