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

feat(quic): quic fine tune #267

Merged
merged 4 commits into from
Oct 18, 2024
Merged

Conversation

qzhuyan
Copy link
Contributor

@qzhuyan qzhuyan commented Oct 7, 2024

This is breaking change:
old --quic now must come with --quic true as arg type changes.

new --quic fine_tune.eterm is supported for fine tune the quic conn and quic ctrl stream.

@@ -691,8 +694,8 @@ connect(Parent, N, PubSub, Opts) ->
undefined when TopicPayloadRend == undefined ->
erlang:send_after(RandomPubWaitMS, self(), publish);
undefined ->
maps:foreach(fun(TopicName, #{name := TopicName}) ->
erlang:send_after(RandomPubWaitMS, self(), {publish, TopicName})
Copy link
Contributor

Choose a reason for hiding this comment

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

I think the use of the random wait was intentional: to stagger publishing over a wider period of time instead of a huge simultaneous burst.

Copy link
Contributor Author

@qzhuyan qzhuyan Oct 7, 2024

Choose a reason for hiding this comment

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

This is for topic payload --topics-payload option, we don't want publisher send pkts immediately(regardless of random wait) after connect.

maybe change it to
RandomPubWaitMS + DelayMs ?

Copy link
Contributor

Choose a reason for hiding this comment

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

yes, that sounds good

@qzhuyan qzhuyan force-pushed the dev/william/quic-fine-tune branch from deb45ad to d5ab65d Compare October 7, 2024 13:28
@qzhuyan
Copy link
Contributor Author

qzhuyan commented Oct 7, 2024

Also fixed a dumb bug relates to --topics-payload

@qzhuyan qzhuyan merged commit 29b623e into emqx:master Oct 18, 2024
4 checks passed
@qzhuyan qzhuyan deleted the dev/william/quic-fine-tune branch October 18, 2024 17:52
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