-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor API to use a single database client
See issue #370 Previously, the Krake API created one etcd client for each request received. Because of the etcd client used, a memory leakage appeared, where the client would put too much elements in cache, see Revolution1/etcd3-py#141 To circumvent the issue, one single client is now used for the whole Krake API. As this client leverages a pool of connections, it could make sense to only use one of them. With this method, the API does not show any sign of memory leak. Signed-off-by: Jean Chorin <[email protected]>
- Loading branch information
Showing
3 changed files
with
51 additions
and
40 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