Skip to content

Graceful Shutdown Spike #406

@dnwiebe

Description

@dnwiebe

Currently, when a Node is ordered to shut down, it simply kills its own process. No file handles or TCP/database/WebSockets connections are closed, nothing is gently deallocated, nothing is cleaned up in the database, and no Gossip is sent.

Node shutdown should be much more graceful than this. Pending operations should be completed, handles and connections should be closed, neighbors should be notified, and so on.

Create a set of cards detailing all the various operations that need to be performed in the process of a Graceful Shutdown. Note that #404 and #407 already exist.

Also to be included is #410

One of the things to be considered is the logger: what if the Node wants to shut down just as the logger is rotating the logfiles in a background thread? The logger library provides hooks for this, but the hooks will need to be used.

Metadata

Metadata

Assignees

No one assigned

    Labels

    spikeThe deliverable for this card is one or more additional cards

    Type

    No type

    Projects

    Status

    🔖 Ready

    Status

    Ready for Development

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions