github.com/pingcap/tiflow@v0.0.0-20240520035814-5bf52d54e205/docs/ticdc-gc-safepoint.wsd (about)

     1  @startuml TiCDC GC safepoint
     2  box #LightBlue
     3  participant CLI
     4  participant API
     5  end box
     6  
     7  group "CLI or API?" [CLI]
     8    CLI -> PD : service GC safepoint\n"cdc-creating-<ID>"
     9    activate PD
    10    CLI -> PD : Create changefeed
    11  else API
    12    API -> Owner : Create changefeed API
    13    Owner -> PD : service GC safepoint\n"cdc-creating-<ID>"
    14    activate PD
    15    Owner -> PD : Create changefeed
    16  end
    17  
    18  Owner -> PD : GC safepoint "ticdc"
    19  note right: using the minimal\ncheckpoint among\nall changefeeds
    20  
    21  Owner -> PD : Remove service\nGC safepoint\n"cdc-creating-<ID>"
    22  deactivate PD
    23  deactivate PD
    24  Owner -> Owner : Start changefeed
    25  @enduml