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

Set subscription expiry to 1 day #65

Merged
merged 2 commits into from
Mar 6, 2023

Conversation

krithika369
Copy link
Collaborator

What this PR does / why we need it: PubSub subscriptions have a default expiry time of 31 days. From the PubSub docs:

By default, subscriptions expire after 31 days of subscriber inactivity or if there are no updates made to the subscription.

This can result in a lot of clutter due to autoscaling (when some pods are removed, their subscriptions still live on GKE a while). So, this PR explicitly sets the expiry to 1 day.

@krithika369 krithika369 requested a review from a team March 3, 2023 01:11
Copy link
Contributor

@deadlycoconuts deadlycoconuts 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 updating this!

@krithika369 krithika369 merged commit 69c6158 into caraml-dev:main Mar 6, 2023
@krithika369 krithika369 deleted the set_pubsub_expiry branch March 6, 2023 02:22
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.

2 participants