From 9b6bdc709253ba20d344bee711e5b7bf29bf03c7 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Tue, 20 Sep 2022 17:13:36 +0200 Subject: [PATCH] Update to garage config --- cluster/staging/app/garage/config/garage.toml | 1 + cluster/staging/app/garage/deploy/garage.hcl | 29 ++++++++++--------- 2 files changed, 16 insertions(+), 14 deletions(-) diff --git a/cluster/staging/app/garage/config/garage.toml b/cluster/staging/app/garage/config/garage.toml index 602a604..19ee22f 100644 --- a/cluster/staging/app/garage/config/garage.toml +++ b/cluster/staging/app/garage/config/garage.toml @@ -29,4 +29,5 @@ index = "index.html" [admin] api_bind_addr = "0.0.0.0:3909" admin_token = "{{ key "secrets/garage-staging/admin_token" | trimSpace }}" +metrics_token = "{{ key "secrets/garage-staging/metrics_token" | trimSpace }}" #trace_sink = "http://{{ env "attr.unique.network.ip-address" }}:4317" diff --git a/cluster/staging/app/garage/deploy/garage.hcl b/cluster/staging/app/garage/deploy/garage.hcl index 1691536..28f8474 100644 --- a/cluster/staging/app/garage/deploy/garage.hcl +++ b/cluster/staging/app/garage/deploy/garage.hcl @@ -60,7 +60,7 @@ job "garage-staging" { driver = "docker" config { - image = "dxflrs/amd64_garage:v0.8.0-beta1-k2v" + image = "dxflrs/amd64_garage:v0.8.0-beta2-k2v" command = "/garage" args = [ "server" ] network_mode = "host" @@ -77,7 +77,8 @@ job "garage-staging" { } resources { - memory = 1000 + memory = 2000 + memory_max = 3000 cpu = 1000 } @@ -117,18 +118,18 @@ job "garage-staging" { port = 3993 address_mode = "driver" name = "garage-staging-k2v-api" - check { - type = "tcp" - port = 3993 - address_mode = "driver" - interval = "60s" - timeout = "5s" - check_restart { - limit = 3 - grace = "90s" - ignore_warnings = false - } - } + # check { + # type = "tcp" + # port = 3993 + # address_mode = "driver" + # interval = "60s" + # timeout = "5s" + # check_restart { + # limit = 3 + # grace = "90s" + # ignore_warnings = false + # } + # } } service {