#overseer #polkadot #subsystem #node #protocols #communicate #set

polkadot-overseer

System overseer of the Polkadot node (polkadot v1.10.0)

11 major breaking releases

11.0.0 Apr 9, 2024
10.0.0 Mar 19, 2024
9.0.0 Feb 27, 2024
8.0.0 Feb 13, 2024
0.0.0 Nov 21, 2022

#116 in Magic Beans

Download history 232/week @ 2023-12-22 651/week @ 2023-12-29 929/week @ 2024-01-05 784/week @ 2024-01-12 622/week @ 2024-01-19 510/week @ 2024-01-26 431/week @ 2024-02-02 911/week @ 2024-02-09 1331/week @ 2024-02-16 1703/week @ 2024-02-23 825/week @ 2024-03-01 554/week @ 2024-03-08 1055/week @ 2024-03-15 1109/week @ 2024-03-22 1165/week @ 2024-03-29 1009/week @ 2024-04-05

4,403 downloads per month
Used in 54 crates (16 directly)

GPL-3.0-only

91KB
2K SLoC

Overseer

overseer implements the Overseer architecture described in the implementers' guide. For the motivations behind implementing the overseer itself you should check out that guide, documentation in this crate will be mostly discussing technical stuff.

An Overseer is something that allows spawning/stopping and overseeing asynchronous tasks as well as establishing a well-defined and easy to use protocol that the tasks can use to communicate with each other. It is desired that this protocol is the only way tasks communicate with each other, however at this moment there are no foolproof guards against other ways of communication.

The Overseer is instantiated with a pre-defined set of Subsystems that share the same behavior from Overseer's point of view.

                             +-----------------------------+
                             |         Overseer            |
                             +-----------------------------+

            ................|  Overseer "holds" these and uses |..............
            .                  them to (re)start things                      .
            .                                                                .
            .  +-------------------+                +---------------------+  .
            .  |   Subsystem1      |                |   Subsystem2        |  .
            .  +-------------------+                +---------------------+  .
            .           |                                       |            .
            ..................................................................
                        |                                       |
                      start()                                 start()
                        V                                       V
            ..................| Overseer "runs" these |.......................
            .  +--------------------+               +---------------------+  .
            .  | SubsystemInstance1 |               | SubsystemInstance2  |  .
            .  +--------------------+               +---------------------+  .
            ..................................................................

Dependencies

~74–115MB
~2M SLoC