master-slave

Rails 3 and mysql master-slave replications

江枫思渺然 提交于 2019-12-04 14:55:06
Want to set up mysql master-slave replications in rails app. Are there plugins/db adapters available for Rails 3? Does the Masochism plugin work properly with rails 3? Try Octopus, which supports both rails3 and rails2.3: https://github.com/tchandy/octopus Masochism, DbCharmer, data_fabric et al will probably never be updated for Rails3 since so many ActiveRecord internals have drastically changed. data_fabric also now claims support for Rails 3.0.7 https://github.com/mperham/data_fabric and seamless_database_pool has been patched to support Rails 3 (but looks like it hasn't been updated in

What is the difference between binlog-do-db and replicate-do-db?

社会主义新天地 提交于 2019-12-04 12:31:37
I'm a beginner for MySQL Master-Slave . and I have read two tutorials . How to Setup MariaDB (Master-Slave) Replication Setup MariaDB Master-Slave Replication In first tutorial. It make me that [mysqld] Master section log-bin server_id=1 replicate-do-db=employees bind-address=192.168.0.18 [mysqld] SLAVE Section server_id=2 replicate-do-db=employees But in the second tutorial, it show me that [mysqld] Master server_id=1 log-basename=master log-bin binlog-format=row binlog-do-db=unixmen [mysqld] Slave server-id = 2 replicate-do-db=unixmen And why I should LOCK TABLES, and mysqldump sql, then

MongoDB ReplicaSet - PRIMARY role falls to SECONDARY when only PRIMARY is left

☆樱花仙子☆ 提交于 2019-12-03 20:20:56
问题 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 switches role to SECONDARY and accepts writes no more. That makes Replica Set worth less than single instance. I know & understand about PRIMARY election, but the PRIMARY role is fixed to a server (by using priority set to ,say, 10) and (for example

Jenkins Slave Permission Denied while copying slave.jar

你说的曾经没有我的故事 提交于 2019-12-03 14:58:30
I get a permissions denied but don't know why. From my jenkins master I was able to run the following command using ssh-rsa-key scp /var/cache/jenkins/war/WEB-INF/slave.jar jenkins@<my_slave_host>:/var/jenkins/ Note: I did manually create /var/jenkins/ on the my slave host when i saw it didn't exist and made it owned by the jenkins user. My master jenkins is configured to use the jenkins@mySlaveHost using .ssh keys. Any ideas why I'm getting a permissions denied? What is it trying to do? Here's the log from master jenkins after clicking [Lauch slave agent] button: [02/27/15 15:18:01] [SSH]

Jenkins Slave - How to add or update ENVIRONMENT variables

泪湿孤枕 提交于 2019-12-03 12:57:31
问题 Has anyone tried a way to add or update an ENVIRONMENT variable in a Jenkins slave's configuration using Jenkins Rest/API or any other way. Using Jenkins Swarm plugin, I created a slave (it uses JLNP to connect to the Jenkins master) but ENVIRONMENT variables (checkbox is not ticked) and there are no ENVIRONMENT variables created by Swarm client jar (by default). A user can manually add if reqd but I'm looking if there's a way to add / update ENV variables in a slave. I want to create

Restart Jenkins slave from master

末鹿安然 提交于 2019-12-03 11:12:23
I use jenkins master-slave configuration for capturing Performance metrics of a product. We have observed that jenkins-slave tends to accumulate memory and thus influences the Performance metrics being captured. To ensure consistency of the metrics being captured, we are thinking of restarting jenkins slave every day from the master, when there are no jobs running on the slave. Is this feasible? How can we accomplish it? Note: Using jenkins-slave as a service is not an option because we are having other security access issues with it. I know this answer is coming in a bit late : This is how I

Mysql error 1236 from master when reading data from binary log

一笑奈何 提交于 2019-12-03 07:59:38
I have 2 MySql with a master/slave configuration and the replication is failing. The MySql Master crashed and a new register in the mysql-bin.index was created. I deleted this new register because this file was not existed in the file system. Then the MySql Master restarted successfully. Now, I have the next error in the slave: mysql> show slave status \G *************************** 1. row *************************** Slave_IO_State: Master_Host: 10.64.253.99 Master_User: replication Master_Port: 3306 Connect_Retry: 60 Master_Log_File: mysql-bin.001050 Read_Master_Log_Pos: 54868051 Relay_Log

Jenkins Slave - How to add or update ENVIRONMENT variables

夙愿已清 提交于 2019-12-03 03:09:31
Has anyone tried a way to add or update an ENVIRONMENT variable in a Jenkins slave's configuration using Jenkins Rest/API or any other way. Using Jenkins Swarm plugin, I created a slave (it uses JLNP to connect to the Jenkins master) but ENVIRONMENT variables (checkbox is not ticked) and there are no ENVIRONMENT variables created by Swarm client jar (by default). A user can manually add if reqd but I'm looking if there's a way to add / update ENV variables in a slave. I want to create multiple swarm slaves (where each slave has different tools with different values i.e. slave01 JAVA_HOME=/path

Restart a mpi slave after checkpoint before failure on ARMv6

我是研究僧i 提交于 2019-12-02 07:12:04
问题 UPDATE I have an university project in which I should build up a cluster with RPis. Now we have a fully functional system with BLCR/MPICH on. BLCR works very well with normal processes linked with the lib. Demonstrations we have to show from our management web interface are: parallel execution of a job migration of processes across the nodes fault tolerance with MPI We are allowed to use the simplest computations. The first one we got easily, with MPI too. The second point we actually have

Restart a mpi slave after checkpoint before failure on ARMv6

懵懂的女人 提交于 2019-12-02 05:49:50
UPDATE I have an university project in which I should build up a cluster with RPis. Now we have a fully functional system with BLCR/MPICH on. BLCR works very well with normal processes linked with the lib. Demonstrations we have to show from our management web interface are: parallel execution of a job migration of processes across the nodes fault tolerance with MPI We are allowed to use the simplest computations. The first one we got easily, with MPI too. The second point we actually have only working with normal processes (without MPI). Regarding the third point I have less idea how to