Increasing replication lag on Postgres (single region)

Hello,

I’ve just noticed that the replication lag on my postgres cluster is increasing. There are two vms in the same region. In the last 24h my app had problems to connect to the database sometimes. I am wondering whether the replication lag might be related to that. Any ideas? Thank you.

@mathiasn Are you still experiencing this problem? And could you share some information about the write load of the DB as well? Seems like this would happen if there’s a lot of write traffic (enough to exceed the bandwidth between the instances), but are you seeing even when there’s not much write traffic?

Well it’s way lower than before at least. There are less till no writes actually.