From 06e0a312d4b302a1aa3cc74bd1880ba9fe459431 Mon Sep 17 00:00:00 2001 From: Patrick Donnelly Date: Thu, 18 Apr 2019 12:48:37 -0700 Subject: [PATCH] doc: fix boot transition in mds state diagram MDSMonitor assigns a booting MDS immediately to standby. From there, the standby may be promoted to standby-replay or some state leading to active. Signed-off-by: Patrick Donnelly --- doc/cephfs/mds-state-diagram.dot | 18 +- doc/cephfs/mds-state-diagram.svg | 340 ++++++++++++++++--------------- 2 files changed, 183 insertions(+), 175 deletions(-) diff --git a/doc/cephfs/mds-state-diagram.dot b/doc/cephfs/mds-state-diagram.dot index dee82506729a..3ad192ef19dd 100644 --- a/doc/cephfs/mds-state-diagram.dot +++ b/doc/cephfs/mds-state-diagram.dot @@ -5,13 +5,20 @@ node [shape=circle,style=unfilled,fixedsize=true,width=2.0] node [color=blue,peripheries=1]; N0 [label="up:boot"] +node [color=green,peripheries=1]; +S1 [label="up:standby"] +N0 -> S1 [color=green,penwidth=2.0]; +S2 [label="up:standby_replay"] +S1 -> S2 [color=green,penwidth=2.0]; + node [color=orange,peripheries=2]; N1 [label="up:creating"] -N0 -> N1 [color=orange,penwidth=2.0]; +S1 -> N1 [color=orange,penwidth=2.0]; N2 [label="up:starting"] -N0 -> N2 [color=orange,penwidth=2.0]; +S1 -> N2 [color=orange,penwidth=2.0]; N3 [label="up:replay"] -N0 -> N3 [color=orange,penwidth=2.0]; +S1 -> N3 [color=orange,penwidth=2.0]; +S2 -> N3 [color=orange,penwidth=2.0]; N4 [label="up:resolve"] N3 -> N4 [color=orange,penwidth=2.0]; N5 [label="up:reconnect"] @@ -28,11 +35,6 @@ N7 -> S0 [color=green,penwidth=2.0]; N1 -> S0 [color=green,penwidth=2.0]; N2 -> S0 [color=green,penwidth=2.0]; N6 -> S0 [color=green,penwidth=2.0]; -node [color=green,peripheries=1]; -S1 [label="up:standby"] -N0 -> S1 [color=green,penwidth=2.0]; -S2 [label="up:standby_replay"] -N0 -> S2 [color=green,penwidth=2.0]; // going down but still accessible by clients node [color=purple,peripheries=2]; diff --git a/doc/cephfs/mds-state-diagram.svg b/doc/cephfs/mds-state-diagram.svg index 6c3127a3c23b..d870a6e9b5a0 100644 --- a/doc/cephfs/mds-state-diagram.svg +++ b/doc/cephfs/mds-state-diagram.svg @@ -4,308 +4,314 @@ - - + + %3 - + N0 - -up:boot + +up:boot - + -N1 - - -up:creating +S1 + +up:standby - + -N0->N1 - - +N0->S1 + + - + -N2 - - -up:starting +S2 + +up:standby_replay - + -N0->N2 - - +S1->S2 + + - + -N3 - - -up:replay +N1 + + +up:creating - + -N0->N3 - - +S1->N1 + + - - -S1 - -up:standby + + +N2 + + +up:starting - - -N0->S1 - - + + +S1->N2 + + - - -S2 - -up:standby_replay + + +N3 + + +up:replay - - -N0->S2 - - + + +S1->N3 + + + + + +S2->N3 + + - + S0 - - -up:active + + +up:active - + N1->S0 - - + + - + N2->S0 - - + + D0 - - -down:failed + + +down:failed - + N2->D0 - - + + - + N4 - - -up:resolve + + +up:resolve - + N3->N4 - - + + - + N5 - - -up:reconnect + + +up:reconnect - + N3->N5 - - + + - + N3->D0 - - + + D1 - -down:damaged + +down:damaged - + N3->D1 - - + + - + N4->N5 - - + + - + N4->D0 - - + + - + N4->D1 - - + + - + N6 - - -up:rejoin + + +up:rejoin - + N5->N6 - - + + - + N5->D0 - - + + - + N5->D1 - - + + - + N7 - - -up:clientreplay + + +up:clientreplay - + N6->N7 - - + + - + N6->S0 - - + + - + N6->D0 - - + + - + N6->D1 - - + + - + N7->S0 - - + + - + N7->D0 - - + + - + N7->D1 - - + + S3 - - -up:stopping + + +up:stopping - + S0->S3 - - + + - + S0->D0 - - + + - + S0->D1 - - + + - + S3->D0 - - + + - + S3->D1 - - + + D3 - -down:stopped + +down:stopped - + S3->D3 - - + + - + D0->N3 - - + + - + D1->D0 - - + + -- 2.47.3