-
Notifications
You must be signed in to change notification settings - Fork 826
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adjust session ttl if supplied value is smaller than minimum possible
It could happen that ttl provided in Patroni configuration is smaller than minimum supported by Consul. In such case Consul agent fails to create a new session and responds with 500 Internal Server Error and http body contains somthing like: "Invalid Session TTL '3000000000', must be between [10s=24h0m0s]". Without session Patroni is not able to create member and leader keys in the Consul KV store and it means that cluster becomes completely unhealty. As a workaround we will handle such exception, adjust ttl to the minimum possible and retry session creation.
- Loading branch information
Alexander Kukushkin
committed
Nov 3, 2017
1 parent
82c02bf
commit fb8f7d5
Showing
2 changed files
with
43 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters