class Nomad::System
Public Instance Methods
gc(**options)
click to toggle source
Initiates garbage collection of jobs, evaluations, allocations, and nodes. This is an async operation that always returns true, unless an error is encountered when communicating with the Nomad
API
.
@example
Nomad.system.gc #=> true
@option [String] :region
the region to query (by default, the region of the agent is queried)
@return [true]
# File lib/nomad/api/system.rb, line 25 def gc(**options) client.put("/v1/system/gc", options) return true end
reconcile_summaries(**options)
click to toggle source
Reconciles the summaries of all registered jobs.
@example
Nomad.system.reconcile_summaries #=> true
@option [String] :region
the region to query (by default, the region of the agent is queried)
@return [true]
# File lib/nomad/api/system.rb, line 39 def reconcile_summaries(**options) client.put("/v1/system/reconcile/summaries", options) return true end