replication

MySQL database replication

ⅰ亾dé卋堺 提交于 2019-12-03 09:20:08
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 a databas to database, but not on tables that belong to different databases to one target database. I

How do I install and setup the RavenDb index replication

旧城冷巷雨未停 提交于 2019-12-03 09:06:06
rI've looked at the questions and indeed the RavenDb docs. There's a little at RavenDb Index Replication Docs but there doesn't seem any guidance on how/when/where to create the IndexReplicationDestination Our use case is very simple (it's a spike). We currently create new objects (Cows) and store them in Raven. We have a couple of queries created dynamically using LINQ (e.g. from c in session.Query<Cows> select c ). Now I can't see where I should define the index to replicate. Any ideas? I've got hold of the bundle and added it to the server directory (I'm assuming it should be in RavenDB.1.0

How to check the replication delay in PostgreSQL?

孤街浪徒 提交于 2019-12-03 08:29:40
问题 I would like to measure time between insert data into master-table and slave-table using streaming replication in PostgreSQL 9.3. For this I create table test_time with 2 fields id(serial), t(text). After that added a trigger: cur_time:=to_char(current_timestamp, 'HH12:MI:SS:MS:US'); update test_time set t=cur_time where id=new.id; But the time is the same in both tables. How can I measure delay time 回答1: You can get the delay in bytes from the master side quite easily using pg_xlog_location

Database Replication or Mirroring?

点点圈 提交于 2019-12-03 08:06:16
What is the difference between Replication and Mirroring in SQL server 2005? In short, mirroring allows you to have a second server be a "hot" stand-by copy of the main server, ready to take over any moment the main server fails. So mirroring offers fail-over and reliability. Replication, on the other hand, allows two or more servers to stay "in sync" - that means the secondary servers can answer queries and (depending on setup) actually change data (it will be merged in the sync). You can also use it for local caching, load balancing, etc. Remus Rusanu Mirroring is a feature that creates a

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

CouchDB filtered replication - remove a document

Deadly 提交于 2019-12-03 07:37:08
I am trying to setup filtered replication between a master and user database. Documents in the master contain a list of user groups that have permission to the document. { _id: 'one', groups: ['a', 'b'] } { _id: 'two', groups: ['c', 'd'] } I created a filtered view of the database that only allows user with the group to get a copy of the replicated document (hard coding the group of 'a' in this example) { filters = { users = function(doc, req){ return doc.groups.indexOf(req.query.group) != -1; } } } I then create a replication document in the _replicator database { source: "master", target:

Database Mirroring / Postgres Streaming Replication

巧了我就是萌 提交于 2019-12-03 07:01:17
问题 I am not a DBA; I'm the primary developer of an enterprise database based application. I'm currently specing out some new machines to upgrade our existing enterprise database. Currently we're running Postgres 8.4 with a database at our DR site that receives updates at intervals via some custom rsync work a former employee performed. One of the major issues we're trying to tackle is latency between two global offices. We have staff in NY and staff in London. Currently, the London staffers

Endless recovering state of secondary

这一生的挚爱 提交于 2019-12-03 06:59:59
I build a replication set with one primary, one secondary and one arbiter on MongoDB 3.0.2. The primary and arbiter are on the same host and the secondary is on another host. With the growing of write overload, the secondary can't follow the primary and step into the state of recovering. The primary can connect to the secondary as I can log to the secondary server by Mongo shell on the host of primary. I stop all the operations and watch the secondary's state with the command rs.status() and type the command rs.syncFrom("primary's ip:port") on secondary. Then the result of the rs.status()

Tools for Building an OCA (Occasionally Connected Application)

情到浓时终转凉″ 提交于 2019-12-03 06:42:49
I will be building an in-house, Occasionally Connected App (OCA). What technologies would you suggest I employ. Here are my parameters: .NET Shop( 3.5sp1 ) C# for code behind ( winform,wpf,silverlight ) SQL Server Backend ( 2005 or possibly 2008 pending approval ) Solo Developer Solo SQL Administrator Low Tech end users Low bandwidth to 5 Branch offices This is a LOB app but not a POS. Majority of users have laptops that they take to Member's Home The Data for this App is stored in 5 separate Databases, though in one SQL instance. I am looking for specific recommendations on which path to

How to track which data block is in which data node in hadoop?

眉间皱痕 提交于 2019-12-03 06:28:46
问题 If a data block is replicated, in which data node will it be replicated to? Is there any tool to show where the replicated blocks are present? 回答1: If you know the filename, you can look this up through the DFS browser. Go to your namenode web interface, say "browse the filesystem" and navigate to the file you're interested in. In the bottom of the page, there will be a list of all blocks in the file, and where each of those blocks is located. NOTE: It looks like this when you click on an