-
Notifications
You must be signed in to change notification settings - Fork 64
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
Allow and track multiple publisher to same topic #55
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for your contribution.
I like the new feature, but I have some doubts about the implementation.
happens for badly configured nodes: same node name for multiple publishers sending to same topic.
removes the necessity to suffix node_name
remove set_frequency as this would add a sample resulting in a wrong total frequency.
16e570e
to
aaafd82
Compare
@eliasdc I want to make sure that the application performance are not affected by the change, should be able to get results tomorrow. |
I compared your branch and master on a RaspberryPi 4 using the 20 nodes topology "montblanc". I prefer to not merge the change as it is. |
This PR adds the ability to have nodes publishing to the same topic to the benchmark application.
This adds a node_name attribute to the header message to keep track of the source of the message. A tracking number is saved for each unique node_name. This fixes an issue where the tracking_number_counter received the same number multiple times and the calculation of the stats failed because of it.
Size and frequency is saved in a Stat object to allow different sizes and frequencies with multiple publishers.