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

core: use rtimer instead of qtimer for everything #48027

Merged
merged 2 commits into from
Jun 26, 2024
Merged

Conversation

jkarneges
Copy link
Member

@jkarneges jkarneges commented Jun 25, 2024

The max number of allowed RTimers is configured at start time, so this number needs to be adjusted in proxy & handler to cover any new usages. Currently, RTimer usage is per-session, with a limit of 10 per session (an overestimate). This PR adds an extra 100 miscellaneous timers to cover per-thread timers such as the ones in StatsManager, the default ZhttpManager, and various QZmqSockets.

For the proxy, it also adds 10 per "zroute" (a route with a zhttp target), since each zroute contains a ZhttpManager which contains timers. This required introducing a zroutes maximum. Routes with zhttp targets are likely not used much by anyone, and having a lot of them would be even more unusual, so the max is hardcoded rather than configurable.

src/proxy/engine.cpp Outdated Show resolved Hide resolved
Copy link
Contributor

@sima-fastly sima-fastly left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@jkarneges jkarneges merged commit d16d545 into main Jun 26, 2024
4 checks passed
@jkarneges jkarneges deleted the jkarneges/core-rtimer branch June 26, 2024 21:06
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.

2 participants