mirror of
https://github.com/kemko/nomad.git
synced 2026-01-01 16:05:42 +03:00
host volumes: add configuration to GC on node GC (#25903)
When a node is garbage collected, any dynamic host volumes on the node are orphaned in the state store. We generally don't want to automatically collect these volumes and risk data loss, and have provided a CLI flag to `-force` remove them in #25902. But for clusters running on ephemeral cloud instances (ex. AWS EC2 in an autoscaling group), deleting host volumes may add excessive friction. Add a configuration knob to the client configuration to remove host volumes from the state store on node GC. Ref: https://github.com/hashicorp/nomad/pull/25902 Ref: https://github.com/hashicorp/nomad/issues/25762 Ref: https://hashicorp.atlassian.net/browse/NMD-705
This commit is contained in:
1
command/agent/testdata/basic.json
vendored
1
command/agent/testdata/basic.json
vendored
@@ -94,6 +94,7 @@
|
||||
"gc_interval": "6s",
|
||||
"gc_max_allocs": 50,
|
||||
"gc_parallel_destroys": 6,
|
||||
"gc_volumes_on_node_gc": true,
|
||||
"host_volume": [
|
||||
{
|
||||
"tmp": [
|
||||
|
||||
Reference in New Issue
Block a user