Skip to content
This repository has been archived by the owner on Oct 11, 2024. It is now read-only.

Use our fork of pubsub which increases queue size #732

Merged
merged 2 commits into from
Mar 2, 2020

Conversation

albrow
Copy link
Contributor

@albrow albrow commented Feb 28, 2020

Possible fix for #551. This PR updates Mesh to use a custom fork of libp2p/go-libp2p-pubsub, which increases the size of the channel for incoming messages from 32 to 1000. This fixes an issue reported by Augur where orders were sometimes not being received by peers in stress testing/benchmarking scenarios. The same issue could also be encountered in the real world, although it is less likely since #692.

See also libp2p/go-libp2p-pubsub#217 which mentions the small queue sizes and other related issues.

@albrow albrow self-assigned this Feb 28, 2020
@albrow albrow added bug Something isn't working performance Related to improving or measuring performance labels Feb 28, 2020
Copy link
Contributor

@fabioberger fabioberger left a comment

Choose a reason for hiding this comment

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

Hype!

Copy link
Contributor

@jalextowle jalextowle left a comment

Choose a reason for hiding this comment

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

Nice find!

@albrow albrow merged commit f0ceea7 into development Mar 2, 2020
@albrow albrow deleted the fix/pubsub-sub-queue-size branch March 2, 2020 20:35
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working performance Related to improving or measuring performance
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants