blob: 3f579621ad4790b6e8473cb88989c6380292426b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
===============
BackfillMachine
===============
In Crimson, backfill is implemented with `Boost State Chart <https://www.boost.org/doc/libs/1_86_0/libs/statechart/doc/>`_.
.. //TODO: Once the implementation is settled:
.. * Explain exceptional states once we finish working on this code
.. * Explain example happy path flow (code walkthorugh?)
.. * https://tracker.ceph.com/issues/68728
A sample of the recent state model:
.. note:: ``Cancelled`` and ``Crushed`` states are not included in the
following graph in order to make it easier to follow:
* **Any** state is able to transit into ``Crushed``.
* **Any** state (except from ``Initial`` and ``Waiting``) can transit into ``Cancelled``
.. image:: crimson_backfillmachine.svg
In similarly to :doc:`/dev/peering` a copy of the latest BackfillMachine
state model can be genereated using the `gen_state_diagram.py <https://github.com/ceph/ceph/blob/master/doc/scripts/gen_state_diagram.py>`_
|