radondb-mysql-kubernetes icon indicating copy to clipboard operation
radondb-mysql-kubernetes copied to clipboard

Troubleshoot: Common way of operation and maintenance.

Open runkecheng opened this issue 3 years ago • 3 comments
trafficstars

General Question

Change the replicas

The following example changes replicas to 2.

kubectl patch mysql sample -p '{"spec":{"replicas":2}}' --type=merge

Close the cluster (change the replicas to 0) will not delete the PVC. The replicas can only be 0/2/3/5.

常用运维操作

更改节点数

以下示例将名为 sample 的集群节点数更改为2。

kubectl patch mysql sample -p '{"spec":{"replicas":2}}' --type=merge

关闭集群(更改节点数为0)不会删除pvc。 节点数只能为0/2/3/5。

runkecheng avatar Feb 17 '22 04:02 runkecheng

ACK.

andyli029 avatar Mar 12 '22 02:03 andyli029

@zhl003 @acekingke @runkecheng

andyli029 avatar Mar 12 '22 02:03 andyli029

@GuishengZhou

andyli029 avatar Mar 16 '22 07:03 andyli029