Home > Software engineering >  Simulate network latency between application in AKS and PostgreSQL server in Azure
Simulate network latency between application in AKS and PostgreSQL server in Azure

Time:11-17

I need to test a scenario to see how my app deals with latency. My application is in K8S on Azure (AKS) and its connecting to a Postgres DB in Azure. Anyone know of any good tools that aren't too tricky to implement?

CodePudding user response:

pgbench is the simplest to use with lots of information on the web to use this command.

CodePudding user response:

For simple Ping and latency check you can use the normal docker image Busybox and check the latency across the Network.

You can also use the Prometheus to monitor, like

pg_stat_activity_max_tx_duration is one metrics type. 

You can read more at here

To check POD network communication : https://docs.projectcalico.org/getting-started/kubernetes/hardway/test-networking

You can also check out tools like datadog which will expose the good details like latency and performance metrics.

Extra :

Dont forget to check out the Pgbouncer if your team facing the latency issue.

  • Related