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

Refactor connections rate, rate per minute instead of second #785

Merged
merged 13 commits into from
Jan 9, 2025

Conversation

paulo-ocean
Copy link
Contributor

@paulo-ocean paulo-ocean commented Dec 6, 2024

Fixes #780

Changes proposed in this PR:

  • rate connection limits per minute, per ip/peer
  • global command rate, all incoming

NOTE: the failing system tests is caused to the rate limit (the getDDO floods the node with requests until the DDO is indexed... as it keeps retrying every 1.5 seconds.. up to a max of 100 retries)
This will be fixed by oceanprotocol/ocean-cli#81 (increase rate limit setting for testing)

@paulo-ocean paulo-ocean self-assigned this Dec 6, 2024
@paulo-ocean paulo-ocean changed the title refactor connections rate, per minute not second Refactor connections rate, rate per minute instead of second Dec 6, 2024
@paulo-ocean paulo-ocean marked this pull request as ready for review December 11, 2024 13:12
Copy link
Member

@jamiehewitt15 jamiehewitt15 left a comment

Choose a reason for hiding this comment

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

Looks good to me

@mariacarmina
Copy link
Member

Can we resolve the conflicts here @paulo-ocean?

Copy link
Member

@mariacarmina mariacarmina left a comment

Choose a reason for hiding this comment

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

lgtm

@paulo-ocean paulo-ocean merged commit bc7edcc into main Jan 9, 2025
12 checks passed
@paulo-ocean paulo-ocean deleted the issue-780-rate-limmits branch January 9, 2025 11:34
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.

Rate limits
3 participants