Creating Supervisors
Via CLI
naos supervisor create main --strategy one-for-one --max-restarts 3
Via Configuration
supervisors:
main:
strategy: one-for-one
maxRestarts: 3
restartWindow: 60
children:
- researcher
- analyzer
- worker
Adding Children
# Add individual child
naos supervisor add-child main researcher
# Add multiple children
naos supervisor add-child main researcher analyzer worker
Verify
naos supervisor status main
# Supervisor: main
# Strategy: one-for-one
# Max Restarts: 3
# Restart Window: 60s
#
# Children:
# researcher ● running 0 restarts
# analyzer ● running 0 restarts
# worker ○ stopped 0 restarts