Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/melinamoraiti/vlab-mysql-replicated
🐳 Implementation of a replicated MySQL setup, hosted in a virtual laboratory using docker environment.
https://github.com/melinamoraiti/vlab-mysql-replicated
cloud containerization docker docker-compose dockerfile mysql-replication
Last synced: 30 days ago
JSON representation
🐳 Implementation of a replicated MySQL setup, hosted in a virtual laboratory using docker environment.
- Host: GitHub
- URL: https://github.com/melinamoraiti/vlab-mysql-replicated
- Owner: MelinaMoraiti
- License: mit
- Created: 2024-05-17T15:53:39.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-06-25T10:08:29.000Z (8 months ago)
- Last Synced: 2024-11-11T16:29:54.488Z (3 months ago)
- Topics: cloud, containerization, docker, docker-compose, dockerfile, mysql-replication
- Language: Shell
- Homepage:
- Size: 35.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: docs/README.md
- License: LICENSE
Awesome Lists containing this project
README
# vLab-MySQL-Replication using Docker 🐳
## Description:
Implementation of a replicated MySQL setup, hosted in a virtual laboratory using docker environment. The lab includes network isolation, automated service execution (with shell scripts), and resource configuration for memory requirements.## Contents:
Our project contains the following:- A docker-compose.yaml file that describes the services we use. Specifically, we use 3 containers, a master which is our main hub and two slave containers that are used to replicate the masters data.
- A setup script that is responsible for the following:
1. Reading and exporting environment variables for the master and two slave MySQL instanses.
2. Building and starting the docker containers.
3. Starting MySQL on the master container.
4. Creating a replication user on the master container.
5. Starting MySQL on the slave containers.
6. Configuring the slave containers.- A stop script that stops the running containers
- A testing script that:
1. Accesses the master and runs mysql commands that create a table in a database, and inserts dummy data to it.
2. Exits the master and accesses the slaves.
3. Shows the tables in the database that have been replicated to the slaves.
4. Displays the replicated data in the tables.- A Makefile that runs the setup script, a docker ps command that shows that all containers are up and running, the testing script and then the stop script. It essentialy demonstrates how our project works.
- An Install.md file that shows how to run our project.