Comments (2)
Hey there @starizard! Thanks for bringing this up
We have thought about this already:
Although possible, there are a couple of things that need to be covered for this:
- Per node
Service
, allowing to connect to each of the nodes individually from the outside of the cluster (LoadBalancer
) - We will need to extend
spec.galera
to specify:- Extra peers FDQN to connect to. As you said, this peers will be included in
wsrep_cluster_address
- How to authenticate connections with them
- How to trust TLS connections with them
- Extra peers FDQN to connect to. As you said, this peers will be included in
This new topology has implications we haven't faced before, so we will need to further investigate these points:
- An operator is only able to manage
Pods
within the cluster it runs, how do we manage thePods
in an external cluster? Another operator running in the external cluster? If that was the case, we need to take into account the following considerations:- There should be only one Galera cluster running across 2 Kubernetes clusters. Creating 2 different Galera clusters will mean that we have a split brain
- Cluster recovery process gets tricky, we cannot control external
Pods
and therefore we can't get the sequence number on them to know which is the most advanced node and therefore where to bootstrap the new cluster
To overcome the previous points, I can think of:
- Not allowing writes on the external cluster, this way, we know for sure that the most advanced node will be in the current cluster and we can perform the cluster recovery. However, we still need to restart the
Pods
in the external cluster when that happens, this cross-cluster coordination will be tricky if not imposible. - Have 2 different Galera clusters in 2 different Kubernetes clusters and setup replication between them. Writes can only happen on one of the cluster and the initial replication setup can be done by one of the operators, since it is done via cross-cluster SQL statements
Taking into account all my previous points, the latter option seems to be the most reasonable one TBH, and it seems to be a common pattern we can automate:
Sorry if this was too long, happy to hear your thoughts!
from mariadb-operator.
I would love this to be possible to include servers outside of kubernetes aswell
from mariadb-operator.
Related Issues (20)
- [Bug] manifests yaml was deleted after automatic upgrade
- Support for successfuljobshistorylimit and failedjobshistorylimit in backups.k8s.mariadb.com
- [Bug]
- [Feature] Protect ressources to prevent accidential deletion/data loss HOT 1
- [Feature] Backup encryption
- [Feature] UBI9 support for all system Docker images HOT 1
- [Feature] IBM Power Docker images
- [Bug] Galera Init job keeps failing HOT 2
- [Bug] MariaDB-10.4 compatibility due to REPLICATION REPLICA being a 10.5+ grant HOT 1
- [Feature] Manage initial user with `User` CR
- [Feature] Manage initial database and user with `Database` with and `User` CRs
- [Feature] Improve `Connection` reconciliation. Password rotation
- [Feature] Improve `MaxScale` reconciliation. Password rotation
- [Feature] Improve `MariaDB` reconciliation. Password rotation
- [Bug] Galera with maxScale is failing to recover
- [Bug] Galera cluster failed to recovery HOT 1
- Issue: `mariadb-operator-(webhook)` stuck in starting workers, watching certificates HOT 1
- [Bug] [0.29.0] GRANT - sql error HOT 1
- [Bug] Helm repo change breaks umbrella charts HOT 7
- [Feature] Create users with specific TLS requiring
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mariadb-operator.