Skip to content

Commit

Permalink
✨ Add client gc_max_allocs param
Browse files Browse the repository at this point in the history
  • Loading branch information
fairglen authored and beechesII committed Jan 11, 2024
1 parent 1a576a9 commit b6eaa10
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,11 @@ The role defines most of its variables in `defaults/main.yml`:
- Client garbage collection interval
- Default value: **1m**

### `nomad_gc_max_allocs`

- Maximum number of allocations which a client will track before triggering a garbage collection
- Default value: **50**

### `nomad_gc_disk_usage_threshold`

- Disk usage threshold percentage for garbage collection
Expand Down
1 change: 1 addition & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ nomad_max_kill_timeout: "30s"
nomad_network_speed: 0
nomad_cpu_total_compute: 0
nomad_gc_interval: "1m"
nomad_gc_max_allocs: 50
nomad_gc_disk_usage_threshold: 80
nomad_gc_inode_usage_threshold: 70
nomad_gc_parallel_destroys: 2
Expand Down
1 change: 1 addition & 0 deletions templates/client.hcl.j2
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ client {
cpu_total_compute = {{ nomad_cpu_total_compute }}

gc_interval = "{{ nomad_gc_interval }}"
gc_max_allocs = "{{ nomad_gc_max_allocs }}"
gc_disk_usage_threshold = {{ nomad_gc_disk_usage_threshold }}
gc_inode_usage_threshold = {{ nomad_gc_inode_usage_threshold }}
gc_parallel_destroys = {{ nomad_gc_parallel_destroys }}
Expand Down

0 comments on commit b6eaa10

Please sign in to comment.