[Patroni](https://github.com/zalando/patroni) uses the built-in Python HTTP server to expose database states. It's perfect to be used by a load balancer like HAProxy to achieve high-availability. But, sometimes, this interface freezes. There's an [open issue](https://github.com/zalando/patroni/issues/857) we are trying to close actively. As production doesn't wait, `patroniglue` was created to offload those checks and release pressure by adding a little response cache.
## Usage
Start process using a configuration file:
```
patroniglue -config config.yml
```
Add more logging output:
```
patroniglue -config config.yml -verbose
```
Print usage:
```
patroniglue -help
```
## Configuration
Configuration file format is YAML.
*`frontend`: settings to handle incoming requests
*`host`: address to handle requests (localhost by default)
*`port`: port to handle requests (80 by default)
*`certfile`: path to SSL certificate file (will use HTTP by default if not provided)
*`keyfile`: path to SSL private key file (will use HTTP by default if not provided)