-
Notifications
You must be signed in to change notification settings - Fork 169
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sources/worker.c: perform max routing check
When checking the `client_max_routing` option in od_system(), it creates some problems with monitoring tools such as pgconsul (which assumes that Odyssey is not accepting new connections and needs to be restarted), and it is a poor design choice overall, aimed at solving the problem of CPU consumption by TLS handshakes. To solve this issue, tls threads needs to be created. They will only do the tls handshakes, it will allows to unload workers threads, which will be just ready to send the bytes between clients and servers, and even accept new connections. This patch performs one of the first steps to introduce tls threads: it moves the logic of 'client max routing' into worker from od_system(). Signed-off-by: rkhapov <[email protected]>
- Loading branch information
Showing
3 changed files
with
50 additions
and
16 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