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

polkadot-overseer

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

13 major breaking releases

new 13.0.0 May 24, 2024
12.0.0 May 1, 2024
11.0.0 Apr 9, 2024
10.0.0 Mar 19, 2024
0.0.0 Nov 21, 2022

#194 in Magic Beans

Download history 383/week @ 2024-02-01 899/week @ 2024-02-08 1173/week @ 2024-02-15 1800/week @ 2024-02-22 942/week @ 2024-02-29 519/week @ 2024-03-07 900/week @ 2024-03-14 1105/week @ 2024-03-21 1180/week @ 2024-03-28 1130/week @ 2024-04-04 718/week @ 2024-04-11 747/week @ 2024-04-18 961/week @ 2024-04-25 767/week @ 2024-05-02 684/week @ 2024-05-09 888/week @ 2024-05-16

3,419 downloads per month
Used in 56 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

~93–135MB
~2.5M SLoC