Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@tacryt-socryp
Copy link
Contributor

@tacryt-socryp tacryt-socryp commented Dec 13, 2020

The push-hook library was iterating through incoming subscriptions and was sending out the same fact to the same path multiple times. It now taps the list of paths it takes in so as to deduplicate them prior to issuing facts. Perhaps this could be pulled up into Gall?

Thanks for helping me find this, @philipcmonk. This PR also turns back on noisy printing of duplicates in %graph-store, because that will help us root out any future issues in the stack that cause duplicate messages to be sent. There won't be any duplicate facts anymore at present so the terminal will continue to be quiet.

Messages sent over the %push-hook will now cause 10x less network traffic than they did previously.

cc: @vvisigoth @matildepark The root cause has been found and resolved.

Copy link
Collaborator

@philipcmonk philipcmonk left a comment

Choose a reason for hiding this comment

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

We tested this on on ~bitpyx and it worked fine

@vvisigoth
Copy link
Contributor

vvisigoth commented Dec 13, 2020 via email

Copy link
Contributor

@liam-fitzgerald liam-fitzgerald left a comment

Choose a reason for hiding this comment

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

LGTM

@vvisigoth
Copy link
Contributor

vvisigoth commented Dec 14, 2020 via email

@tacryt-socryp
Copy link
Contributor Author

tacryt-socryp commented Dec 14, 2020

The root issue is worse than I initially expected, which is that n messages are sent per message where n is the number of ships on the channel. This issue is high enough priority to warrant a hotfix.

In other words, we'll receive a greater than 10x performance gain for many of our larger groups, such as urbit-community. We could easily see a 100x improvement for large chat channels.

@liam-fitzgerald
Copy link
Contributor

(Where n is the number of ships on the channel that haven't been kicked). Should definitely go out as a hotfix

@tacryt-socryp tacryt-socryp merged commit cd125fc into release/next-userspace Dec 14, 2020
@tacryt-socryp tacryt-socryp deleted the la/fix-push-hook branch December 14, 2020 23:57
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.

5 participants