-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #33 from Al-assad/dev
Doc: Restart Doris cluster
- Loading branch information
Showing
3 changed files
with
91 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
--- | ||
title: "Restart Doris Cluster" | ||
weight: 605 | ||
--- | ||
|
||
{{< callout context="caution" title="Caution" icon="alert-triangle" >}} | ||
The following feature is available in Doris-Operator v1.0.4 and later. | ||
{{< /callout >}} | ||
|
||
When using the Doris cluster, if you need to restart the cluster, you can modify the cluster configuration by using | ||
`kubectl edit dc ${name} -n ${namespace}`. | ||
To indicate the desired rolling restart for Doris cluster components, add the | ||
annotation `al-assad.github.io/restartedAt` to the Spec of the respective Doris cluster components, with the Value set | ||
to the current time. | ||
In the following example, annotations are set for the FE, BE, CN, and Broker components, indicating | ||
a rolling restart for all Pods of these three Doris cluster components. | ||
Depending on the actual situation, you can set annotations only for specific components. | ||
|
||
```yaml | ||
apiVersion: al-assad.github.io/v1beta1 | ||
kind: DorisCluster | ||
metadata: | ||
name: basic | ||
spec: | ||
fe: | ||
... | ||
annotations: | ||
al-assad.github.io/restartedAt: "2023-12-01T12:00" | ||
be: | ||
... | ||
annotations: | ||
al-assad.github.io/restartedAt: "2023-12-01T12:00" | ||
cn: | ||
... | ||
annotations: | ||
al-assad.github.io/restartedAt: "2023-12-01T12:00" | ||
broker: | ||
... | ||
annotations: | ||
al-assad.github.io/restartedAt: "2023-12-01T12:00" | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
--- | ||
title: "重启 Doris 集群" | ||
weight: 605 | ||
--- | ||
|
||
{{< callout context="caution" title="注意" icon="alert-triangle" >}} | ||
以下功能在 Doris-Operator v1.0.4 及以上版本中可用。 | ||
{{< /callout >}} | ||
|
||
在使用 Doris 集群的过程中,如果需要对集群进行重启,可以通过 `kubectl edit dc ${name} -n ${namespace}` 修改集群配置,为期望优雅滚动重启的 | ||
Doris 集群组件 Spec 添加 annotation `al-assad.github.io/restartedAt`,Value 设置为当前时间。 | ||
|
||
以下示例中为组件 FE、BE、CN、Broker 都设置了 annotation,表示将优雅滚动重启以上三个 Doris 集群组件的所有 | ||
Pod。可以根据实际情况,只为某个组件设置 annotation。 | ||
|
||
```yaml | ||
apiVersion: al-assad.github.io/v1beta1 | ||
kind: DorisCluster | ||
metadata: | ||
name: basic | ||
spec: | ||
fe: | ||
... | ||
annotations: | ||
al-assad.github.io/restartedAt: "2023-12-01T12:00" | ||
be: | ||
... | ||
annotations: | ||
al-assad.github.io/restartedAt: "2023-12-01T12:00" | ||
cn: | ||
... | ||
annotations: | ||
al-assad.github.io/restartedAt: "2023-12-01T12:00" | ||
broker: | ||
... | ||
annotations: | ||
al-assad.github.io/restartedAt: "2023-12-01T12:00" | ||
``` | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters