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

Use Concurrent::Semaphore for broker rate limiter #2572

Conversation

andy-paine
Copy link
Contributor

A short explanation of the proposed change

Switch to using concurrent-ruby's semaphore for the service broker rate limiter

An explanation of the use cases your change solves

The concurrent-ruby package has some classes that essentially do the
same thing as we were trying to do so we can use those rather than
relying on our own code

Also add the DELETE method into the rate limiter and add a log line for
when users exceed this limit for monitoring whether the limit is
correctly set

Links to any other associated PRs

Improvement on #2563

  • I have reviewed the contributing guide

  • I have viewed, signed, and submitted the Contributor License Agreement

  • I have made this pull request to the main branch

  • I have run all the unit tests using bundle exec rake

  • I have run CF Acceptance Tests

The concurrent-ruby package has some classes that essentially do the
same thing as we were trying to do so we can use those rather than
relying on our own code

Also add the DELETE method into the rate limiter and add a log line for
when users exceed this limit for monitoring whether the limit is
correctly set

Signed-off-by: Andy Paine <andrew.paine@sap.com>
@andy-paine andy-paine merged commit 43a4a2c into cloudfoundry:main Nov 23, 2021
@andy-paine andy-paine deleted the improve-service-broker-rate-limiter branch November 23, 2021 13:31
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.

None yet

3 participants