small medium large xlarge

Dmfcb_pragsmall
25 Jul 2013, 16:19
David Copeland (138 posts)

In Chapter 16 we create a sub-supervisor to manage the sequence server. The book merely states that we have to do this, but not why.

So, why do I need to do this? Why not just have the main supervisor supervise both the Stash and the Sequence.Server?

Dave_gnome_head_isolated_pragsmall
02 Aug 2013, 14:19
Dave Thomas (344 posts)

What happens if it crashes? We lose the stash

Dmfcb_pragsmall
02 Aug 2013, 19:45
David Copeland (138 posts)

Wait, so if the Sequence.Server crashes, its supervisor crashes, too?

Dmfcb_pragsmall
05 Aug 2013, 12:50
David Copeland (138 posts)

I re-worked the sequence server to not use a sub-supervisor for the Sequence.Server - both the stash and the sequence server are supervised by the same supervisor. Crashing the Sequence.Server has no effect on the stash. The Sequence.Server comes back to life and the stash is persisted.

So, I’m just not understanding why we need a sub supervisor

Dave_gnome_head_isolated_pragsmall
08 Aug 2013, 19:12
Dave Thomas (344 posts)

Because the policies for the two levels are different (or most likely are). The actual sequence servers can be transient—they can crash and no one cares. But the stash should be protected. So I split them into separate supervisors, which isolates them better.

  You must be logged in to comment