Skip to content

plantuml 宽度超出编辑器 #14618

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
TCOTC opened this issue Apr 15, 2025 · 3 comments
Closed

plantuml 宽度超出编辑器 #14618

TCOTC opened this issue Apr 15, 2025 · 3 comments

Comments

@TCOTC
Copy link
Contributor

TCOTC commented Apr 15, 2025

https://ld246.com/article/1744734488261

Image

@startuml PD Leader Internal Flow (Fixed)
!theme plain

title PD Leader Internal Core Flow (Simplified)

start

partition "Request Ingestion" {
    :Receive gRPC/HTTP Request;
    :Dispatch Request based on Type;
}

if (Request is Heartbeat?) then (Heartbeat)
    partition "Heartbeat Processing" {
        :Update Statistics (pkg/statistics);
        :Update In-Memory Cluster State (pkg/core);
        note right: Trigger scheduling check
        -->[Trigger] CheckSchedulingNeeded;
    }
    partition "Scheduling Cycle" {
        :CheckSchedulingNeeded;
        if (Scheduling Needed? by Checkers) then (yes)
          :Select Scheduler(s);
          :Generate Operator(s) (pkg/schedule/operator);
          :Add Operator(s) to Controller Queue;
          note right: Operator will be included\nin Heartbeat Response
        else (no)
          :No Operator Generated;
        endif
        --> PrepareHeartbeatResponse;
    }
    partition "Response Sending" {
        :PrepareHeartbeatResponse;
        :Send Heartbeat Response (to TiKV);
        --> (*) EndHeartbeatFlow;
    }

elseif (Request is TSO?) then (TSO)
    partition "TSO Allocation" {
        :Allocate TSO Batch (pkg/tso);
        fork
           :Prepare TSO Response;
           --> SendTSOResponse;
        fork again
            :Persist Max Allocated TSO to Etcd (Async);
        end fork
    }
    partition "Response Sending" {
        :SendTSOResponse;
        :Send TSO Response (to TiKV/TiDB);
        --> (*) EndTSOFlow;
    }


else (Metadata/API)
    partition "Metadata & Other API Service" {
        :Handle API Request Logic (e.g., Get Status, Update Config);
        :Access Storage Layer (pkg/storage);
        note left: Interacts with Etcd
        :Prepare API Response;
        --> SendAPIResponse;
    }
    partition "Response Sending" {
        :SendAPIResponse;
        :Send API Response (to TiDB/pd-ctl/Dashboard);
        --> (*) EndAPIFlow;
    }
endif

' Define common stop points (using explicit labels before stop)
:EndHeartbeatFlow;
stop
:EndTSOFlow;
stop
:EndAPIFlow;
stop

@enduml
@TCOTC
Copy link
Contributor Author

TCOTC commented Apr 16, 2025

这个是什么情况?

@88250
Copy link
Member

88250 commented Apr 16, 2025

Image

@TCOTC
Copy link
Contributor Author

TCOTC commented Apr 16, 2025

哦,手机版 GitHub 不显示这个

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants