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: add a limit of max 10 content topics per query #3117

Merged
merged 1 commit into from
Oct 16, 2024

Conversation

richard-ramos
Copy link
Member

Adds the same restriction we had on waku archive legacy of a maximum of 10 content topics per query as it currently was limitless. We have seen that the store query performance drops the more content topics we add so adding a limit of 10 will help avoid this situation as well as comply with the current assumptions of status-go

Copy link

You can find the image built from this PR at

quay.io/wakuorg/nwaku-pr:3117

Built from 6120074

Copy link
Contributor

@gabrielmer gabrielmer left a comment

Choose a reason for hiding this comment

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

LGTM, thank you!

Copy link
Contributor

@NagyZoltanPeter NagyZoltanPeter left a comment

Choose a reason for hiding this comment

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

In general it is ok and need to protect the interface, but I think it might worth to measure where the perf drops, due otherwise it can lead to too many queries, that will in contradict increase the overall load.
Also will be interesting to see how to properly set rate limit for store that still serve the clients (like Status app using a lots of content-topics) but does not allow DOS the node.

Copy link
Collaborator

@Ivansete-status Ivansete-status left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks for it! 💯

@richard-ramos richard-ramos merged commit c35dc54 into master Oct 16, 2024
10 of 12 checks passed
@richard-ramos richard-ramos deleted the limit-contenttopics branch October 16, 2024 21:55
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.

4 participants