-
Notifications
You must be signed in to change notification settings - Fork 7
feat: Update MariaDB Operator and enable HA using Galera #1188
New issue
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
Conversation
9a4e032
to
ed5112c
Compare
280c9e1
to
bc0c5ae
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok, now that the storageClass has been created, can you please test if it works correctly?
It will probably require the instances to be recreated one at the time.
It currently uses what was the default before:
❯ kubectl get pvc -l app.kubernetes.io/instance=mariadb
NAME STATUS VOLUME CAPACITY ACCESS MODES STORAGECLASS VOLUMEATTRIBUTESCLASS AGE
galera-mariadb-0 Bound pvc-15a91885-1428-4950-ba3e-58c8d8b5bf77 100Mi RWO ceph-block-replicated <unset> 3d10h
galera-mariadb-1 Bound pvc-fcf1a471-5635-438c-962f-e150f667af48 100Mi RWO ceph-block-replicated <unset> 3d10h
galera-mariadb-2 Bound pvc-78fb665f-540b-4e25-b639-1b8f83999ab7 100Mi RWO ceph-block-replicated <unset> 3d10h
c13481b
to
86ae447
Compare
38788b5
to
947e626
Compare
0336b1d
to
d999f7d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What happens when this gets deployed in staging/production?
Are there any manual steps needed for data migration?
- ReadWriteOnce | ||
resources: | ||
requests: | ||
storage: 10Gi |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PVC is used only to store text configuration files - 10Gi is little bit too much - can we make it 1Gi
please?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sure !!
1. Check all pods are running
kubectl get pods -n openstack | grep mariadb
# Should show 3 pods in Running state2. Check storage usage in all 3 replicas
mariadb-0
,mariadb-1
andmariadb-2
kubectl exec -n openstack mariadb-0 -- df -h
3. Check persistence volumes supporting it
kubectl get pvc -l app.kubernetes.io/instance=mariadb -n openstack
4. Check Galera cluster status
kubectl exec -n openstack mariadb-0 -- mariadb -u root -p -e "SHOW STATUS LIKE 'wsrep_cluster_size';"
Verify all 3 nodes are in sync
kubectl exec -n openstack mariadb-0 -- mariadb -u root -p -e "SELECT VARIABLE_VALUE FROM information_schema.GLOBAL_STATUS WHERE VARIABLE_NAME='wsrep_ready';"
5. Check active DB connections
kubectl exec -n openstack mariadb-0 -- mariadb -u root -p -e "SHOW PROCESSLIST;"
6. finally test with few OpenStack cli commands
openstack image list
openstack network list