Re: Client IP in Patroni

From: Ron <ronljohnsonjr(at)gmail(dot)com>
To: pgsql-admin(at)lists(dot)postgresql(dot)org
Subject: Re: Client IP in Patroni
Date: 2022-11-21 15:25:33
Message-ID: 3b72f6be-3d45-d857-bcb7-86c031d7a6bf@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

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.

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Jim Chanco Jr. 2022-11-21 15:28:37 Re: Client IP in Patroni
Previous Message Anjul Tyagi 2022-11-21 15:14:40 Client IP in Patroni