Skip to content

railwayapp-templates/mysql-cluster

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MySQL InnoDB Cluster with MySQL Router

This repo contains the resources to deploy a MySQL InnoDB Cluster to Railway.

To deploy your own MySQL cluster in Railway, just click the button below!

Deploy on Railway

About the MySQL Nodes

/nodes

The MySQL nodes deployed in the cluster are built from the official MySQL image in Docker.

The only customization to the image, is the inclusion of a my.cnf file which configures the nodes as necessary to create the cluster.

About the Init Service

/initService

The init service is used to execute the required commands against MySQL to create the cluster and join the members.

Upon completion, it deletes itself via the Railway public API.

Example Apps

/exampleApps

Included in this repo are example apps to demonstrate how to connect a client to the cluster via the MySQL router.

More Resources

There are many ways to configure a MySQL Cluster. You should become familiar with the MySQL resources:

Contributions

Pull requests are welcome. If you have any suggestions for how to improve this implementation of a MySQL InnoDB Cluster, please feel free to make the changes in a PR.