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.

Filter by
Sorted by
Tagged with
0 votes
3 answers
30 views

What prevents the PostgreSQL server from starting when there's an error in primary_conninfo?

I'm using PostgreSQL 14, and during the replication setup, I forgot to include single quotes around the value of primary_conninfo. I'm puzzled as to why the server isn't starting, and I'm not finding ...
Manasa's user avatar
  • 13
1 vote
1 answer
37 views

How to connect pgxpool to the master and replica hosts with possibility of write to the table?

Got host variable equals to the database hosts host=<masters fqdn>,<replicas fqdn> But, when the program tries to write something in db, it gets an error: cannot set transaction read-...
Ilya Batkov's user avatar
0 votes
1 answer
47 views

How to perform read queries on read replica in postgres?

I deployed a PostgreSQL instance in k8s with a master pod and a single replica pod. I want to know how can I perform read queries on the read replica and write queries on the master? Currently, all ...
Shauryagoel's user avatar
0 votes
0 answers
10 views

Myloader error during Restorin MariadDB Slave: Duplicate entry 'ТОБАР' for key 'UX_B_SEARCH_STEM' [migrated]

I have lost my slave. To restore it I have locked tables on the master host and then have created a dump using mydumper tool. After that I have tried to restore my slave using myloader tool but during ...
Skuld's user avatar
  • 9
-1 votes
0 answers
18 views

MySQL time field type conversion issue with AWS DMS

I have a DB MySQL v5.6 community edition as a source DB and AWS RDS MySQL v5.7 as target in AWS DMS and have an issue with time field type. DMS task is full load and replication. During full load all ...
blagi's user avatar
  • 24
0 votes
0 answers
20 views

MySQL 8 Community Replication: Achieving Data Synchronization Between Nodes

I've set up a MySQL 8 replication scenario with Node 1 and Node 2 in a Master-Master configuration using binlog positions. In the event of Node 1 being down, Node 2 functions correctly due to the ...
Tinkumoni keot's user avatar
2 votes
1 answer
98 views

Execution timeout expired issue in a stored procedure on Azure SQL

I got a problem with execution of a stored procedure on Azure SQL. By the way, the procedure is huge and average execution time is about 30–40 seconds. There is a main database and a replica. My API ...
Spring Elk's user avatar
-1 votes
0 answers
16 views

how to solve problem of that IO thread in slave cannot read the correct position in master in mariadb 10.3 ? I tried to use GTID_based replication [migrated]

I have a problem when using new style GTID_based replication on mariadb 10.3 in case of multi master and slaves replication ..I cannot use auto positioning in case of the IO thread in slave cannot ...
esraa salah's user avatar
0 votes
0 answers
24 views

COLLATE differences between SQL dumps from primary and replica MySQL servers

I have two identical servers running Apache, MySQL 8.0.35, and PHP 7.4. The servers have one-way asynchronous MySQL replication setup using GTID-based replication. One server is the primary and the ...
Kevin Morse's user avatar
0 votes
1 answer
81 views

Postgresql History Error: Could not restore file "00000004.history" from archive: command not found

I am encountering an error in one of the replication clusters on my Ubuntu machine with PostgreSQL version 13 database. The error message is as follows: FATAL: could not restore file "00000004....
Abdullah Ergin's user avatar
0 votes
0 answers
14 views

How Can I calculate Read Replica lag in RDS postgres?

We have stood up the read replica, now I want to run it for a week and then calculate the lag for a week. Is there any easy way to find out how I can calculate the avg lag for whole week? Or during ...
Madhu's user avatar
  • 397
0 votes
0 answers
27 views

Get a list of (local) publications in SQL Server

When in SQL Server Management Studio, there is a "Replication" folder with the list of local publications: I am looking for a way to get that list programmatically. Something like a SQL ...
Dmitriy Ryabin's user avatar
0 votes
0 answers
35 views

WAL getting full on db using pg_restore in postgres

I'm trying to restore my database from a dump. I use the command pg_restore -Fc -j 8 mydumpfile -c and while in the process of restoring the tables the WAL keeps growing up to a point where the db ...
moth's user avatar
  • 1,953
1 vote
0 answers
68 views

docker mysql replication setup

Running under Mac OS X (is this easier on Ubuntu?), this is my docker compose yml file: version: '3.5' services: alpha: image: custom-mysql-image container_name: alpha hostname: alpha ...
Ivan's user avatar
  • 7,538
-1 votes
1 answer
37 views

Speed of copying data from PostgreSQL primary node to read-only nodes on DigitalOcean

I have created a PostgreSQL database cluster, that consists of one primary+standby database and three read-only databases (each read-only database for a specific region). During development I’ve faced ...
Volodymyr Nabok's user avatar
0 votes
0 answers
6 views

Upgrade domain issue

I have just migrated my 2 DC's from 2012r2 to 2019 and during the migration, the AD auto-generated new groups (enterprise key admins, key admins) and assigned permissions to these groups at the root ...
Ahmed Abdul jalil's user avatar
1 vote
1 answer
61 views

How to change the confirmed_flush_lsn to a smaller value

Problems Currently, when creating a replication slot using CREATE_REPLICATION_SLOT, the values of catalog_xmin, restart_lsn, and confirmed_flush_lsn are set to the latest xid and lsn. However, during ...
Hongshun Wang's user avatar
0 votes
0 answers
44 views

SQL Script to: Automatic DML Export from Oracle Tables

I have to sync two databases. Database 1 has data I would like to use to sync everything. For example, select * from administration.operations where asset_no = '555' --Suppose this query returns an ...
mRminer's user avatar
  • 11
0 votes
0 answers
29 views

does DMS replication instance upgrade require restarting rather than resuming cdc replication task

I have to upgrade the DMS replication instance, and the terraform plan shows that the replication instance for the CDC sync "must be replaced" after the upgrade: # module....
Nevermore's user avatar
  • 7,191
0 votes
0 answers
43 views

Using the mORMot database replication function fails, just works once after the server are restarted

Only when the master server is restarted the sync works but only once. In the slave log I can see the following repeated five times: 2023-10-05 09:24:14.640 Debug mormot.rest.sqlite3....
larand's user avatar
  • 783
0 votes
1 answer
69 views

Postgres replication without taking a new base backup of the primary server

I have configured steaming replication in PostgreSQL. Every time I fail over, I need to take a new base backup to reverse the order of replication. After promoting the standby server, I need to take a ...
Akash's user avatar
  • 1
0 votes
0 answers
10 views

Replica table partition in EDB PostgreSQL

I have problem when I replica my table with replication console from EDB Postgres. the trouble is the table have different number row from primary to replica when I partition the table. but when the ...
Tcuber 11's user avatar
0 votes
0 answers
12 views

Trace / alert /synch /monitor KAFKA data transfer

We have KAFKA implemented and transferring data from source database to another destination database frequently. Here we need to ensure data is consistent between these database systems. How do we ...
user1626780's user avatar
0 votes
0 answers
35 views

Multiple sessions of the Distributor Agent running in SQL Server Replication Monitor

I've configured replication in SQL Server (Developer Edition) using three local servers: SVR1, which has a publication; SVR2, which acts as the distributor server; and SVR3, which has two push ...
David Riscanevo's user avatar
0 votes
1 answer
34 views

How can I deploy Symmetricds as a Web Archive (WAR) on my windows hosting (Plesk)

I'm trying to sync a cloud database (Windows hosting) with local database using Symmetricds, I succeeded to sync two database on my local network, But I failed to deploy Symmetricds on my windows ...
Abdulsalam Elsharif's user avatar
-2 votes
1 answer
360 views

Can't import the dump: ERROR 1180 (HY000) at line XXXXX1268: Got error 1 "Operation not permitted" during COMMIT

I am trying to recover my slave cluster. I have followed the guide instructions from here: How to re-sync the Mysql DB if Master and slave have different database incase of Mysql replication? The dump ...
Skuld's user avatar
  • 9
1 vote
1 answer
276 views

Huge replication lag after upgrading from Mysql 5.7 to Mysql 8.0.32

In my setup I have one source and one single replica. The replication has always been working fine on MySQL 5.7. Recently we have upgraded to MySQL 8.0.32 and since that we are constantly experiencing ...
Péter Hámori's user avatar
1 vote
1 answer
39 views

Replica using DTU pricing model

I have a Azure SQL Db configure with DTU-based pricing model. I'm trying to create a Replica in a secondary region for the DB. But when I try to configure it using the Azure portal, there is no option ...
Sai's user avatar
  • 655
1 vote
0 answers
42 views

what if pglogical provider node gets stopped?

I have implemented the master-master bidirectional replication using Postgres pglogical extension on Ubuntu. Trying different scenarios that if one of the nodes gets down / shut down, will the process ...
Varsh's user avatar
  • 443
1 vote
0 answers
52 views

Logical replication from Postgresql to Greenplum

We have a Postgresql database to which we are only adding data (we don't use UPDATE or DELETE operations). We need to perform analytical queries on the data that we received a few minutes ago. We ...
Vladimir Shadrin's user avatar
0 votes
1 answer
35 views

how to know the db name for ddl in slave server by binlog?

In MySQL, the ddl is always statement-based replication. In the case, the binlog may not contain db name info if a ddl doesn't explicitly contain a db name such as create table table1 instead of ...
Julan's user avatar
  • 11
0 votes
1 answer
27 views

Is an Identity Column Sufficient for Achieving Logical Replication in PostgreSQL?

I have a PostgreSQL table A on AWS RDS which is not partitioned. I want to migrate the data to B which is partitioned by hash(user_id). Table A doesn't have any PK or unique index. I am using AWS DMS ...
confusedWarrior's user avatar
0 votes
0 answers
150 views

kubernetes mariadb galera replication across cluster

The requirement is to do mariadb replication across two kubernetes cluster I have one k8s cluster and each cluster running 3 mariadb pods which are syncing data using galera, it is working fine as ...
sameer's user avatar
  • 1
0 votes
2 answers
196 views

Column list used by the publication does not cover the replica identity. Cannot Update Table - Logical Replication - Postgres 15

We're doing a Postgres native logical replication between two databases. Now, we're getting an error trying to update from the publisher one of thousand tables that we have. When we try to update the ...
Tomás Hernández's user avatar
0 votes
1 answer
76 views

Copying Postgres 12 database to another server with smallest downtime

I'm going to migrate a production PostgreSQL 12 database (~200GB) to another more powerful server. There are a bunch of partitioned tables, some without primary key (theoretically, it won't be a ...
devaskim's user avatar
  • 502
0 votes
0 answers
17 views

Is there any way to replicate postgres database in linode

I have a django project up and running. I am using linode database service for postgresql database. Now I want a replicate database of my original database just for read operations. When I research I ...
stackuser's user avatar
0 votes
1 answer
127 views

How to create RDS read replica in public subnet of my RDS which is in private subnet?

I have at RDS which is Aurora PostgreSQL and in private subnet with no to publically accessible. Now I want to create its read replica in public subnet in same region or in cross region. I tried to ...
Logan's user avatar
  • 11
0 votes
1 answer
157 views

Rails 6.1 multiple read replicas

Our Rails app has some operations with very high database load on Postgres views, which we would like to spread out across multiple replicas. The docs initially suggest that any given model can only ...
niborg's user avatar
  • 389
0 votes
0 answers
58 views

Instance has been deleted error after commit

I am using sqlachemy in my python project. I have a Read-Write replication setup on MYSQL database and I am redirecting all Select queries on Read instance and all other on Write using RoutingSession ...
Rajendra Khabiya's user avatar
0 votes
0 answers
49 views

How to fix CREATE SUBSCRIPTION command error in PostgreSQL Aurora Serverless v2

I am trying to create a PostgreSQL database replica using the CREATE SUBSCRIPTION command. The command is taking a very long time (20 minute & i terminate session) to run and I don't know why. I ...
NamHT's user avatar
  • 1
1 vote
1 answer
91 views

Does Postgres Logical Replication Provide Guarantees about the order of publication?

Let's say I have a database schema with a monotonically increasing primary key, and this table is logically replicated across another database. Is there same guarantee consistent in the replica? As ...
Rol's user avatar
  • 540
0 votes
1 answer
142 views

Serving requests in Spring Boot from multiple read DB replicas

We have a Spring boot which app talks to Postgres (AWS RDS). I have 3 APIs and out of which 2 are PUT and one is GET. GET is high velocity API i.e. QPS for GET is too high compared to first two APIs. ...
Sagar's user avatar
  • 5,417
-1 votes
1 answer
255 views

How to debug MySQL replication error 1049?

I had a working MySQL master-slave replication that recently I've noticed it's been failed few mins ago. Here's the result of SHOW SLAVE STATUS\G: *************************** 1. row *******************...
Martin AJ's user avatar
  • 6,331
0 votes
1 answer
30 views

Couchdb _replicate endpoint doesn't accept port 443

I am running curl -XPOST "$COUCHDB_ADMIN_URL/_replicate" \ -H 'Content-Type:application/json' \ -d "{\"source\": \"$COUCHDB_ADMIN_URL/alice-db\", \"target\&...
magp's user avatar
  • 185
-1 votes
1 answer
37 views

How implement logical replication in postgres database with pg_rewind

How implement logical replication in postgres database with pg_rewind ? wal_level = replica I have used replica instead of logical and took basebackup in replica server , In acrchive server everytime ...
Akash's user avatar
  • 1
0 votes
1 answer
133 views

How to synchronize replicationDB with masterDB in MariaDB

I created replicaDB and I've got a problem. While I was creating it, I did some steps below FLUSH TABLES WITH READ LOCK; on masterDB mysqldump command as well to make a backup import backup into ...
hekke's user avatar
  • 15
0 votes
0 answers
28 views

ClickHouse.MaterializedPostgreSQL engine. Use custom domain

I add data replication to ClickHouse with help of MaterializedPostgreSQL from PostgreSQL. In my schema, in PostgreSQL i have custom domain like: CREATE DOMAIN domain_name AS NUMERIC(24, 10) ...
MrOldSir's user avatar
  • 676
0 votes
1 answer
89 views

Disable Replication, Keep Replicated Tables?

I have transactional replication set up between Database1 and Database2 using SQL Server 2017. About 20 tables are being replicated to Database2, a few of them are pretty large. I would like to ...
user2608654's user avatar
-2 votes
1 answer
147 views

Why MySQL slave stops syncing with error 1449? [closed]

I have implemented a replica from a MySQL database. The issue is, after 2 days, the slave doesn't get sync anymore and it throws: Coordinator stopped because there were error(s) in the worker(s). The ...
Martin AJ's user avatar
  • 6,331
0 votes
0 answers
39 views

Heroku poatgres replication to Rds using Bucardo

i tried to set up a replication between Heroku postgres and rds via bucardo running on Ec2 instance. I get an error when I try to add the sync , saying validation failed for herokudb I can connect to ...
Sharma's user avatar
  • 1

1
2 3 4 5
37