Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ask] how to determine max_wal_senders #51

Open
OctopusRage opened this issue Feb 19, 2024 · 4 comments
Open

[ask] how to determine max_wal_senders #51

OctopusRage opened this issue Feb 19, 2024 · 4 comments

Comments

@OctopusRage
Copy link

im getting error [25360]:FATAL: number of requested standby connections exceeds max_wal_senders (currently 25) while replicating my production db
my db currently on RDS and have 2 slave
how to determin max_wal_senders to avoid getting this error?

@cpursley
Copy link
Owner

We need to add this as a config setting. I'll take a look int it next week (unless you'd like to submit a PR before then).

@cpursley
Copy link
Owner

https://hexdocs.pm/postgrex/Postgrex.ReplicationConnection.html#module-logical-replication

I think this might just be a database setting, I'll dive in deeper next week.

@OctopusRage
Copy link
Author

aight thx, i got a hunch my connection restarting somewhere in the middle.. gotta monitor next try using pg_stat_replication

@OctopusRage
Copy link
Author

OctopusRage commented Feb 27, 2024

running query below

select application_name, sent_lsn, write_lsn, state, backend_start from pg_stat_replication where usename = 'myapprepluser'

resulting this, why some states starting up and keep idle all the time?

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants