Skip to content

Test implementation of Kubernetes with a Vitess cluster#1

Merged
frouioui merged 15 commits intomasterfrom
kubernetes
Nov 1, 2020
Merged

Test implementation of Kubernetes with a Vitess cluster#1
frouioui merged 15 commits intomasterfrom
kubernetes

Conversation

@frouioui
Copy link
Copy Markdown
Owner

@frouioui frouioui commented Oct 27, 2020

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-'

@frouioui frouioui self-assigned this Oct 27, 2020
@frouioui frouioui added the enhancement New feature or request label Oct 31, 2020
Copy link
Copy Markdown
Owner Author

@frouioui frouioui left a 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.

@frouioui
Copy link
Copy Markdown
Owner Author

frouioui commented Nov 1, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant