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

Better zk cleanup for removed requests #1477

Merged
merged 4 commits into from
Apr 5, 2017
Merged

Better zk cleanup for removed requests #1477

merged 4 commits into from
Apr 5, 2017

Conversation

ssalinas
Copy link
Member

Cleans up a number of stale nodes created for requests.

On request delete:

  • remove from /deploys/requests
  • remove from /tasks/history

In purger (x -> purgeStaleRequestIdsAfterDays setting in config, 7 days by default)

  • In /deploys/requests delete if not in active request ids + hasn't been updated in x days + no STATE key present
  • In /tasks/history delete if not in active request ids + hasn't been updated in x days + no child nodes
  • In /metadata/mails delete if not in active request ids + hasn't been updated in x days

/cc @wsorenson

@ssalinas ssalinas modified the milestone: 0.15.0 Mar 30, 2017
@ssalinas ssalinas merged commit 4c16ce9 into master Apr 5, 2017
@ssalinas ssalinas deleted the zk_cleanup branch April 5, 2017 12:58
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

1 participant