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

fix: ifaddr sharding does not work #263

Merged
merged 1 commit into from
Sep 14, 2024
Merged

Conversation

terry-xiaoyu
Copy link
Member

@terry-xiaoyu terry-xiaoyu commented Sep 10, 2024

The following command line will ways use 192.168.150.25 as source IP address:

./bin/emqtt_bench conn -p 1883 -i 10 -c 50 --ifaddr "192.168.150.25,127.0.0.1"

@terry-xiaoyu terry-xiaoyu marked this pull request as ready for review September 10, 2024 03:33
@qzhuyan
Copy link
Contributor

qzhuyan commented Sep 12, 2024

strange it should work. we have being using N for years...

Opts1 = replace_opts(Opts0, [ {ifaddr, shard_addr(N, AddrList)}
, {host, shard_addr(N, HostList)}
Opts1 = replace_opts(Opts0, [ {ifaddr, shard_addr(I, AddrList)}
, {host, shard_addr(I, HostList)}
Copy link
Contributor

Choose a reason for hiding this comment

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

Ok. I see.
the N is not updating at all due to newly added I in recent commits.

@qzhuyan qzhuyan merged commit d0ed374 into master Sep 14, 2024
4 checks passed
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