4

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.

Daniel Mann
  • 57,011
  • 13
  • 100
  • 120

2 Answers2

9

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.

karlludwigweise
  • 101
  • 1
  • 3
3

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

Pol
  • 3,848
  • 1
  • 38
  • 55
AnishM
  • 267
  • 2
  • 10