Supervision Strategies
Processes often depend on one another to do their work. If a child process crashes, restarting just that one process might not stabilize the application. In the event of a crash, a supervisor needs to decide whether to restart just the one crashed process or other processes as well. If it needs to restart others, it must decide which ones. Supervisors depend on restart strategies to make those decisions.
We’re going to look at all the available strategies, see how they work, and learn how to choose the right one for a given situation.
Each supervisor process can supervise a number of child processes. Those child processes might have different types of relationships with one another.
Sometimes all the child processes depend ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access