Open ahjing99 opened 1 year ago
seems something went wrong in the DB container:
2023-11-03 04:12:17,738 - GalaxyEngine - INFO - () start command: /opt/galaxy_engine/bin/mysqld_safe --defaults-file=/data/mysql/conf/my.cnf --loose-pod-name=polardbx-tjxuol-gms-1
wait mysql ready
ERROR 2003 (HY000): Can't connect to MySQL server on '127.1' (111)
wait mysql ready
ERROR 2003 (HY000): Can't connect to MySQL server on '127.1' (111)
wait mysql ready
ERROR 2003 (HY000): Can't connect to MySQL server on '127.1' (111)
wait mysql ready
ERROR 2003 (HY000): Can't connect to MySQL server on '127.1' (111)
wait mysql ready
ERROR 2003 (HY000): Can't connect to MySQL server on '127.1' (111)
wait mysql ready
ERROR 2003 (HY000): Can't connect to MySQL server on '127.1' (111)
2023-11-03T04:12:23.302469Z mysqld_safe Logging to '/data/mysql/log/alert.log'.
2023-11-03T04:12:23.414770Z mysqld_safe Starting mysqld daemon with databases from /data/mysql/data
wait mysql ready
ERROR 2003 (HY000): Can't connect to MySQL server on '127.1' (111)
wait mysql ready
ERROR 2003 (HY000): Can't connect to MySQL server on '127.1' (111)
wait mysql ready
ERROR 2003 (HY000): Can't connect to MySQL server on '127.1' (111)
wait mysql ready
polardbx gms&dn component depend on immutable IP address currently, which means the pods can't be rescheduled yet. need member reconfiguration configured to support restart, will add it in 0.8 or later.
➜ ~ kbcli version Kubernetes: v1.27.3-gke.100 KubeBlocks: 0.7.0-beta.18 kbcli: 0.7.0-beta.18
Create PolarDB-X
"kubeblocks-kbcli" already exists with the same configuration, skipping
Hang tight while we grab the latest from your chart repositories... ...Successfully got an update from the "kubeblocks-kbcli" chart repository Update Complete. ⎈Happy Helming!⎈
Release "polardbx" has been upgraded. Happy Helming! NAME: polardbx LAST DEPLOYED: Fri Nov 3 11:57:54 2023 NAMESPACE: default STATUS: deployed REVISION: 4 TEST SUITE: None NOTES: Thanks for installing PolarDB-X using KubeBlocks!
Cluster polardbx-tjxuol created
➜ ~ kbcli cluster describe polardbx-tjxuol Name: polardbx-tjxuol Created Time: Nov 03,2023 11:58 UTC+0800 NAMESPACE CLUSTER-DEFINITION VERSION STATUS TERMINATION-POLICY default polardbx polardbx-v1.4.1 Running WipeOut
Endpoints: COMPONENT MODE INTERNAL EXTERNAL gms ReadWrite polardbx-tjxuol-gms.default.svc.cluster.local:3306
polardbx-tjxuol-gms.default.svc.cluster.local:9104
dn ReadWrite polardbx-tjxuol-dn.default.svc.cluster.local:3306
cn ReadWrite polardbx-tjxuol-cn.default.svc.cluster.local:3306
polardbx-tjxuol-cn.default.svc.cluster.local:9104
cdc ReadWrite polardbx-tjxuol-cdc.default.svc.cluster.local:3306
polardbx-tjxuol-cdc.default.svc.cluster.local:9104
Topology: COMPONENT INSTANCE ROLE STATUS AZ NODE CREATED-TIME cdc polardbx-tjxuol-cdc-0 Running us-central1-c gke-yijing-default-pool-3e14ea35-klwc/10.128.0.26 Nov 03,2023 11:58 UTC+0800
cn polardbx-tjxuol-cn-0 Running us-central1-c gke-yijing-default-pool-3e14ea35-klwc/10.128.0.26 Nov 03,2023 11:58 UTC+0800
dn polardbx-tjxuol-dn-0 follower Running us-central1-c gke-yijing-default-pool-3e14ea35-hqtr/10.128.0.30 Nov 03,2023 11:58 UTC+0800
dn polardbx-tjxuol-dn-1 leader Running us-central1-c gke-yijing-default-pool-3e14ea35-hxpl/10.128.0.28 Nov 03,2023 11:58 UTC+0800
dn polardbx-tjxuol-dn-2 follower Running us-central1-c gke-yijing-default-pool-3e14ea35-klwc/10.128.0.26 Nov 03,2023 11:58 UTC+0800
gms polardbx-tjxuol-gms-0 leader Running us-central1-c gke-yijing-default-pool-3e14ea35-wg54/10.128.0.35 Nov 03,2023 11:58 UTC+0800
gms polardbx-tjxuol-gms-1 follower Running us-central1-c gke-yijing-default-pool-3e14ea35-wg54/10.128.0.35 Nov 03,2023 11:58 UTC+0800
gms polardbx-tjxuol-gms-2 follower Running us-central1-c gke-yijing-default-pool-3e14ea35-klwc/10.128.0.26 Nov 03,2023 11:58 UTC+0800
Resources Allocation: COMPONENT DEDICATED CPU(REQUEST/LIMIT) MEMORY(REQUEST/LIMIT) STORAGE-SIZE STORAGE-CLASS gms false 500m / 500m 1Gi / 1Gi data:5Gi kb-default-sc dn false 1 / 1 1Gi / 1Gi data:20Gi kb-default-sc cn false 1 / 1 1Gi / 1Gi data:20Gi kb-default-sc cdc false 1 / 1 1Gi / 1Gi data:20Gi kb-default-sc
Images: COMPONENT TYPE IMAGE gms gms polardbx/polardbx-engine-2.0:latest dn dn polardbx/polardbx-engine-2.0:latest cn cn polardbx/polardbx-sql:latest cdc cdc polardbx/polardbx-cdc:latest
Show cluster events: kbcli cluster list-events -n default polardbx-tjxuol
➜ ~ kbcli cluster restart polardbx-tjxuol Please type the name again(separate with white space when more than one): polardbx-tjxuol OpsRequest polardbx-tjxuol-restart-tqb2c created successfully, you can view the progress: kbcli cluster describe-ops polardbx-tjxuol-restart-tqb2c -n default
➜ ~ kbcli cluster describe-ops polardbx-tjxuol-restart-tqb2c -n default Spec: Name: polardbx-tjxuol-restart-tqb2c NameSpace: default Cluster: polardbx-tjxuol Type: Restart
Command: kbcli cluster restart polardbx-tjxuol --components=gms,dn,cn,cdc --namespace=default
Status: Start Time: Nov 03,2023 12:10 UTC+0800 Duration: 28m Status: Running Progress: 2/8 OBJECT-KEY STATUS DURATION MESSAGE Pod/polardbx-tjxuol-cdc-0 Succeed 3m21s Successfully restart: Pod/polardbx-tjxuol-cdc-0 in Component: cdc Pod/polardbx-tjxuol-cn-0 Succeed 3m4s Successfully restart: Pod/polardbx-tjxuol-cn-0 in Component: cn Pod/polardbx-tjxuol-dn-1 Pending
Pod/polardbx-tjxuol-dn-2 Pending
Pod/polardbx-tjxuol-dn-0 Processing 28m Start to restart: Pod/polardbx-tjxuol-dn-0 in Component: dn
Pod/polardbx-tjxuol-gms-0 Pending
Pod/polardbx-tjxuol-gms-2 Pending
Pod/polardbx-tjxuol-gms-1 Processing 28m Start to restart: Pod/polardbx-tjxuol-gms-1 in Component: gms
Conditions: LAST-TRANSITION-TIME TYPE REASON STATUS MESSAGE Nov 03,2023 12:10 UTC+0800 Progressing OpsRequestProgressingStarted True Start to process the OpsRequest: polardbx-tjxuol-restart-tqb2c in Cluster: polardbx-tjxuol Nov 03,2023 12:10 UTC+0800 Validated ValidateOpsRequestPassed True OpsRequest: polardbx-tjxuol-restart-tqb2c is validated Nov 03,2023 12:10 UTC+0800 Restarting RestartStarted True Start to restart database in Cluster: polardbx-tjxuol
Warning Events:
Normal SuccessfulCreate 41m statefulset-controller create Claim data-polardbx-tjxuol-dn-0 Pod polardbx-tjxuol-dn-0 in StatefulSet polardbx-tjxuol-dn success Normal SuccessfulCreate 41m statefulset-controller create Claim data-polardbx-tjxuol-dn-1 Pod polardbx-tjxuol-dn-1 in StatefulSet polardbx-tjxuol-dn success Normal SuccessfulCreate 41m statefulset-controller create Pod polardbx-tjxuol-dn-1 in StatefulSet polardbx-tjxuol-dn successful Normal SuccessfulCreate 41m statefulset-controller create Claim data-polardbx-tjxuol-dn-2 Pod polardbx-tjxuol-dn-2 in StatefulSet polardbx-tjxuol-dn success Normal SuccessfulCreate 41m statefulset-controller create Pod polardbx-tjxuol-dn-2 in StatefulSet polardbx-tjxuol-dn successful Normal SuccessfulCreate 28m (x2 over 41m) statefulset-controller create Pod polardbx-tjxuol-dn-0 in StatefulSet polardbx-tjxuol-dn successful Warning RecreatingFailedPod 28m (x8 over 28m) statefulset-controller StatefulSet default/polardbx-tjxuol-dn is recreating failed Pod polardbx-tjxuol-dn-0 Normal SuccessfulDelete 28m (x8 over 28m) statefulset-controller delete Pod polardbx-tjxuol-dn-0 in StatefulSet polardbx-tjxuol-dn successful ➜ ~