replication

MySQL database replication

偶尔善良 提交于 2019-12-21 03:02:09
问题 This is the scenario: I have a MySQL server with a database, let's call it consolidateddb . This database a consolidation of several tables from various databases I have another MySQL server, with the original databases, these databases are production databases and are updates daily. The company wants to copy each update/insert/delete on each table in the production databases to the corresponding tables in consolidateddb . Would replication accomplish that? I know that replication is done on

Advice Please: SQL Server Identity vs Unique Identifier keys when using Entity Framework

那年仲夏 提交于 2019-12-21 02:47:31
问题 I'm in the process of designing a fairly complex system. One of our primary concerns is supporting SQL Server peer-to-peer replication. The idea is to support several geographically separated nodes. A secondary concern has been using a modern ORM in the middle tier. Our first choice has always been Entity Framework, mainly because the developers like to work with it. (They love the LiNQ support.) So here's the problem: With peer-to-peer replication in mind, I settled on using uniqueidentifier

Mysql error 1236 from master when reading data from binary log

ぐ巨炮叔叔 提交于 2019-12-21 01:11:42
问题 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

How do I check SQL replication status via T-SQL?

我的梦境 提交于 2019-12-20 12:03:59
问题 I want to be able to check the status of a publication and subscription in SQL Server 2008 T-SQL. I want to be able to determine if its okay, when was the last successful, sync, etc.. Is this possible? 回答1: I know this is a little late.... SELECT (CASE WHEN mdh.runstatus = '1' THEN 'Start - '+cast(mdh.runstatus as varchar) WHEN mdh.runstatus = '2' THEN 'Succeed - '+cast(mdh.runstatus as varchar) WHEN mdh.runstatus = '3' THEN 'InProgress - '+cast(mdh.runstatus as varchar) WHEN mdh.runstatus =

How do I configure Solr replication with multiple cores

此生再无相见时 提交于 2019-12-20 09:44:48
问题 I have Solr running with multiple cores. Because of the heavy load, I want to set up a slave containing the exact same indexes. The documentation http://wiki.apache.org/solr/SolrReplication states "Add the replication request handler to solrconfig.xml for each core", but I only have one solrconfig.xml. My configuration: Config: /data/solr/web/solr/conf/config files Data: /data/solr/data/solr/core data dirs Is it really necessary to copy the solrconfig.xml for each core? And where should I put

Is it mandatory parameter recover_target_timeline='latest' in switchover and switchback in PostgreSQL 9.4.1?

吃可爱长大的小学妹 提交于 2019-12-20 06:14:25
问题 I have followed below steps for switchover and switchback. Step 1:- Disconnect application services from 10.x.x.10 and do the following @Master(10.x.x.10) pg_ctl -D /DATA_VEC/pgdata stop --mode=fast @DR(20.x.x.20) promote DR as read write mode Step 2:- Start master as DR from new primary @Master(10.x.x.10) create recovery.conf standby_mode = 'on' primary_conninfo = 'user= password= host=20.x.x.20 port=9999 trigger_file = '/tmp/node1' restore_command = 'cp /DATA_VEC/restore/%f "%p"' pg_ctl -D

Automatically resolve primary key merge conflict

↘锁芯ラ 提交于 2019-12-20 02:52:45
问题 could you please suggest me the way I could automatically resolve primary key conflicts during a merge between Publisher and Subscriber. It seems Sql Server doesn't do it out of the box :(. Conflict viewer shows me next message: A row insert at '_publisher_server_' could not be propagated to '_subscriber_server_'. This failure can be caused by a constraint violation. Violation of PRIMARY KEY constraint 'PK_ PartPlan _FD9D7F927172C0B5'. Cannot insert duplicate key in object '_table_name_'.

Redis replication config

廉价感情. 提交于 2019-12-19 11:23:38
问题 I have a redis master setup with 2 slaves and a sentinal on each. If the master goes down for say 2 seconds (+sdown) and comes back up (-sdown), it reads the last snapshot, and the slaves resync with the master. The problem with this is that there may have been many writes between the last save and the +sdown. It seems like if the master goes from +sdown to -sdown and never +odown (where a failover is initiated), it should be able to sync FROM a slave. My reasoning is that the replication

SOLR replication keeps downloading entire index from master

安稳与你 提交于 2019-12-19 09:42:23
问题 I have 2 slaves replicating from a master that has a 17GB index. I synced both slaves to this, AFTER which I set the poll interval to 60 seconds. One of the slaves tries to download the entire 17GB index even if only a tiny portion of it has changed. The other does not do this - it is able to get the latest index without this brute force sync. The redundant downloading causes me to exceed my disk space quota because it takes more than 60 seconds to download 17GB and solr kicks off a 2nd sync

Effects of increasing the replication factor on the performance of cassandra

∥☆過路亽.° 提交于 2019-12-19 09:38:19
问题 I'm carrying some experiments on the performance of Cassandra. I have a single cluster of 8 nodes. While increasing the replication factor from 1 to 8, i noticed that the overall throughput decreases. I'm using consistency level ONE for both reads and writes. I found that these are not the expected results. Anyone explain why this is happening? 回答1: This should be completely expected. Consistency level one will keep the performance of your reads as basically the same (if not improved since