Skip to content

Conversation

@thalesmg
Copy link
Contributor

Previously, we had a fixed restart intensity for the worker supervisor, meaning that if a
large pool dies once, it brings down the supervisor. Here, we have an intensity
proportional to the pool size, so the whole pool may restart at once without bringing the
supervisor down.

@thalesmg thalesmg force-pushed the 20250911-m-fix-sup-down branch from 7211e4a to 95b2489 Compare September 11, 2025 18:19
Previously, we had a fixed restart intensity for the worker supervisor, meaning that if a
large pool dies once, it brings down the supervisor.  Here, we have an intensity
proportional to the pool size, so the whole pool may restart at once without bringing the
supervisor down.
@thalesmg thalesmg force-pushed the 20250911-m-fix-sup-down branch from 95b2489 to dffa745 Compare September 11, 2025 18:20
@thalesmg thalesmg marked this pull request as ready for review September 11, 2025 18:22
@thalesmg thalesmg requested a review from savonarola September 11, 2025 18:23

%% for backward compatibility upgrading from version =< 4.2.1
safe_exec(Action, MainArg) when is_function(Action) ->
Action(MainArg).
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This was the cause for the crashes: this clause was not catching anything.

@thalesmg thalesmg requested a review from savonarola September 11, 2025 20:54
@thalesmg thalesmg merged commit 6ab4c00 into emqx:master Sep 12, 2025
4 checks passed
@thalesmg thalesmg deleted the 20250911-m-fix-sup-down branch September 12, 2025 12:03
thalesmg added a commit to thalesmg/emqx that referenced this pull request Sep 12, 2025
thalesmg added a commit to thalesmg/ehttpc that referenced this pull request Sep 12, 2025
thalesmg added a commit to thalesmg/ehttpc that referenced this pull request Sep 12, 2025
thalesmg added a commit to thalesmg/ehttpc that referenced this pull request Sep 12, 2025
See also emqx/ecpool#59

See also https://emqx.atlassian.net/browse/EMQX-14705

Previously, we had a fixed restart intensity for the worker supervisor, meaning that if a
large pool dies once, it brings down the supervisor. Here, we have an intensity
proportional to the pool size, so the whole pool may restart at once without bringing the
supervisor down.
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