2024-04-19 10:41:33 +06 [2464031-3] LOG: redo starts at 4/17229290
2024-04-19 10:41:34 +06 [2464031-4] LOG: consistent recovery state reached at 4/180BE290
2024-04-19 10:41:34 +06 [2464031-5] LOG: invalid record length at 4/180BE290: wanted 24, got 0
2024-04-19 10:41:34 +06 [2464034-1] LOG: started streaming WAL from primary at 4/18000000 on timeline 3
2024-04-19 10:41:34 +06 [2464037-1] [local] postgres@postgres FATAL: the database system is starting up
2024-04-19 10:41:34 +06 [2464040-1] [local] postgres@postgres FATAL: the database system is starting up
2024-04-19 10:41:34 +06 [2464045-1] [local] postgres@postgres FATAL: the database system is starting up
2024-04-19 10:41:34 +06 [2464047-1] [local] postgres@postgres FATAL: the database system is starting up
2024-04-19 10:41:35 +06 [2464049-1] [local] postgres@postgres FATAL: the database system is starting up
2024-04-19 10:41:35 +06 [2464055-1] [local] postgres@postgres FATAL: the database system is starting up
2024-04-19 10:41:35 +06 [2464056-1] [local] postgres@postgres FATAL: the database system is starting up
2024-04-19 10:41:36 +06 [2464058-1] [local] postgres@postgres FATAL: the database system is starting up
After restoring basebackup standby node needs to replay plenty of WAL files before it could start accepting client connections.
This is not Patroni problem.
For the future please use Slack for questions.
What happened?
We are running High Availability PostgreSQL cluster with patroni.
After we deployed Replica node, it remains in "starting" state for quite a long time, 2-3-4 hours. Then it changes to normal state "running"
The same happenes even after we simply restart Patroni for replica node
We tried to install the latest version of Patroni 3.2.2, that the issue remains the same
How can we reproduce it (as minimally and precisely as possible)?
The issue appears on Replica node start up
What did you expect to happen?
Cluster should start normally without a long time to wait
Patroni/PostgreSQL/DCS version
Patroni configuration file
patronictl show-config
Patroni log files
PostgreSQL log files
Have you tried to use GitHub issue search?
Anything else we need to know?
No response