-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
storage: introduce no-activity timeout for conns
Automatic master discovery on the storages means, that the instances are going to establish more connections between replicasets to locate the masters of each other. That might easily lead to fullmesh of the whole cluster - it means lots of connections majority of which are not even used most of the time. Need to get rid of them somehow if they are not used for a while. This commit makes the storages drop the too long unused connections. Also the automatically discovered master locations are erased by the same no-activity timeout. The logic behind it is that if an instance wasn't contacted anyhow for a very long time, then it might be not a master anymore. It is better not to treat it as a master then and let it be re-discovered when a master connection is needed again. Follow-up #429 Follow-up #430 NO_DOC=internal
- Loading branch information
Showing
5 changed files
with
123 additions
and
18 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
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
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