All Projects → gritt → docker-mysql-replication

gritt / docker-mysql-replication

Licence: GPL-3.0 license
master master & master slave replication in mysql

Programming Languages

shell
77523 projects

Projects that are alternatives of or similar to docker-mysql-replication

modbusone
A modbus library for Go, with unified client and server APIs. One implementation to rule them all.
Stars: ✭ 50 (+51.52%)
Mutual labels:  master, slave
horgh-replicator
Golang binlog replication from MySQL to MySQL, PostgreSQL, Vertica, Clickhouse
Stars: ✭ 46 (+39.39%)
Mutual labels:  replication, master-slave
Go Craq
CRAQ (Chain Replication with Apportioned Queries) in Go
Stars: ✭ 75 (+127.27%)
Mutual labels:  replication, databases
ansible-mongodb
📗 Ansible role to setup a MongoDB with replica set support
Stars: ✭ 23 (-30.3%)
Mutual labels:  databases
elec-master-demo
这是个demo代码,想使用请见 brotherbin/electing-master
Stars: ✭ 18 (-45.45%)
Mutual labels:  master-slave
django-clone
Controlled Django model instance replication.
Stars: ✭ 89 (+169.7%)
Mutual labels:  replication
django-concurrency-talk
🎭 Database Integrity in Django: Safely Handling Critical Data in Distributed Systems
Stars: ✭ 49 (+48.48%)
Mutual labels:  databases
python-pg-extras
Python PostgreSQL database performance insights. Locks, index usage, buffer cache hit ratios, vacuum stats and more.
Stars: ✭ 36 (+9.09%)
Mutual labels:  databases
lwpkt
Lightweight packet protocol structure for multi-device communication focused on RS-485
Stars: ✭ 71 (+115.15%)
Mutual labels:  master
backbeat
Zenko Backbeat is the core engine for asynchronous replication, optimized for queuing metadata updates and dispatching work to long-running tasks in the background.
Stars: ✭ 51 (+54.55%)
Mutual labels:  replication
sqlalchemy-utc
SQLAlchemy type to store aware datetime values
Stars: ✭ 87 (+163.64%)
Mutual labels:  databases
vrrm
rough code for running consensus
Stars: ✭ 18 (-45.45%)
Mutual labels:  replication
data-transfer-hub
Seamless User Interface for replicating data into AWS.
Stars: ✭ 102 (+209.09%)
Mutual labels:  replication
awesome-backend
🚀 A curated and opinionated list of resources (English & Russian) for Backend developers | Структурированный список ресурсов для изучения Backend разработки
Stars: ✭ 826 (+2403.03%)
Mutual labels:  databases
MPU-9250-Sensors-Data-Collect
MPU9250 (MPU6500 + AK8963) I2C Driver in Python for Raspbery PI
Stars: ✭ 51 (+54.55%)
Mutual labels:  slave
adr
Architecture Decision Record (ADR)
Stars: ✭ 21 (-36.36%)
Mutual labels:  databases
Recon
HA LDAP based key/value solution for projects configuration storing with multi master replication support
Stars: ✭ 12 (-63.64%)
Mutual labels:  replication
pglogrepl
PostgreSQL logical replication library for Go.
Stars: ✭ 150 (+354.55%)
Mutual labels:  replication
radiusd
Distributed Radius-server to do authentication+accounting.
Stars: ✭ 50 (+51.52%)
Mutual labels:  replication
laravel-sibs-payments
Laravel library to communicate with SIBS - Open Payment Platform. The library includes payments: MBWAY, VISA, MASTER, AMEX, VPAY, MAESTRO, VISADEBIT, VISAELECTRON.
Stars: ✭ 30 (-9.09%)
Mutual labels:  master

Docker MySQL Replication

A simple docker setup to add replication feature to MySQL.

You can choose between topologies by switching branches:

topology/master-master
topology/master-slave

Is expected that you have two physically different servers capable of running docker, each server will run a MySQL container, that’s why the 3306 port is exposed in the .env file, you can set either an external IP address (default port should be changed), or, an internal IP address if you have both servers in the same network.

Master to Slave

The most common topology, Master to Slave, perform ‘reads’ and ‘writes’ on the Master instance and can only perform ‘reads’ in the slave instance, when a entry is created / updated in the Master instance it reflects the changes to the Slave instance.

Master to Master

The Master to Master topology enables to perform ‘reads’ and ‘writes’ in both servers, created and updated entries are reflected in both ways, thus, extra care must be taken on the application side to avoid duplicated primary keys; if somehow both servers create the same key at the same time, when they sync with each other, it will fail (by configuration) and the servers will no longer be able to perform ‘writes’ until the issue is solved.

Open Source

Fell free to use, fork, open issues or pull request with improvements and bug fixes.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].