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

Throttle app by cluster #150

Merged
merged 3 commits into from Sep 23, 2022
Merged

Throttle app by cluster #150

merged 3 commits into from Sep 23, 2022

Conversation

meiji163
Copy link
Contributor

When manually throttling an app, usually we want to throttle for only one cluster, not globally.
This adds store_name query parameter for /throttle-app endpoint to throttle app on specific store. On the backend it just uses app/store as key so no change to backend storage needed.

/throttle-app/<app>: throttle app globally
/thottle-app/<app>?store_name=<cluster>: throttle app on cluster
/unthrottle-app/<app>: unthrottle app globally and on all clusters

cc/ https://github.com/github/database-infrastructure/issues/4420

@meiji163 meiji163 marked this pull request as ready for review September 22, 2022 03:50
Copy link
Contributor

@dm-2 dm-2 left a comment

Choose a reason for hiding this comment

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

🚀

@meiji163 meiji163 temporarily deployed to staging September 22, 2022 17:00 Inactive
@meiji163 meiji163 temporarily deployed to production September 22, 2022 22:51 Inactive
@meiji163 meiji163 merged commit f987bf1 into master Sep 23, 2022
@meiji163 meiji163 deleted the meiji163/throttle-cluster branch September 23, 2022 02:27
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

2 participants