Skip to main content

Posts

Showing posts with the label google cloud platform

Setting Up PostgreSQL Replication Between Google Cloud SQL and an On-Premise Server for Business Continuity

Ensuring business continuity is crucial to minimizing downtime in today’s data-driven world. One effective approach is to set up database replication, which keeps your data synchronized between cloud and on-premise environments. This guide walks through the steps to configure replication between a PostgreSQL database hosted on Google Cloud SQL and an on-premise server, using Docker to deploy PostgreSQL. However, you are free to choose any other method to deploy PostgreSQL on your on-premise server if Docker isn’t your preferred option. Steps to Set Up the Replication Here’s a detailed guide on setting up PostgreSQL replication between a Cloud SQL instance in Google Cloud and an on-premise server. 1. Enable Replication in Cloud SQL First, enable logical replication on your Cloud SQL instance to stream changes (WAL logs) to another server: In the  Google Cloud Console , go to your Cloud SQL instance. Under  Flags , configure the following parameters: cloudsql.logical_decoding = ...