Skip to content

Ability to Set Automatic Allocation Refreshment (Allocation Lifecycle) #25391

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

Open
habibimustafa opened this issue Mar 14, 2025 · 2 comments
Open

Comments

@habibimustafa
Copy link
Contributor

It would be nice if Nomad could implement an allocation lifecycle feature that automatically refreshes allocations after a specified number of days. Instead of having allocations run indefinitely, Nomad could replace an old allocation with a new one, keeping services fresh and avoiding issues associated with long-running allocations.

Use Cases

I have faced several issues from long-running allocations (specially on docker) such as memory leaks, stale connections, disks full of stale logs, or other surprising obstacles.

Attempted Solutions

  • Manual Restarts:
    Currently, I have to manually restart allocations or trigger redeployments. This method is error-prone and can lead to downtime if not managed carefully.

  • External Scheduling Tools:
    Creating cron jobs or custom scripts and run it under Nomad batch job to force allocation refreshes, but these solutions are clunky and lack tight integration with Nomad’s native scheduling and resource management. This approach is also less efficient for large allocations.

@jrasell
Copy link
Member

jrasell commented Mar 18, 2025

Hi @habibimustafa and thanks for raising this issue. It is certainly an interesting idea to have something similar to this within Nomad, most likely the Nomad client. While I don't believe this is something we will be able to prioritise quickly, I'll add it to our backlog for further discussion.

@habibimustafa
Copy link
Contributor Author

Its OK @jrasell
Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Needs Roadmapping
Development

No branches or pull requests

2 participants