8000 Add comprehensive architecture documentation with Mermaid diagrams by Copilot · Pull Request #1 · RongGu/rbg · GitHub
[go: up one dir, main page]

Skip to content

Add comprehensive architecture documentation with Mermaid diagrams - #1

Draft
RongGu with Copilot wants to merge 2 commits into
mainfrom
copilot/create-architecture-diagram
Draft

RongGu with Copilot wants to merge 2 commits into
mainfrom
copilot/create-architecture-diagram

Conversation

Copilot AI commented Nov 9, 2025 •
Copy link
Copy Markdown

Ⅰ. Motivation

User requested Mermaid architecture diagrams illustrating RBG's core components: RBG Controller (orchestrates multi-role deployments, manages dependencies, coordinates scheduling/updates) and Engine Runtime Manager (handles LLM inference runtime via ClusterEngineRuntimeProfile, enables service discovery and PD disaggregation scenarios).

Ⅱ. Modifications

Created doc/architecture.md (314 lines) with 7 Mermaid diagrams:

  • Overall Architecture: RBG Controller → Engine Runtime Manager → Kubernetes resources (StatefulSet/LWS/Deployment) → Pods, with scheduling plugins and PD disaggregation scenario
  • Controller Workflow: Watch → Reconcile → Validate → CreateUpdate → Status loop
  • Engine Runtime Manager: ClusterEngineRuntimeProfile → container injection/service discovery/config management
  • PD Disaggregation: Router → Prefill/Decode roles with KV Cache transfer for LLM inference
  • Startup Sequence: Dependency-based role creation sequence diagram
  • Service Discovery: ConfigMap/Env injection flow
  • Rolling Update: Role-level atomic update strategy

Updated documentation references:

  • doc/TOC.md: Added architecture link under Overview
  • README.md and README-zh_CN.md: Added architecture documentation links

All content in Chinese per request. Covers controller orchestration, engine runtime management, multi-role workflows, PD separation benefits, tech stack, and use cases.

Ⅲ. Does this pull request fix one issue?

fixes #NONE (documentation improvement, no specific issue number provided)

Ⅳ. List the added test cases (unit test/integration test) if any, please explain if no tests are needed.

No tests needed - documentation-only changes. Mermaid syntax validated (7 diagrams, properly closed code blocks).

Ⅴ. Describe how to verify it

  1. View doc/architecture.md on GitHub - Mermaid diagrams render automatically
  2. Follow links from README files to architecture doc
  3. Check TOC.md includes architecture reference under Overview section

VI. Special notes for reviews

Document is comprehensive (314 lines) but information-dense. Each diagram focuses on specific aspect: overall system, controller internals, runtime manager, PD scenario, and key workflows. All text in Chinese as requested.

Checklist

  • Format your code make fmt - N/A for documentation
  • Add unit tests or integration tests - N/A for documentation
  • Update the documentation related to the change - This PR is documentation
Original prompt

请用mermaid画一下rbg项目的架构图,核心组件是RBG Controller和Engine Runtime Manager;RBG ControllerRBG的controller本身是针对于复杂拓扑中间件进行部署和运维,是负责多个角色的编排和包括调度,升级的协同,是针对特定场景的通用controller;通过LLM Engine Runtime(Manager)来支持大模型推理领域,比如多个推理引擎组件之间的服务发现,模型切换,PD分离场景多个角色配比的规划。除此之外也请根据你对该项目的理解画出架构图。


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Co-authored-by: RongGu <2420697+RongGu@users.noreply.github.com>
Copilot AI changed the title [WIP] Add architecture diagram for RBG project Add comprehensive architecture documentation with Mermaid diagrams Nov 9, 2025
Copilot AI requested a review from RongGu November 9, 2025 07:53
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

Successfully merging this pull request may close these issues.

2 participants

0