Questions tagged [master-slave]

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".

790 questions
0
votes
1 answer

How to do 'if else' judgement in SQLAlchemy RoutingSession.get_bind when using with_lockmode(master query)

I want to get a row from mysql database, then modiy some fields and commit. Before I commit, updating this row shoud be forbidden. so I use with_lockmode('update'). I use the following RoutingSession and I find it use Slave to do this query. But I…
Tallmad
  • 1,951
  • 4
  • 22
  • 29
0
votes
2 answers

MySQL master-slave after crash

Here's the scenario: I have one MySQL Master and 1 slave. master-slave replication is set and works perfectly. The slave machine crashes. The master machine is still up and running. Nothing changes in the master DB. I start the slave machine…
tamirko
  • 499
  • 5
  • 12
0
votes
1 answer

Jenkins Master/Slave Network I/O

We are using Jenkins on a single machine - and as the builds were getting slow - I looked around for options (installing it on newer hardware / adding slaves). As many forums were suggesting the master/slave architecture for scalability - I decided…
Sekhar
  • 5,614
  • 9
  • 38
  • 44
0
votes
1 answer

with shared storage, how is the waiting mechanism for slave broker?

With NFS as the shared storage, deployment of Master/slave is as following: when starting, Broker1 first grab the lock in NFS, and Broker2 shows log info as following: 2012-08-27 11:38:36,245 | INFO | Database /usr/local/wxcTest/mnt/amqDir/lock…
rmn190
  • 611
  • 1
  • 9
  • 19
0
votes
1 answer

how to get mysql server to stop starting as slave

I have a an ubuntu we server running mysql 5.1. Previously I had this server set up as a slave for replication. Now I and switching rolls for this server and I do not need it to be a slave anymore. The problem is that right now, every time the…
jeffery_the_wind
  • 17,048
  • 34
  • 98
  • 160
0
votes
2 answers

leader selection

I have x machines and I want to select 1 to do a particular job (primary machine). I have a database which is the only shared resource these machines have and there is no inter machine communication mechanism. In order to select a machine, I'm…
0
votes
1 answer

Read mysql table that grow continuously

I have a mysql table that already have 1 million records and will grow continuously. But this table is read heavy and slow performance. I want to speed it up. I know mysql sharding, partition and master/slave solution. But it unable to fullfil my…
Magic
  • 1,182
  • 2
  • 18
  • 28
0
votes
2 answers

Mysql replication is not working

I'm using mysql 5.22 version for master and slave replication. when I execute the show slave status command it's showing slave_io_state as connecting. how to solve this problem. Please help me the same. Regards, Yasar
0
votes
1 answer

SVN master-slave configuration on apache Testing

I have two svn (master-slave configuration) setup already on apache2.2. I need to test this setup in different scenarios such as network failure. Are there any important test cases I must consider. What points should I keep in mind while…
Chaturvedi Dewashish
  • 1,469
  • 2
  • 15
  • 39
0
votes
0 answers

Data Structure for implementing a registry of jobs, distributed to slave VM's

BACKGROUND INFORMATION: I have a distributed application based on Master/Slave pattern. The master periodically receives a JSON file which is of following format [{'key' : 'a_hashed_unique_key', 'partner_name' : 'name1'}] I aggregate and write all…
0
votes
1 answer

Receive error when trying to connect to mongo from iReport 4.5.1

I am trying to create a report using the mongo connector on iReport designer 4.5.1 (jasper). when i create the connection and test it, it says Test successful and gives me the database that i connected to in mongo. The issue happens when i try to…
user1486984
  • 287
  • 2
  • 6
  • 16
0
votes
1 answer

How to tell if reads are being redirect to MySQL slave on Rails3

[update] May be my use (or misuse) of the seamless_database_pool gem. I just setup a master/slave setup on Rails3 using seamless_database_pool. Does this mean that the reads are definitely NOT being redirected to the slave? How can I check this at…
user99168
  • 173
  • 2
  • 11
0
votes
1 answer

spring Ibatis Mysql ReplicationDriver

i had use the spring3.1 ibatis2.x and mysql5.5. then i wanna use the replication driver . my code is:
zt9788
  • 948
  • 4
  • 16
  • 31
0
votes
1 answer

"get_bind" method was called twice in sqlalchemy when using RoutingSession

I am using master/slave of sqlalchemy, by RoutingSession like engines = { 'master':create_engine("sqlite:///master.db"), 'other':create_engine("sqlite:///other.db"), 'slave1':create_engine("sqlite:///slave1.db"), …
Tallmad
  • 1,951
  • 4
  • 22
  • 29
0
votes
1 answer

ActiveMQ High Availability dynamic slave configurations

I am quite new to ActiveMQ. I am trying to have High Availability feature implemented. And all I noticed in ActiveMQ is that if I have to specify the failover url, I have to specify that in code like, String url =…
Aryan
  • 1,767
  • 2
  • 22
  • 39