-
Notifications
You must be signed in to change notification settings - Fork 0
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
Test implementation of Kubernetes with a Vitess cluster #1
Conversation
…tion JSON file and separation of the cluster secrets declaration
…untry sharding configuration file
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 commit contains a decent version of the prototype. The README.md file contains the list of all the commands that we need to run to get the cluster fully setup.
This version, so far, allow creating a Vitess cluster, create the user table, create a sequence for the auto incrementation of the _id
column in a namespace config
, creation of Lookup Vindex and region_vdx for region-based sharding, and finally: the sharding in 2 equal parts of the user namespace, with repartition based on the region attribute.
Merging this PR, the next research direction could be the implementation of other tables (such as article, etc...), and their keyspaces implementation in the cluster, the monitoring with prometheus, backup system, etc... Issues and PR will be created for the latter maters. |
Small prototype and test of a Kubernetes cluster implementation using a Vitess MySQL database cluster (https://vitess.io).
This prototype focuses on the user table implementation. The goal is to be able to shard the user table accordingly to the region attribute:
Beijing
will go in shard '-80'Hong Kong
will go in shard '80-'