From ec2d6f0ad7f386f4453a6b99b73626acbeaf09c0 Mon Sep 17 00:00:00 2001 From: Abby <78209557+abby-cyber@users.noreply.github.com> Date: Mon, 13 Mar 2023 14:07:21 +0800 Subject: [PATCH] add-dynamic-changes-to-configs --- .../8.1.custom-conf-parameter.md | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/docs-2.0/nebula-operator/8.custom-cluster-configurations/8.1.custom-conf-parameter.md b/docs-2.0/nebula-operator/8.custom-cluster-configurations/8.1.custom-conf-parameter.md index 0f36cd64a59..2f2c24c8270 100644 --- a/docs-2.0/nebula-operator/8.custom-cluster-configurations/8.1.custom-conf-parameter.md +++ b/docs-2.0/nebula-operator/8.custom-cluster-configurations/8.1.custom-conf-parameter.md @@ -8,7 +8,7 @@ Meta, Storage, and Graph services in a NebulaGraph Cluster have their configurat The structure of `config` is as follows. -``` +```go Config map[string]string `json:"config,omitempty"` ``` ## Prerequisites @@ -56,12 +56,22 @@ The following example uses a cluster named `nebula` and the cluster's configurat "auth_type": "password" ... ``` + + To add the `config` for the Meta and Storage services, add `spec.metad.config` and `spec.storaged.config` respectively. 3. Run `kubectl apply -f nebula_cluster.yaml` to push your configuration changes to the cluster. After customizing the parameters `enable_authorize` and `auth_type`, the configurations in the corresponding ConfigMap (`nebula-graphd`) of the Graph service will be overwritten. +## Modify cluster configurations online + +Cluster configurations are modified online by calling the HTTP interface, without the need to restart the cluster Pod. + +It should be noted that only when all configuration items in `config` are the parameters that can be dynamically modified at runtime, can the operation of online modifications be triggered. If the configuration items in `config` contain parameters that cannot be dynamically modified, then the cluster configuration will be updated by restarting the Pod. + +For information about the parameters that can be dynamically modified for each service, see the parameter table column of **Whether supports runtime dynamic modifications** in [Meta service configuration parameters](../../5.configurations-and-logs/1.configurations/2.meta-config.md), [Storage service configuration parameters](../../5.configurations-and-logs/1.configurations/4.storage-config.md), and [Graph service configuration parameters](../../5.configurations-and-logs/1.configurations/3.graph-config.md), respectively. + ## Learn more -For more information on the configuration parameters of Meta, Storage, and Graph services, see [Configurations](../../5.configurations-and-logs/1.configurations/1.configurations.md). +For more information about the configuration parameters of Meta, Storage, and Graph services, see [Meta service configuration parameters](../../5.configurations-and-logs/1.configurations/2.meta-config.md), [Storage service configuration parameters](../../5.configurations-and-logs/1.configurations/4.storage-config.md), and [Graph service configuration parameters](../../5.configurations-and-logs/1.configurations/3.graph-config.md).