For this issue, there is no need for configuration apart from specifying what the threshold is - the appservers will switch over to master-only mode when this threshold is reached.
I think it would be useful to easily change what database is used for the master and slave. However, I think this is better done using a connection pool like pgbouncer or pgpool rather than attempt to code this logic ourselves. This approach will work for batch processes as well as the web app.
For this issue, there is no need for configuration apart from specifying what the threshold is - the appservers will switch over to master-only mode when this threshold is reached.
I think it would be useful to easily change what database is used for the master and slave. However, I think this is better done using a connection pool like pgbouncer or pgpool rather than attempt to code this logic ourselves. This approach will work for batch processes as well as the web app.