Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tls workers #710

Closed
wants to merge 3 commits into from
Closed

tls workers #710

wants to merge 3 commits into from

Conversation

rkhapov
Copy link
Collaborator

@rkhapov rkhapov commented Nov 2, 2024

No description provided.

@rkhapov rkhapov marked this pull request as draft November 2, 2024 18:03
This new command will help to run format on different envs
because of running formatting inside docker.

Previous make fmt will stay, but is not very suitable.

Signed-off-by: rkhapov <[email protected]>
@rkhapov rkhapov force-pushed the tls-workers-threads branch 2 times, most recently from 42a171b to 30a630a Compare November 2, 2024 18:45
Current od_worker function is quite heavy: it performs all message
type processing in single switch construction.

This patchs makes two new functions for every message types.

Signed-off-by: rkhapov <[email protected]>
@rkhapov rkhapov force-pushed the tls-workers-threads branch from 30a630a to d088bba Compare November 2, 2024 19:09
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]>
@rkhapov rkhapov closed this Nov 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant