-
Notifications
You must be signed in to change notification settings - Fork 91
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
custom-conf-parameters&pv-claim&balance data (#1176)
* custom-conf-parameters * update-pv-claim * auto-balance-data-parameter * Update mkdocs.yml * version macro * updates * Update 8.3.balance-data-when-scaling-storage.md * Update 2.deploy-nebula-operator.md * Update 2.deploy-nebula-operator.md * Update 8.3.balance-data-when-scaling-storage.md * Update 8.1.custom-conf-parameter.md * updates * Update 8.1.custom-conf-parameter.md * Update 8.3.balance-data-when-scaling-storage.md * colon fix * Update 3.1create-cluster-with-kubectl.md
- Loading branch information
1 parent
1ebadec
commit 5450041
Showing
9 changed files
with
336 additions
and
34 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
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
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
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
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 |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
|
||
## Nebula Operator是否支持滚动升级Nebula Graph? | ||
|
||
暂不支持。 | ||
只支持升级2.5.x版本的Nebula Graph至2.6.x。 | ||
|
||
## 使用本地存储是否可以保证集群稳定性? | ||
|
||
|
66 changes: 66 additions & 0 deletions
66
....0/nebula-operator/8.custom-cluster-configurations/8.1.custom-conf-parameter.md
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,66 @@ | ||
# 自定义Nebula Graph集群的配置参数 | ||
|
||
Nebula Graph集群中Meta、Storage、Graph服务都有各自的配置,其在用户创建的CR实例(Nebula Graph集群)的YAML文件中被定义为`config`。`config`中的设置会被映射并加载到对应服务的ConfigMap中。 | ||
|
||
!!! note | ||
|
||
暂不支持通过Helm自定义Nebula Graph集群的配置参数。 | ||
|
||
`config`结构如下: | ||
|
||
``` | ||
Config map[string]string `json:"config,omitempty"` | ||
``` | ||
|
||
## 前提条件 | ||
|
||
已使用K8s创建一个集群。具体步骤,参见[使用Kubectl创建Nebula Graph集群](../3.deploy-nebula-graph-cluster/3.1create-cluster-with-kubectl.md)。 | ||
|
||
|
||
## 操作步骤 | ||
|
||
以下示例使用名为`nebula`的集群说明如何在YAML中为集群的Graph服务配置`config`: | ||
|
||
1. 执行以下命令进入`nebula`集群的编辑页面。 | ||
|
||
```bash | ||
kubectl edit nebulaclusters.apps.nebula-graph.io nebula | ||
``` | ||
|
||
2. 在YAML文件的`spec.graphd.config`配置项中,添加`enable_authorize`和`auth_type`。 | ||
|
||
```yaml | ||
apiVersion: apps.nebula-graph.io/v1alpha1 | ||
kind: NebulaCluster | ||
metadata: | ||
name: nebula | ||
namespace: default | ||
spec: | ||
graphd: | ||
resources: | ||
requests: | ||
cpu: "500m" | ||
memory: "500Mi" | ||
limits: | ||
cpu: "1" | ||
memory: "1Gi" | ||
replicas: 1 | ||
image: vesoft/nebula-graphd | ||
version: {{nebula.branch}} | ||
storageClaim: | ||
resources: | ||
requests: | ||
storage: 2Gi | ||
storageClassName: gp2 | ||
config: //为Graph服务自定义参数。 | ||
"enable_authorize": "true" | ||
"auth_type": "password" | ||
... | ||
``` | ||
|
||
在自定义参数`enable_authorize`和`auth_type`后,Graph服务对应的ConfigMap(`nebula-graphd`)中的配置将被覆盖。 | ||
|
||
## 更多信息 | ||
|
||
有关Meta、Storage、Graph服务的配置参数的详细介绍,参见[服务配置文件](../../5.configurations-and-logs/1.configurations/1.configurations.md)。 | ||
|
98 changes: 98 additions & 0 deletions
98
docs-2.0/nebula-operator/8.custom-cluster-configurations/8.2.pv-reclaim.md
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,98 @@ | ||
# 回收PV | ||
|
||
Nebula Operator使用持久化卷PV(Persistent Volume)和持久化卷声明PVC(Persistent Volume Claim)来存储持久化数据。如果用户不小心删除了一个Nebula Graph集群,PV和PVC对象及其数据仍可保留,以确保数据安全。 | ||
|
||
用户可以在集群的CR实例的配置文件中通过参数`enablePVReclaim`定义是否回收PV。 | ||
|
||
如果用户需要删除图空间并想保留相关数据,可以更新Nebula Graph集群,即设置`enablePVReclaim`为`true`。 | ||
|
||
## 前提条件 | ||
|
||
已使用K8s创建一个集群。具体步骤,参见[使用Kubectl创建Nebula Graph集群](../3.deploy-nebula-graph-cluster/3.1create-cluster-with-kubectl.md)。 | ||
|
||
## 操作步骤 | ||
|
||
以下示例使用名为`nebula`的集群说明如何设置`enablePVReclaim`: | ||
|
||
1. 执行以下命令进入`nebula`集群的编辑页面。 | ||
|
||
```bash | ||
kubectl edit nebulaclusters.apps.nebula-graph.io nebula | ||
``` | ||
|
||
2. 在YAML文件的`spec`配置项中,添加`enablePVReclaim`并设置其值为`true`。 | ||
|
||
```yaml | ||
apiVersion: apps.nebula-graph.io/v1alpha1 | ||
kind: NebulaCluster | ||
metadata: | ||
name: nebula | ||
spec: | ||
enablePVReclaim: true //设置其值为true。 | ||
graphd: | ||
image: vesoft/nebula-graphd | ||
logVolumeClaim: | ||
resources: | ||
requests: | ||
storage: 2Gi | ||
storageClassName: fast-disks | ||
replicas: 1 | ||
resources: | ||
limits: | ||
cpu: "1" | ||
memory: 1Gi | ||
requests: | ||
cpu: 500m | ||
memory: 500Mi | ||
version: {{nebula.branch}} | ||
imagePullPolicy: IfNotPresent | ||
metad: | ||
dataVolumeClaim: | ||
resources: | ||
requests: | ||
storage: 2Gi | ||
storageClassName: fast-disks | ||
image: vesoft/nebula-metad | ||
logVolumeClaim: | ||
resources: | ||
requests: | ||
storage: 2Gi | ||
storageClassName: fast-disks | ||
replicas: 1 | ||
resources: | ||
limits: | ||
cpu: "1" | ||
memory: 1Gi | ||
requests: | ||
cpu: 500m | ||
memory: 500Mi | ||
version: {{nebula.branch}} | ||
nodeSelector: | ||
nebula: cloud | ||
reference: | ||
name: statefulsets.apps | ||
version: v1 | ||
schedulerName: default-scheduler | ||
storaged: | ||
dataVolumeClaim: | ||
resources: | ||
requests: | ||
storage: 2Gi | ||
storageClassName: fast-disks | ||
image: vesoft/nebula-storaged | ||
logVolumeClaim: | ||
resources: | ||
requests: | ||
storage: 2Gi | ||
storageClassName: fast-disks | ||
replicas: 3 | ||
resources: | ||
limits: | ||
cpu: "1" | ||
memory: 1Gi | ||
requests: | ||
cpu: 500m | ||
memory: 500Mi | ||
version: {{nebula.branch}} | ||
... | ||
``` |
Oops, something went wrong.