A master/slave protocol involves one dominant participant (the master) controlling communication with one or more other participants (slaves). Prefer to tag the specific protocol, such as "i2c". For master/slave database replication, prefer "replication".
Questions tagged [master-slave]
790 questions
6
votes
3 answers
How to start Camel routes on slave ActiveMQ only when slave becomes active in failover?
I have a durable consumer to a remote JMS queue in embedded Camel routing. Is it possible to have this kind of routing with master-slave configuration? Now it seems that the Camel routes are started and activated already when slave ActiveMQ is…

Tommi L.
- 360
- 1
- 6
- 14
6
votes
1 answer
Rails Octopus Gem - Master-Slave Replication connection behaviour when slave is down
I'm testing this great gem Octopus with Rails 4.0.2 in development.
I created a Slave db and configured octopus as follows (config>shards.yml):
octopus:
environments:
- development
replicated: true
fully_replicated: true
…

Mauricio Moraes
- 7,255
- 5
- 39
- 59
6
votes
1 answer
Sending writes to the mysql master and reads to slave in slick
With Slick and a Master/Slave set up with MySQL, how do I ensure writes (INSERT, UPDATE, etc) are sent to the master and reads (SELECT) are send to the slaves?

theon
- 14,170
- 5
- 51
- 74
6
votes
2 answers
Implement master-slave
Running on Ubuntu. Program is in C++.
I have 2 process running on different hosts , when one is master and one is slave (don’t have any priority between them, just that only one handle request.).
Only one process can be a master and handle…

Avihai Marchiano
- 3,837
- 3
- 38
- 55
6
votes
2 answers
Run "show slave status" with PHP PDO
I am trying to get the slave status of my MySQL server using PHP's PDO implementation. Running fetchAll() returns an empty array.
// DB IP, name, username, and password are fake here. I can connect.
$db = new…

Andrew Ellis
- 1,175
- 1
- 12
- 29
5
votes
2 answers
Jenkins jobs going missing
I have a heavily parallelized build across 45 slaves (one master that just handles launches).
The problem I am running into is that about 3% of the jobs disappear.
The project setup is a "master" job that then launches (via the parameterized job…

Clark Wright
- 741
- 1
- 6
- 13
5
votes
1 answer
Handle Leader instance with Spring Boot and Consul
I'm currently working on a spring boot application that uses Consul as a service discovery.
Our web API has multiple instances on different Docker containers and is registered successfully with Consul.
Our main issue now is to elect a leader among…

Barney Stinson
- 59
- 3
5
votes
1 answer
Does master-slave replication ensure that writes show up in later reads?
Here's a very basic question about replication.
If you set up your database with master-slave replication where writes go to the master and reads go to the slaves, doesn't that mean that newly-written data won't necessarily show up in a read until…

gesgsklw
- 741
- 1
- 7
- 13
5
votes
3 answers
Distribute Solr Using Replication without Using SolrCloud
I want to use Solr replication without using SolrCloud.
I have three Solr servers, one is master and others are slave.
How to dispatch the search query on the Solr server which isn't busy?
What tools do and how to lead?

htaghizadeh
- 571
- 6
- 20
5
votes
2 answers
MySQL not starting up after added log-bin - Master Replication
I trying to set up master replication server. When I try to start/restart the server after added log-bin directory as following in my.cnf,
log-bin = /var/log/mysql/mysql-bin.log
the server is not starting up.
MySQL status
mysqld.service - MySQL…

gjman2
- 912
- 17
- 28
5
votes
3 answers
how to undo CHANGE MASTER TO
We have a slave that follow the master. In near future, the master will shut down and the current slave will become new master.
After becoming master, how can I undo CHANGE MASTER TO MASTER_HOST='master'... SQL statement that previously executed on…

IAmAliYousefi
- 1,132
- 3
- 21
- 33
5
votes
1 answer
Jenkins always chooses a slave by alphabetical order
I have 3 Jenkins slaves (=nodes) with the same label (let's call them S1,S2,S3.) When I run a job that uses this label and has 3 concurrent builds, all slaves are used. When I have only one build, Jenkins always chooses the same slave (say S1),…

Amir Katz
- 643
- 2
- 10
- 23
5
votes
3 answers
HAProxy for MySQL Master-Slave Replication
We are having MySQL MASTER-SLAVE Replication setup and everything is working fine.
Currently all load (reads/writes) are going to MASTER server. Our application is having 99% reads and 1% writes.
We thought of distributing load (only reads) to both…

Phanindra
- 221
- 1
- 3
- 10
5
votes
1 answer
SPI Slave setup on STM32F4 board
I am trying to communicate between two STM32F4 discovery boards via SPI in Master & Slave configuration. I already have the code for the master but I am a bit confused on the changes I need to make on the SPI initialisation for the slave.
I would…

user2253922
- 125
- 1
- 4
- 10
5
votes
4 answers
MongoDB ReplicaSet - PRIMARY role falls to SECONDARY when only PRIMARY is left
I am investigating using MongoDB ReplicaSet for high availability.
But just discovered that in ReplicaSet with 3 nodes, if PRIMARY mongod is the only one left (that is 2 other mongod instances died or were shut down), then after several seconds it…

Paul Verest
- 60,022
- 51
- 208
- 332