pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
(no subject)
7+ messages / 4 participants
[nested] [flat]

* (no subject)
@ 2018-11-02 15:56  Pierre Ochsenbein <pierreochsenbein@gmail.com>
  0 siblings, 2 replies; 7+ messages in thread

From: Pierre Ochsenbein @ 2018-11-02 15:56 UTC (permalink / raw)
  To: pgsql-admin

Hey guy's,

What is your best recommendation for a PostgreSQL HA with two nodes if I
use pgpool-II.
Warm standby or read only with streaming replication?

Thanks

^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* Re:
@ 2018-11-02 16:05  Fabio Pardi <f.pardi@portavita.eu>
  parent: Pierre Ochsenbein <pierreochsenbein@gmail.com>
  1 sibling, 1 reply; 7+ messages in thread

From: Fabio Pardi @ 2018-11-02 16:05 UTC (permalink / raw)
  To: pgsql-admin@lists.postgresql.org

Hi Pierre,

in my opinion it depends a bit from your setup, the workload and your goal.

Since streaming replication offers near-realtime data view, you might go
for that and offload your master too.

Also consider that there are more options, like pg_logical, which is
quite cool.

regards,

fabio pardi


On 11/2/18 4:56 PM, Pierre Ochsenbein wrote:
> Hey guy's,
> 
> What is your best recommendation for a PostgreSQL HA with two nodes if I
> use pgpool-II.
> Warm standby or read only with streaming replication?
> 
> Thanks
> 




^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* Re:
@ 2018-11-02 20:31  Rui DeSousa <rui@crazybean.net>
  parent: Fabio Pardi <f.pardi@portavita.eu>
  0 siblings, 0 replies; 7+ messages in thread

From: Rui DeSousa @ 2018-11-02 20:31 UTC (permalink / raw)
  To: Fabio Pardi <f.pardi@portavita.eu>; +Cc: pgsql-admin@lists.postgresql.org



> 
> Also consider that there are more options, like pg_logical, which is
> quite cool.
> 

I wouldn’t use pg_logical for HA; it should be an exact replica which pg_logical is not.



^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* Re:
@ 2018-11-03 07:25  Shreeyansh Dba <shreeyansh2014@gmail.com>
  parent: Pierre Ochsenbein <pierreochsenbein@gmail.com>
  1 sibling, 1 reply; 7+ messages in thread

From: Shreeyansh Dba @ 2018-11-03 07:25 UTC (permalink / raw)
  To: Pierre Ochsenbein <pierreochsenbein@gmail.com>; +Cc: pgsql-admin

Hi Pierre,

Go through this link. hope this will help you.

http://bajis-postgres.blogspot.com/2014/04/difference-between-warm-hot-standby-and.html


On Fri, Nov 2, 2018 at 9:27 PM Pierre Ochsenbein <pierreochsenbein@gmail.com>
wrote:

> Hey guy's,
>
> What is your best recommendation for a PostgreSQL HA with two nodes if I
> use pgpool-II.
> Warm standby or read only with streaming replication?
>
> Thanks
>
>

^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* Re:
@ 2018-11-03 16:45  Rui DeSousa <rui@crazybean.net>
  parent: Shreeyansh Dba <shreeyansh2014@gmail.com>
  0 siblings, 1 reply; 7+ messages in thread

From: Rui DeSousa @ 2018-11-03 16:45 UTC (permalink / raw)
  To: Shreeyansh Dba <shreeyansh2014@gmail.com>; +Cc: Pierre Ochsenbein <pierreochsenbein@gmail.com>; pgsql-admin

For an HA setup I would highly recommend using streaming replication with synchronous commits.  There is no reason to risk losing a single committed transaction in a HA setup.  As far as managing the system which I believe your question is more about; that is going to depend on your environment and there are numerous cluster solutions out there; personally I use a CARP based solution.

For DR it’s more customary to use asynchronous replication due to the high latency in most DR setups thus there is a risk of losing committed transactions.






^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* Re:
@ 2018-11-05 16:25  Pierre Ochsenbein <pierreochsenbein@gmail.com>
  parent: Rui DeSousa <rui@crazybean.net>
  0 siblings, 1 reply; 7+ messages in thread

From: Pierre Ochsenbein @ 2018-11-05 16:25 UTC (permalink / raw)
  To: rui@crazybean.net; +Cc: Shreeyansh Dba <shreeyansh2014@gmail.com>; pgsql-admin

Thanks for you're feedback.
For sure I would like also to use streaming replication with synchronous
commits. I would be more secure.. but on your stdby you have configure a
script to become the primary automatically?

Le sam. 3 nov. 2018 à 17:45, Rui DeSousa <rui@crazybean.net> a écrit :

> For an HA setup I would highly recommend using streaming replication with
> synchronous commits.  There is no reason to risk losing a single committed
> transaction in a HA setup.  As far as managing the system which I believe
> your question is more about; that is going to depend on your environment
> and there are numerous cluster solutions out there; personally I use a CARP
> based solution.
>
> For DR it’s more customary to use asynchronous replication due to the high
> latency in most DR setups thus there is a risk of losing committed
> transactions.
>
>
>

-- 
Cordialement,

*Pierre Ochsenbein*
Mobile: +33668295394
pierreochsenbein@gmail.com

^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* Re:
@ 2018-11-05 16:59  Rui DeSousa <rui@crazybean.net>
  parent: Pierre Ochsenbein <pierreochsenbein@gmail.com>
  0 siblings, 0 replies; 7+ messages in thread

From: Rui DeSousa @ 2018-11-05 16:59 UTC (permalink / raw)
  To: Pierre Ochsenbein <pierreochsenbein@gmail.com>; +Cc: Shreeyansh Dba <shreeyansh2014@gmail.com>; pgsql-admin



> On Nov 5, 2018, at 11:25 AM, Pierre Ochsenbein <pierreochsenbein@gmail.com> wrote:
> 
> but on your stdby you have configure a script to become the primary automatically?

Yes, as soon at the CARP address (i.e. the VIP) is migrated to the standby the database is promoted automatically.  All the existing TCP connections are reset/dropped and the clients reconnect to the new server within seconds. 

You have to researched the best solution for your given OS platform.  There are solutions that are platform agnostic too.  I don’t have a canned one to recommend though.






^ permalink  raw  reply  [nested|flat] 7+ messages in thread


end of thread, other threads:[~2018-11-05 16:59 UTC | newest]

Thread overview: 7+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2018-11-02 15:56  Pierre Ochsenbein <pierreochsenbein@gmail.com>
2018-11-02 16:05 ` Re: Fabio Pardi <f.pardi@portavita.eu>
2018-11-02 20:31   ` Re: Rui DeSousa <rui@crazybean.net>
2018-11-03 07:25 ` Re: Shreeyansh Dba <shreeyansh2014@gmail.com>
2018-11-03 16:45   ` Re: Rui DeSousa <rui@crazybean.net>
2018-11-05 16:25     ` Re: Pierre Ochsenbein <pierreochsenbein@gmail.com>
2018-11-05 16:59       ` Re: Rui DeSousa <rui@crazybean.net>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox