Skip to content

Commit fe6e39f

Browse files
authored
Docs: Added new architecture diagram and update related docs (#661)
1 parent 962e94f commit fe6e39f

File tree

8 files changed

+47
-20
lines changed

8 files changed

+47
-20
lines changed

README-CN.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,8 @@ ob-operator 以 kubebuilder 为基础,通过统一的资源管理器接口、
162162

163163
![ob-operator 架构设计](./docsite/static/img/ob-operator-arch.png)
164164

165+
![ob-operator 任务管理器](./docsite/static/img/ob-operator-task-manager-arch.png)
166+
165167
有关架构细节可参见[架构设计文档](https://oceanbase.github.io/ob-operator/zh-Hans/docs/developer/arch)
166168

167169
## 特性

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,10 +160,12 @@ Login with admin user and password.
160160

161161
## Project Architecture
162162

163-
ob-operator is built on top of kubebuilder and provides control and management of OceanBase clusters and related applications through a unified resource manager interface, a global task manager instance, and a task flow mechanism for handling long-running tasks. The architecture diagram is approximately as follows:
163+
ob-operator is built on top of kubebuilder and provides control and management of OceanBase clusters and related applications through a unified resource manager interface, a global task manager instance, and a task flow mechanism for handling long-running tasks. The architecture diagram of ob-operator is approximately as follows:
164164

165165
![ob-operator Architecture](./docsite/static/img/ob-operator-arch.png)
166166

167+
![ob-operator Task Manager Architecture](./docsite/static/img/ob-operator-task-manager-arch.png)
168+
167169
For more detailed information about the architecture, please refer to the [Architecture Document](https://oceanbase.github.io/ob-operator/docs/developer/arch).
168170

169171
## Features
@@ -212,6 +214,8 @@ ob-operator is built using the [kubebuilder](https://book.kubebuilder.io/introdu
212214
- [Contributor Guidance](https://oceanbase.github.io/ob-operator/docs/developer/contributor-guidance)
213215
- [User Manual](https://oceanbase.github.io/ob-operator/docs/manual/what-is-ob-operator)
214216

217+
github.com/oceanbase/ob-operator + /docs/developer/arch
218+
215219
## Getting Help
216220

217221
If you encounter any issues while using ob-operator, please feel free to seek help through the following channels:

docsite/docs/developer/arch.md

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,22 @@ ob-operator follows the [Operator pattern of Kubernetes](https://kubernetes.io/d
1212
* OBCluster: Represents an OceanBase cluster.
1313
* OBZone: Represents an OceanBase zone that belongs to an OBCluster.
1414
* OBServer: Represents an OceanBase observer resource that belongs to an OBZone.
15-
* OBParameter: Represents cluster parameters.
15+
* OBParameter: Represents cluster and tenant parameters.
1616
* OBTenant: Represents a tenant in the OceanBase cluster, which belongs to an OBCluster.
1717
* OBTenantBackupPolicy: Represents a scheduling backup policy for a tenant.
1818
* OBTenantBackup: Represents a backup task for a tenant.
1919
* OBTenantRestore: Represents a restore task for a tenant.
2020
* OBTenantOperation: Represents operational tasks for a tenant.
21+
* OBTenantVariable: Represents tenant variables.
22+
* OBClusterOperation: Represents operational tasks for a cluster.
23+
* OBResourceRescue: Represents a resource rescue task, which is used to recover resources that are stuck in an error state.
24+
* K8sCluster: Represents a Kubernetes cluster that is managed by ob-operator.
25+
26+
## Diagram
27+
28+
The following diagram illustrates layers of ob-operator and the relationship among the custom resources.
29+
30+
![ob-operator architecture](/img/ob-operator-arch.png)
2131

2232
## Resource Manager
2333

@@ -66,4 +76,4 @@ To address this issue, ob-operator adopts task flow mechanism and a global task
6676

6777
The relationship among the control loop, resource manager, and task manager is depicted in the following figure.
6878

69-
![The relationship among the control loop, resource manager, and task manager](/img/ob-operator-arch.png)
79+
![The relationship among the control loop, resource manager, and task manager](/img/ob-operator-task-manager-arch.png)

docsite/i18n/zh-Hans/docusaurus-plugin-content-docs/current/developer/arch.md

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,22 @@ ob-operator 遵循 Kubernetes 的 [Operator 拓展范式](https://kubernetes.io/
1212
* OBCluster: OceanBase 集群资源
1313
* OBZone: OceanBase Zone 资源,隶属于某个 OBCluster
1414
* OBServer: OceanBase observer 资源,隶属于某个 OBZone
15-
* OBParameter: 集群参数
15+
* OBParameter: 集群和租户参数
1616
* OBTenant: OceanBase 集群当中的租户,隶属于某个 OBCluster
1717
* OBTenantBackupPolicy: 租户备份策略
1818
* OBTenantBackup: 租户备份任务
1919
* OBTenantRestore: 租户恢复任务
2020
* OBTenantOperation: 租户运维操作
21+
* OBTenantVariable: 租户变量
22+
* OBClusterOperation: 集群运维操作
23+
* OBResourceRescue: 资源救治任务,用于处理资源异常情况
24+
* K8sCluster: 受 ob-operator 控制的 Kubernetes 集群
25+
26+
## 架构图
27+
28+
下面这张架构图展示了 ob-operator 的层级设计和自定义资源之间的关系。
29+
30+
![ob-operator 架构图](/img/ob-operator-arch.png)
2131

2232
## 资源管理器
2333

@@ -65,4 +75,4 @@ Kubernetes 在内部采用控制循环和消息队列的方式来实现事件的
6575

6676
控制循环、资源管理器、任务管理器的关系如下图所示。
6777

68-
![控制循环、资源管理器、任务管理器的关系](/img/ob-operator-arch.png)
78+
![控制循环、资源管理器、任务管理器的关系](/img/ob-operator-task-manager-arch.png)

docsite/i18n/zh-Hans/docusaurus-plugin-content-pages/index.mdx renamed to docsite/i18n/zh-Hans/docusaurus-plugin-content-pages/index.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
title: 项目介绍
33
---
44

5-
import Link from '@docusaurus/Link'
65

76
# ob-operator
87

@@ -130,7 +129,7 @@ mysql -h{POD_IP} -P2881 -uroot -proot_password oceanbase -A -c
130129

131130
### OceanBase Dashboard
132131

133-
我们很高兴向用户推出创新的 OceanBase Kubernetes Dashboard,这是一款旨在改善用户在 Kubernetes 上管理和监控 OceanBase 集群体验的先进工具。欢迎各位用户使用和反馈,同时我们也在积极开发新功能以增强未来的更新。<Link to="docs/dashboard/quickstart">快速上手</Link>文档能帮助您快速了解 OceanBase 的功能和使用方法。
132+
我们很高兴向用户推出创新的 OceanBase Kubernetes Dashboard,这是一款旨在改善用户在 Kubernetes 上管理和监控 OceanBase 集群体验的先进工具。欢迎各位用户使用和反馈,同时我们也在积极开发新功能以增强未来的更新。[快速上手](/docs/dashboard/quickstart)文档能帮助您快速了解 OceanBase 的功能和使用方法。
134133

135134
安装 OceanBase Dashboard 非常简单, 只需要执行如下命令。
136135

@@ -167,7 +166,9 @@ ob-operator 以 kubebuilder 为基础,通过统一的资源管理器接口、
167166

168167
![ob-operator 架构设计](/img/ob-operator-arch.png)
169168

170-
有关架构细节可参见<Link to="docs/developer/arch">架构设计文档</Link>。
169+
![ob-operator 任务管理器](/img/ob-operator-task-manager-arch.png)
170+
171+
有关架构细节可参见[架构设计文档](/docs/developer/arch)
171172

172173
## 特性
173174

@@ -211,10 +212,10 @@ ob-operator 使用 [kubebuilder](https://book.kubebuilder.io/introduction) 项
211212

212213
## 文档
213214

214-
- <Link to="docs/developer/arch">ob-operator 架构设计</Link>
215-
- <Link to="docs/developer/deploy">部署 ob-operator</Link>
216-
- <Link to="docs/developer/contributor-guidance">开发手册</Link>
217-
- <Link to="docs/manual/what-is-ob-operator">用户手册</Link>
215+
- [ob-operator 架构设计](/docs/developer/arch)
216+
- [部署 ob-operator](/docs/developer/deploy)
217+
- [开发手册](/docs/developer/contributor-guidance)
218+
- [用户手册](/docs/manual/what-is-ob-operator)
218219

219220
## 获取帮助
220221

docsite/src/pages/index.mdx renamed to docsite/src/pages/index.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
title: Introduction
33
---
44

5-
import Link from '@docusaurus/Link'
6-
75
# ob-operator
86

97
`ob-operator` is a Kubernetes operator that simplifies the deployment and management of OceanBase cluster and related resources on Kubernetes.
@@ -131,7 +129,7 @@ mysql -h{POD_IP} -P2881 -uroot -proot_password oceanbase -A -c
131129

132130
### OceanBase Dashboard
133131

134-
We are excited to unveil our innovative OceanBase Kubernetes Dashboard, a pioneering tool designed to enhance your experience with managing and monitoring OceanBase clusters on Kubernetes. We are proud to offer this amazing tool to our users and will actively work on new features and enhancements for future updates. <Link to="docs/dashboard/quickstart">Quick Start</Link> guide is available to help you get started with OceanBase Dashboard.
132+
We are excited to unveil our innovative OceanBase Kubernetes Dashboard, a pioneering tool designed to enhance your experience with managing and monitoring OceanBase clusters on Kubernetes. We are proud to offer this amazing tool to our users and will actively work on new features and enhancements for future updates. [Quick Start](/docs/dashboard/quickstart) guide is available to help you get started with OceanBase Dashboard.
135133

136134
Deploy OceanBase Dashboard is pretty simple, just run the following commands:
137135

@@ -164,11 +162,13 @@ Login with admin user and password.
164162

165163
## Project Architecture
166164

167-
ob-operator is built on top of kubebuilder and provides control and management of OceanBase clusters and related applications through a unified resource manager interface, a global task manager instance, and a task flow mechanism for handling long-running tasks. The architecture diagram is approximately as follows:
165+
ob-operator is built on top of kubebuilder and provides control and management of OceanBase clusters and related applications through a unified resource manager interface, a global task manager instance, and a task flow mechanism for handling long-running tasks. The architecture diagram of ob-operator is approximately as follows:
168166

169167
![ob-operator Architecture](/img/ob-operator-arch.png)
170168

171-
For more detailed information about the architecture, please refer to the <Link to="docs/developer/arch">Architecture Document</Link>.
169+
![ob-operator Task Manager Architecture](/img/ob-operator-task-manager-arch.png)
170+
171+
For more detailed information about the architecture, please refer to the [Architecture](/docs/developer/arch) Document.
172172

173173
## Features
174174

@@ -212,9 +212,9 @@ ob-operator is built using the [kubebuilder](https://book.kubebuilder.io/introdu
212212

213213
## Documents
214214

215-
- <Link to="docs/developer/arch">Architecture</Link>
216-
- <Link to="docs/developer/contributor-guidance">Contributor Guidance</Link>
217-
- <Link to="docs/manual/what-is-ob-operator">User Manual</Link>
215+
- [Architecture](/docs/developer/arch)
216+
- [Contributor Guidance](/docs/developer/contributor-guidance)
217+
- [User Manual](/docs/manual/what-is-ob-operator)
218218

219219
## Getting Help
220220

-65.5 KB
Loading
419 KB
Loading

0 commit comments

Comments
 (0)