Re: How to track number of connections and hosts to Postgres cluster - Mailing list pgsql-performance

From Maciek Sakrejda
Subject Re: How to track number of connections and hosts to Postgres cluster
Date
Msg-id CAH_hXRaV2=qRFh2_wXEPr-BSkqGN71161uq=9XVAhYq95uBJhQ@mail.gmail.com
Whole thread Raw
In response to Re: How to track number of connections and hosts to Postgres cluster  (Greg Spiegelberg <gspiegelberg@gmail.com>)
List pgsql-performance
> I suppose you could use tcpdump on a separate system with a mirrored switch
> port and have it log TCP SYN and FIN packets on port 5432 to your database
> server only.  Keeps all I/O off your database server.
>     tcpdump -w port5423.log -n "tcp and port 5432 and tcp[tcpflags] &
> (tcp-syn|tcp-fin) != 0 and host IP"

That's an excellent idea, but note that this will also log
unsuccessful connection attempts (that is, successful TCP connections
that fail PostgreSQL authentication) without much of a way to
distinguish the two, especially if the connections are encrypted.

---
Maciek Sakrejda | System Architect | Truviso

1065 E. Hillsdale Blvd., Suite 215
Foster City, CA 94404
(650) 242-3500 Main
www.truviso.com

pgsql-performance by date:

Previous
From: David Boreham
Date:
Subject: Intel 320 SSD info
Next
From: Merlin Moncure
Date:
Subject: Re: Intel 320 SSD info