Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

395
Visualizações
How to have a replication of a live database on an offsite using Postgresql?

I have a live server running on postgres 9.5.

I would like to have an offsite replication of the same database hosted on a cloud server (Let's call this the standby server). We are okay with anywhere between 10 minutes to even 1 hour of delay between the live database and the standby database.

The live server is running on intranet but has access to the internet. There is no static IP address associated with the live server.

We want to use the standby server to allow other offices outside the country to access the same data albeit with acceptable delays. The other offices only has read access to the data on the standby server.

The standby server also acts as a hot backup to the live database.

I have found this article but it looks pretty brief. https://wiki.postgresql.org/wiki/Streaming_Replication

How do I set it up so that this can be achieved?

I would also like to know the impact of the setup if the internet connection is non-existent for a period of time (say, 5 seconds to even 20 minutes) between the live server and the standby server. This can happen occasionally as the live server is in a country where the infrastructure is not the best.

UPDATE with more research

There are multiple options for replication:

https://www.postgresql.org/docs/9.5/static/different-replication-solutions.html#HIGH-AVAILABILITY-MATRIX

The most popular documented option is Transaction Log Shipping

Within that there are 2 options for standby: warm and hot

And then you can have a choice between 2 ways to replicate or a mixture of both:

  1. https://wiki.postgresql.org/wiki/Streaming_Replication
  2. file-based log shipping sending WAL (aka write-ahead log) records https://www.postgresql.org/docs/current/static/warm-standby.html

Implementation related questions to the bigger question of how to have a replication:

Assuming Transaction Log Shipping is chosen as the method,

  1. how to determine whether I should go for streaming or file-based log shipping?
  2. under what circumstances I should choose for both?
  3. how to determine minimum required bandwidth for outgoing internet connection at the live server site?
over 4 years ago · Santiago Trujillo
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda