Layer 11. Lifecycle
Layer 11. Lifecycle. Layer page.
Lifecycle is the operations that create and move a deployment: install, update, the failover delivery, and relocate.
On this pin
Section titled “On this pin”shc install posts /api/method/shc.stack.install
(ce modules/app/commands/install.go). shc update posts
/api/method/shc.stack.update (ce modules/app/commands/update.go).
Both render through ExecuteCompose
(ce modules/app/install_async.go).
A --where or --prefer change that leaves the deployment outside
the new rules relocates it. The command plans, asks, then posts
/api/method/shc.stack.relocate
(ce modules/app/commands/update_relocate.go,
ce modules/clone/relocate.go). The leader finishes the stored render
for the target (ce daemon/clone_stored_render.go). The target does
not render.
The failover delivery, when it runs, is the same finish
(ce daemon/scheduler_deliver.go). See Failover.
Placement flags on install and update are --where and --prefer
(ce core/selector/flags.go).
- Host lifecycle
- Flows
- Install
- Update
- Render once
- Failover
- Relocate
- Uninstall
- Backup and restore
- Deploy, restore, recover
- Clone
--node and --rule are gone: install and update refuse either with X400242SELFLG and name the --where to write (ce core/selector/flags.go).