max_connections
setting must be greater than or equal to the primary’s setting; if the value is increased on the primary before being changed on the replica it will result in the replica becoming inaccessible with the following error:
max_connections
on the replica and notifying the user).
To avoid this issue, you need to update max_connections
on the replica Database to the higher value before updating the value on the primary.