Skip to content
This repository has been archived by the owner on Sep 30, 2024. It is now read-only.

Expire cluster_alias entries #1246

Merged
merged 1 commit into from
Sep 29, 2020
Merged

Expire cluster_alias entries #1246

merged 1 commit into from
Sep 29, 2020

Conversation

shlomi-noach
Copy link
Collaborator

Fixes #1245

This PR expires cluster_alias entries, based on UnseenInstanceForgetHours, same as database_instance entries are expired.

The effect is that orchestrator properly forgets aliases for clusters that have no instances (ie. created long ago, but which have probably been decomissioned, seeing that there's no instances that associate themselves with said alias).

cc @tomkrouper

Copy link
Collaborator

@tomkrouper tomkrouper left a comment

Choose a reason for hiding this comment

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

Thanks so much. Looks good.

@shlomi-noach shlomi-noach merged commit 00d9f7f into master Sep 29, 2020
@shlomi-noach shlomi-noach deleted the expire-clustr-alias branch September 29, 2020 16:59
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Old clusters don't error out on web interface (/web/cluster/alias/<cluster>)
2 participants