ceph/doc/scripts
Laura Flores b544e6986c doc/dev: add section on using the gen_state_diagram.py script
Commands sourced from Jianshen Liu's blog post on the Ceph peering state machine: https://jianshenliu.com/blog/development/ceph-peering-state-machine/

Also fixed the formatting of "PG info".

Signed-off-by: Laura Flores <lflores@redhat.com>
2022-02-10 09:12:05 -06:00
..
README.md doc/dev: add section on using the gen_state_diagram.py script 2022-02-10 09:12:05 -06:00
gen_state_diagram.py doc/script/gen_state_diagram: wrap lines which is over 80 chars 2020-11-19 21:05:14 +08:00

README.md

Script Usage

Peering State Model: gen_state_diagram.py

$ git clone https://github.com/ceph/ceph.git
$ cd ceph
$ cat src/osd/PeeringState.h src/osd/PeeringState.cc | doc/scripts/gen_state_diagram.py > doc/dev/peering_graph.generated.dot
$ sed -i 's/7,7/1080,1080/' doc/dev/peering_graph.generated.dot
$ dot -Tsvg doc/dev/peering_graph.generated.dot > doc/dev/peering_graph.generated.svg