We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Kubernetes version: v1.26.0(KubeSphere:v3.4.1) Helm version: v3.12.0 RadonDB Operator version: 3.0.0 RadonDB MySQL version: 8.0.25
数据库集群节点从1节点扩到3节点后,创建的数据库消失 操作过程: 1、检查1节点集群状态
2、创建数据库
3、将集群节点扩容到3个 [root@k8s-master001 ~]# kubectl get all -n mysql-cluster NAME READY STATUS RESTARTS AGE pod/radondb-operator-mysql-operator-846657db5-xsb6v 2/2 Running 0 45h pod/sample-mysql-0 3/3 Running 0 87s pod/sample-mysql-1 3/3 Running 0 3m43s pod/sample-mysql-2 3/3 Running 0 2m40s
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE service/mysql-operator-metrics ClusterIP 10.233.35.195 8443/TCP 45h service/radondb-mysql-webhook ClusterIP 10.233.60.113 443/TCP 45h service/sample-follower ClusterIP 10.233.24.81 3306/TCP,8082/TCP 3m44s service/sample-leader ClusterIP 10.233.51.178 3306/TCP,8082/TCP 44h service/sample-mysql ClusterIP None 3306/TCP,8082/TCP 44h
NAME READY UP-TO-DATE AVAILABLE AGE deployment.apps/radondb-operator-mysql-operator 1/1 1 1 45h
NAME DESIRED CURRENT READY AGE replicaset.apps/radondb-operator-mysql-operator-846657db5 1 1 1 45h
NAME READY AGE statefulset.apps/sample-mysql 3/3 44h [root@k8s-master001 ~]# kubectl describe pod/sample-mysql-0 -n mysql-cluster | grep role role=FOLLOWER [root@k8s-master001 ~]# kubectl describe pod/sample-mysql-1 -n mysql-cluster | grep role role=LEADER [root@k8s-master001 ~]# kubectl describe pod/sample-mysql-2 -n mysql-cluster | grep role role=FOLLOWER [root@k8s-master001 ~]# kubectl describe pod/sample-mysql-2 -n mysql-cluster | grep healthy= healthy=yes [root@k8s-master001 ~]# kubectl describe pod/sample-mysql-1 -n mysql-cluster | grep healthy= healthy=yes [root@k8s-master001 ~]# kubectl describe pod/sample-mysql-0 -n mysql-cluster | grep healthy= healthy=yes
4、查看数据库
可以看到数据库hx_db已经没有了
The text was updated successfully, but these errors were encountered:
这个东西不稳定,我们测试库3节点,扩到5节点,新建的两个节点主从同步一直报错,然后自动重新选主,把新建的选成主了,又把旧的主节点重启变成从节点了。这东西只适合初期搭建的时候用,后期扩容用不了
Sorry, something went wrong.
No branches or pull requests
Kubernetes version: v1.26.0(KubeSphere:v3.4.1)
Helm version: v3.12.0
RadonDB Operator version: 3.0.0
RadonDB MySQL version: 8.0.25
数据库集群节点从1节点扩到3节点后,创建的数据库消失
操作过程:
1、检查1节点集群状态
2、创建数据库
3、将集群节点扩容到3个
[root@k8s-master001 ~]# kubectl get all -n mysql-cluster
NAME READY STATUS RESTARTS AGE
pod/radondb-operator-mysql-operator-846657db5-xsb6v 2/2 Running 0 45h
pod/sample-mysql-0 3/3 Running 0 87s
pod/sample-mysql-1 3/3 Running 0 3m43s
pod/sample-mysql-2 3/3 Running 0 2m40s
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
service/mysql-operator-metrics ClusterIP 10.233.35.195 8443/TCP 45h
service/radondb-mysql-webhook ClusterIP 10.233.60.113 443/TCP 45h
service/sample-follower ClusterIP 10.233.24.81 3306/TCP,8082/TCP 3m44s
service/sample-leader ClusterIP 10.233.51.178 3306/TCP,8082/TCP 44h
service/sample-mysql ClusterIP None 3306/TCP,8082/TCP 44h
NAME READY UP-TO-DATE AVAILABLE AGE
deployment.apps/radondb-operator-mysql-operator 1/1 1 1 45h
NAME DESIRED CURRENT READY AGE
replicaset.apps/radondb-operator-mysql-operator-846657db5 1 1 1 45h
NAME READY AGE
statefulset.apps/sample-mysql 3/3 44h
[root@k8s-master001 ~]# kubectl describe pod/sample-mysql-0 -n mysql-cluster | grep role
role=FOLLOWER
[root@k8s-master001 ~]# kubectl describe pod/sample-mysql-1 -n mysql-cluster | grep role
role=LEADER
[root@k8s-master001 ~]# kubectl describe pod/sample-mysql-2 -n mysql-cluster | grep role
role=FOLLOWER
[root@k8s-master001 ~]# kubectl describe pod/sample-mysql-2 -n mysql-cluster | grep healthy=
healthy=yes
[root@k8s-master001 ~]# kubectl describe pod/sample-mysql-1 -n mysql-cluster | grep healthy=
healthy=yes
[root@k8s-master001 ~]# kubectl describe pod/sample-mysql-0 -n mysql-cluster | grep healthy=
healthy=yes
4、查看数据库
可以看到数据库hx_db已经没有了
The text was updated successfully, but these errors were encountered: