When i check the status of a nomad job. Along with the new allocation i can see all the older allocations details(with stop & complete). The list is pretty huge.
Is there any way to remove/delete the older allocations details and show only the latest allocation details.
Even if you garbage collect older allocations, nomad will keep its records of failed allocations. Use
nomad system reconcile summaries
on the command line, to remove older allocations from your summary. For details check out the docs.
Yes. The fact that you see the old allocations means that nomad has not garbage collected the completed/failed allocations. You can force a GC by calling the system API
curl -X PUT http://nomad:4646/v1/system/gc
Once nomad finishes the GC, you can see that the old allocations are cleared.
More information on Nomad System API documentation
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With