Replication configuration¶
Swindon employs a special protocol we call “replication” to keep in sync swindon instances serving same session pools. This is required to allow users to connect to any instance and get all updates that target the user, and also allows backends to send requests and data to any swindon instance without doing any sophisticated logic.
Example¶
replication:
listen:
- 0.0.0.0:7878
peers:
- peer2:7878
- peer3:7878
max-connections: 10
listen-error-timeout: 100ms
reconnect-timeout: 5s
Options¶
-
listen
¶ A list of addresses to bind to.
-
peers
¶ A list of peer names to connect to.
-
max-connections
¶ (default
10
) Maximum number of client connections to accept.
-
listen-error-timeout
¶ (default
100ms
) Time to sleep when we caught error accepting connection.
-
reconnect-timeout
¶ (default
5s
) Time to sleep between retrying to connect to peer.