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

Automatically remove unused deployments #3023

Merged
merged 2 commits into from
Dec 8, 2021
Merged

Automatically remove unused deployments #3023

merged 2 commits into from
Dec 8, 2021

Conversation

lutter
Copy link
Collaborator

@lutter lutter commented Dec 1, 2021

With these changes, graph-node will automatically remove unused deployments, and it therefore won't be necessary to manually run graphman unused record and graphman unused remove. When a deployment is detected to be unused, graph-node will wait for GRAPH_REMOVE_UNUSED_INTERVAL minutes (default: 6hrs) before actually deleting the deployment's data.

As a reminder, a deployment is considered unused if it is neither the current or pending version of a subgraph, and also not assigned to any indexing node.

@leoyvens leoyvens requested a review from tilacog December 3, 2021 14:15
@lutter lutter merged commit 4684fd0 into master Dec 8, 2021
@lutter lutter deleted the lutter/unused branch December 8, 2021 18:06
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