Questions tagged [database-replication]
Database replication is used to ensure consistency between redundant databases and to improve reliability and increase fault-tolerance. The replication process commonly involves continuously duplicating a "master" database to one or more additional "slave" databases.
1,799
questions
-2
votes
0
answers
20
views
How to make DR in sybase 16 [closed]
How can I set up a disaster recovery in Sybase 16 on Linux 7?
What are the steps and OS level prerequisites to set up disaster recovery in Sybase 16 on Linux 7?
-3
votes
0
answers
13
views
mysql master-master replicaation with drbd-pcs cluster nodes [closed]
I want to replicate my SQL databases into a master-master replica. but the problem is i have 6 nodes and each set of two combined with drbd-pcs custer setup
In the DRBD cluster, I have already ...
0
votes
0
answers
30
views
The concurrent snapshot for publication xxx is not available because it has not been fully generated
I'm having trouble running replication on sql server 2019. On replication monitor in Distributor to Subscriber history section I get action message:
The concurrent snapshot for publication xxx is not ...
0
votes
0
answers
21
views
Aws DMS CDC Replication is not working, giving errors
Firstly I successfully migrated DB from mysql mariaDB to PostgreSQL via Aws DMS Task1 with full-load migration type selected. Now with the Task2 of enabling replication with cdc migration type, its ...
0
votes
1
answer
17
views
Can we do streaming and logical replication in postgresql Slave at same time?
We have PostgresSQL cluster with 1 master and 2 slave configuration , we want to enable logical replication from Slave , as the master a pretty work heavy database , we don’t want to put more load on ...
1
vote
0
answers
14
views
MariaDB10.4 - W10 machine, one slave + few regular standalone DBs - how to?
I'm running a simple home/small business php/db server with Windows 10 and xampp with MariaDB.
I'd like to expand it to being it a DB slave for a "failover" PHP application hosted on another ...
0
votes
0
answers
18
views
MySQL semi-sync long-distance replication
we're using two datacenters (east and west coast) where same set of applications work in hot-standby mode (one is primary, second is standby) with local MySQL, so when failover occurs, standby side ...
0
votes
0
answers
22
views
Can't Grant SLAVE MONITOR to user on MariaDB 10.6 Primary
We recently replaced an old MariaDB 10.3 primary with one of it's replicas which is running 10.6.x. Hoping that this would resolve a weird Primary/replica issue that we have had since creating the ...
0
votes
0
answers
22
views
SQL Server 2014 : Merge replication and transactional on same database
We currently have merge replication setup between Server 1 and Server 2. Server 2 is in a different geographic location. The merge replication is there so that users in the same region as Server 2 hit ...
0
votes
0
answers
25
views
Error while creating a read replica in Cloud SQL
I am getting the error as below everytime I create a read replica.
tried with mysql 8 and postgresql 14
This instance is not responding. You can still restore a backup to a new instance or promote a ...
0
votes
1
answer
17
views
How to use port 5434 on main server for postgresql streaming replication
I am trying to do streaming replication between two postgresql servers. Main server is listening on port 5434 and I have to keep it so. When I run "pg_basebackup -h (main server ip) -D /var/lib/...
0
votes
1
answer
24
views
instance pool destroyed mongodb replicaset
I created a replica set with a primary, a secondary and an arbiter.
const mongoose = require('mongoose');
const url = 'mongodb://192.168.244.40:27017,192.168.244.38:27017,192.168.244.36:27017/mydb';
...
0
votes
1
answer
29
views
RDS PostgreSQL read replica considerations
I have a database that is maxing out on CPU. I would like to spin up a read replica so that my services use the replica to read and that removes some of the pressure of the master db.
If the cpu of ...
0
votes
1
answer
38
views
How to create replica set in mongoDb new version above 6.0 in windows
how to create replication in mongoDb (node js) in latest version.
i was trying mongodb documentation
https://www.mongodb.com/docs/manual/tutorial/convert-standalone-to-replica-set/
i used this command ...
0
votes
2
answers
27
views
DynamoDB single-active cross region replication
I'm trying to understand DynamoDB replication & failover strategies but do not find any articles on the web which clarifies them. I understand cross-region replication can be achieved by DynamoDB ...
0
votes
0
answers
38
views
AWS DMS replication instance and target endpoint test connection failed
I am trying to start a replication task but for that I need the test connection to work between the target endpoint (S3) and the replication instance. Here's the error:
Test Endpoint failed: ...
0
votes
0
answers
25
views
Replicating Data from Azure (PostgreSQL) using IICS
Using IICS, is it possible to replicate data to a data warehouse (local, Oracle) from Azure (PostgreSQL), without installing a secure agent on the Azure instance?
I haven't tried anything yet, just ...
0
votes
1
answer
39
views
sync data from remote SQL Server to local server
I have read only access to 2 SQL Server databases used by our company's primary application. For reporting and testing purposes, I would like to sync the databases to 2 databases i have on prem at ...
0
votes
1
answer
39
views
citus: Can I add one more replica for a distributed table
I have a distributed table,but this table only has one replica,only one replica doesn't have
ha, I want and one more replica for the table,can i? how to do?
I have search online help docs,but didn't ...
0
votes
0
answers
36
views
MySQL replication with 3 nodes (GTID and channels)
I would like to ask a question regarding replication of 3 nodes within MySQL before I do proceed with my idea by purchasing more hardware.
That being the case, currently I do have 2 nodes with master-...
0
votes
0
answers
25
views
Queries on implementing postgres logical replication for production?
Will there be any situation where the replication gets failed? If so
how to manage that failover?
Is there any queries to identify the no.of pending records to be replicated?
How to manage failover/DR ...
0
votes
1
answer
30
views
ERROR: [dn3]: SSL connection has been closed unexpectedly
I have been working on the timescaleDB multinode clustering concept. When I go to add a data node, I run the add_data_node query in the access node at that time I got an error like SSL Connection has ...
0
votes
0
answers
19
views
How to create writtable replica in TimeScaleDB?
I have been trying to implement database clustering and replication in timescaleDB. I have done the setup for replication, then the primary database is replicated to the replica node.
But in the ...
2
votes
1
answer
48
views
Can we have both Physical and Logical replication on the same postgres database for different purposes?
I am in a need of having both the Physical and Logical replications of a database for two different purposes.
Physical replication is to have a DR setup.
Logical replication is to handle a function ...
0
votes
1
answer
26
views
How does an `arbiter` vote in mongoDb election?
I do understand why we need an arbiter in mongoDb election, ref - Why do we need an 'arbiter' in MongoDB replication?
But how does an arbiter actually vote since it does not maintain any ...
0
votes
0
answers
24
views
Why is MySQL timestamp column not updated in replica?
I want to add a timestamp column to the replica table, so that when any updates get replicated from the source it gets updated. However, it does not seem to work on every table.
Binary logs format is ...
0
votes
1
answer
31
views
Automatic MariaDB table replication between 2 databases on the same server
So a friend of mine asked me to help him configure an automatic replication of a table on his MariaDB database to another table that's supposed to be an exact copy of the source/primary table.
The ...
0
votes
0
answers
43
views
How to have database realtime readonly duplication on different servers?
I have IoT object data in MongoDB and an admin panel to access it.
IoT object must work with no internet connection (access to data to add/update).
IoT object should not send too much data (working ...
1
vote
1
answer
36
views
Synchronizing with CORP and being a host using symmetricds
I have a question regarding SymmetricDS and trying to get a project to work.
So far I've managed to get Corp to sync with Stores and Stores with Corp
This is working as intended, changes in Store are ...
0
votes
2
answers
24
views
PostgreSQL replication slot - how to see standby nodes
I am using PostgreSQL 11.2. I have replication slots setup. I am able to commit to a table and see it on the standby. I have few more standbys. How can I see from the master what other standbys I have?...
-1
votes
1
answer
20
views
Safest way to sync local database to online db(phpmyadmin)? [duplicate]
What will be the best solution to sync my local database (about 100 stations/localdb) to my live server.
I see this question here and it seems too dangerous to use on my case.
0
votes
1
answer
92
views
postgresql archive permission denied
We have installed postgres v12 on ubuntu 20.04 (with apt install -y postgresql postgresql-contrib) and wish to enable archiving to /data/db/postgres/archive by setting the following in postgresql.conf:...
0
votes
0
answers
12
views
Lag Status - Slony
I added a new slave node to my replication stream, sync was done. But now I have a 3 day replication delay alert.
I checked the communication between the machines and the banks, but I didn't find ...
0
votes
0
answers
18
views
Mysql Slave not showing updates
I have a 3 node Percona XtraDB Mysql Cluster (PXC) , and separately a 1 node Async slave.
I recently upgraded the Percona cluter to Mysql 8.0.29 from 5.7.
I used Percona's xtrabackup to transfer the ...
0
votes
1
answer
142
views
Use Terraform on Google Cloud SQL Postgres to create a Replication Slot
Overall I'm trying to create a Datastream Connection to a Postgres database in Cloud SQL.
As I'm trying to configure it all through Terraform, I'm stuck on how I should create a Replication Slot. This ...
0
votes
0
answers
9
views
does primary postgres need open ACLs to secondary when connections come through midware
I want to setup postgres replication, we had a midware called pgbouncer -- which handles connection and read/write requests.
so for primary pgsql we have connections allows pgbouncer to connect, ...
0
votes
0
answers
63
views
Synchronous Postgres Replication to Clickhouse
I have a problem replicating postgres to clickhouse. I can easily create materialized postgresql engine and it works fine. But we need to have synchronous commits work so that any write to our main ...
0
votes
0
answers
21
views
PostgreSQL replication a specific database
I am trying to replicate just one PostgreSQL-specific database on a PG replication server. I am following this tutorial, using WAL and pg_basebackup:
https://linuxhint.com/setup-physical-replication-...
1
vote
1
answer
85
views
PostgreSQL Subscribers and Publishers (Multi-Master Scenario)
(Yes, it needs to be PostgreSQL)
I'm currently trying to develop a solution that would be trying to focus on Multi-Master Databases
So here is how it's supposed to operate
I want so that whenever an ...
1
vote
1
answer
86
views
CouchDB Replication does not replicate old revision documents
I'm working on "one database per user" system using the CouchDB replication with a selector to filter my data based on the user configuration.
It works pretty well, until the day when i ...
0
votes
0
answers
75
views
pg_basebackup: error: FATAL: Peer authentication failed for user "user_replication"
I am trying to create postgres replication on the same server using two different clusters running on two different ports.
here's how my pg_hba.conf looks like at cluster performing replication
local ...
0
votes
0
answers
24
views
OID lookup failed for table "_timescaledb_catalog.dimension_partition" on standby in postgresql
I am using postgresql-12 and the latest version of timescaledb as an extension for the database. Everything goes smoothly on the primary node. But when I tried to establish a stand by for the instance,...
0
votes
0
answers
134
views
How to use database replication in prisma and nestjs
Currently, I am working on a Nestjs project where I am using Prisma as ORM and MySql as database.
But I am stuck now when I tried to use database replication in this project.
Any help will be ...
-1
votes
2
answers
51
views
postgresql database hacked after replication [closed]
I am new to postgresql and was following a tutorial for replication
here's how my pg_hba.conf looked like:
# Database administrative login by Unix domain socket
local all postgres ...
0
votes
1
answer
128
views
how to retain data in postgres slave after a change in master
I am using bitnami Postgres docker image for creating my master-slave database.
I am making changes to my master and serving my app using slave.
my script needs to remove a table in order to recreate ...
0
votes
0
answers
92
views
Transaction replication Error at the subscriber
I was working on a transaction replication on SQL server 2017.A delete command can not be replicated because there is no record that matches the delete condition on the subscriber.
Normally I solve ...
0
votes
2
answers
54
views
Setup MysqlDB Replica for one Schema
I have mysql8 DB in my Linux server. I want to setup Replica for this DB. In this DB I have multiple schemas, But I want to setup a replica for only one schema.
Is it possible to set up a replica for ...
0
votes
0
answers
89
views
replication slot lag when using test_decoding plugin
I am using test_decoding plugin (have issues with pglogical plugin unable to detect the replication slot) on RDS Postgres 11. Replication slot lag seems to increase drastically (~33gb) even when there ...
0
votes
1
answer
32
views
Are there *application*-driven reasons to prefer multi-primary topologies over clustering, or vice-versa?
I have an application that currently uses a single primary and I'm looking to do multi-primary by either setting up a reciprocal multi-primary (just two primaries with auto-increment-increment and ...
0
votes
0
answers
44
views
How to prevent table replication starvation in AWS Data Migration Service (DMS)
I'm using AWS DMS to migrate one postgres db to another. I am performing a full load + ongoing replication task. The full load succeeded without issues for all of the schemas and their tables (around ...