Skip to content

Commit ce56967

Browse files
committed
Add new articles for user_practice_co-construction
1 parent 7d76fbf commit ce56967

File tree

21 files changed

+431
-12
lines changed

21 files changed

+431
-12
lines changed

docs/user_manual/operation_and_maintenance/zh-CN/user_practice_co-construction/02_Best_Practices_for_Deploying_OceanBase_on_K8s.md renamed to docs/user_manual/operation_and_maintenance/zh-CN/user_practice_co-construction/02_deploying_on_K8s.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: 在 K8S 上部署 OceanBase 的最佳实践
2+
title: 在 K8S 上部署 OceanBase 实践
33
weight: 2
44
---
55
> 本文作者:美的集团软件工程院 陈子鎏(OceanBase 社区论坛账号:@qchenzi
@@ -187,13 +187,13 @@ spec:
187187
```
188188
部署完成后,如下图所示:
189189
190-
![img](/img/user_manual/operation_and_maintenance/zh-CN/user_practice_co-construction/02_best_practices_for_deploying_oceanbase_on_k8s/001.png)
190+
![img](/img/user_manual/operation_and_maintenance/zh-CN/user_practice_co-construction/02_deploying_on_K8s/001.png)
191191
192192
**通过 OBProxy 访问 OB 集群**:
193193
194194
此时,可以通过 OBProxy 的 Service 提供 OB 数据库的访问入口,如下(obmysql 是我提前创建好的租户,testdb 是提前在 obmysql 下创建的用户):
195195
196-
![img](/img/user_manual/operation_and_maintenance/zh-CN/user_practice_co-construction/02_best_practices_for_deploying_oceanbase_on_k8s/002.png)
196+
![img](/img/user_manual/operation_and_maintenance/zh-CN/user_practice_co-construction/02_deploying_on_K8s/002.png)
197197
198198
当然,在实际的生产中,我们采用的是域名访问的方式,而不是通过 IP 地址访问,因此需要进行域名重写,可看下一小节。
199199
@@ -260,7 +260,7 @@ spec:
260260
6. **如图所示**:
261261
- 直接通过域名即可访问,而不用关心 obproxy 的 service ip,进一步加强了集群的高可用能力
262262

263-
![img](/img/user_manual/operation_and_maintenance/zh-CN/user_practice_co-construction/02_best_practices_for_deploying_oceanbase_on_k8s/003.png)
263+
![img](/img/user_manual/operation_and_maintenance/zh-CN/user_practice_co-construction/02_deploying_on_K8s/003.png)
264264

265265
### 2.6 监控与运维
266266

@@ -305,21 +305,21 @@ svc-prometheus NodePort 12.80.144.38 <none> 9090:30090/TCP 7
305305
2. 在 `Add data source` 页面,选择 `Prometheus` 作为数据源类型。
306306
3. 在 `Prometheus` 页面,填写 `Name` 为 `ob-prometheus`,`URL` 为 `http://12.80.144.38:9090`(即上面的promethues对应的svc ip),然后单击 `Save & Test` 按钮。
307307

308-
![img](/img/user_manual/operation_and_maintenance/zh-CN/user_practice_co-construction/02_best_practices_for_deploying_oceanbase_on_k8s/004.png)
308+
![img](/img/user_manual/operation_and_maintenance/zh-CN/user_practice_co-construction/02_deploying_on_K8s/004.png)
309309

310310

311311
##### 2.6.2.2 配置 Grafana Dashboard
312312

313313
1. 新建一个名为 OceanBase 的文件夹
314314

315-
![img](/img/user_manual/operation_and_maintenance/zh-CN/user_practice_co-construction/02_best_practices_for_deploying_oceanbase_on_k8s/005.png)
315+
![img](/img/user_manual/operation_and_maintenance/zh-CN/user_practice_co-construction/02_deploying_on_K8s/005.png)
316316

317317
2. 进入该文件夹,接着导入文件链接:[grafana.yaml](https://github.com/oceanbase/ob-operator/blob/2.3.1/example/webapp/grafana.yaml) 中的grafana-dashboards-ob部分的json配置
318318

319-
![img](/img/user_manual/operation_and_maintenance/zh-CN/user_practice_co-construction/02_best_practices_for_deploying_oceanbase_on_k8s/006.png)
319+
![img](/img/user_manual/operation_and_maintenance/zh-CN/user_practice_co-construction/02_deploying_on_K8s/006.png)
320320
3. 监控展示如图
321321

322-
![img](/img/user_manual/operation_and_maintenance/zh-CN/user_practice_co-construction/02_best_practices_for_deploying_oceanbase_on_k8s/007.png)
322+
![img](/img/user_manual/operation_and_maintenance/zh-CN/user_practice_co-construction/02_deploying_on_K8s/007.png)
323323

324324

325325
## 3. 部署中遇到的问题及解决方案

docs/user_manual/operation_and_maintenance/zh-CN/user_practice_co-construction/03_misoperation_recovery.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,10 @@ weight: 3
44
---
55
> 本文作者:张瑞远(OceanBase 社区论坛账号:@五月)
66
7-
> 在数据库管理中,误操作是一个常见但令人头疼的问题。无论是意外删除了重要数据、修改了关键配置,还是执行了错误的 SQL 语句,这些误操作都可能导致业务中断或数据丢失。幸运的是,OceanBase 提供了一系列机制和工具来帮助我们从误操作中恢复。本文将介绍几种有效的恢复方法,为那些可能犯错的管理员们提供一份 “后悔药”。
8-
>
7+
在数据库管理中,误操作是一个常见但令人头疼的问题。无论是意外删除了重要数据、修改了关键配置,还是执行了错误的 SQL 语句,这些误操作都可能导致业务中断或数据丢失。
8+
9+
幸运的是,OceanBase 提供了一系列机制和工具来帮助我们从误操作中恢复。本文将介绍几种有效的恢复方法,为那些可能犯错的管理员们提供一份 “后悔药”。
10+
911

1012
## 一、备份与还原
1113
### 1.1 定期备份的重要性
@@ -124,11 +126,9 @@ ROLLBACK TO SAVEPOINT pointname;
124126
该方法可以紧急拉起单副本,但是要尽快备份数据,或者修复集群!
125127

126128

127-
128129
**<font color="red">单副本拉起这个方法不是官方的标准操作,有很多风险(例如多数派挂了,有可能在剩余的副本上看到的已经不是最新的数据了)。这个方法是标准意义上的 “奇技淫巧”,大家了解即可。</font>**
129130

130131

131-
132132
## 七、预防措施
133133
最后,除了事后补救外,还需要加强事前预防。这包括但不限于:
134134

0 commit comments

Comments
 (0)