pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ron <ronljohnsonjr@gmail.com>
To: pgsql-admin@lists.postgresql.org
Subject: Re: Client IP in Patroni
Date: Mon, 21 Nov 2022 09:25:33 -0600
Message-ID: <3b72f6be-3d45-d857-bcb7-86c031d7a6bf@gmail.com> (raw)
In-Reply-To: <em93afa279-dd83-4c24-83fb-d087c8eb3449@4cf9dad7.com>
References: <em93afa279-dd83-4c24-83fb-d087c8eb3449@4cf9dad7.com>

On 11/21/22 09:14, Anjul Tyagi wrote:
> Team,
>
> We have setup in Postgres HA Cluster using Patroni. Also we have used the 
> HAProxy for load balancing...
>
> On Postgres side, we are getting HaProxy IP instead of Client IP, while 
> checking in pg_stat_activity tables. Can you please suggest the changes 
> needs to be done on HAProxy or Postgres side?

Postgresql does not know that HAProxy is a proxy.  It just knows that an IP 
address (which just happens to come from an HAProxy server) has connected 
and "doing stuff".

-- 
Angular momentum makes the world go 'round.

view thread (6+ messages)  latest in thread

Message-ID: <3b72f6be-3d45-d857-bcb7-86c031d7a6bf@gmail.com>
Permalink:  ../3b72f6be-3d45-d857-bcb7-86c031d7a6bf@gmail.com/
Also on:    postgresql.org/message-id/3b72f6be-3d45-d857-bcb7-86c031d7a6bf@gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: ronljohnsonjr@gmail.com, pgsql-admin@lists.postgresql.org
  Subject: Re: Client IP in Patroni
  In-Reply-To: <3b72f6be-3d45-d857-bcb7-86c031d7a6bf@gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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