aboutsummaryrefslogtreecommitdiff
path: root/cluster
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2022-09-20 17:13:36 +0200
committerAlex Auvolat <alex@adnab.me>2022-09-20 17:13:36 +0200
commit9b6bdc709253ba20d344bee711e5b7bf29bf03c7 (patch)
treeb159df3914d061a18d74660a61e2afba7cef88ef /cluster
parent72606368bf4771c36995a9145b120b697e38d95b (diff)
downloadnixcfg-9b6bdc709253ba20d344bee711e5b7bf29bf03c7.tar.gz
nixcfg-9b6bdc709253ba20d344bee711e5b7bf29bf03c7.zip
Update to garage config
Diffstat (limited to 'cluster')
-rw-r--r--cluster/staging/app/garage/config/garage.toml1
-rw-r--r--cluster/staging/app/garage/deploy/garage.hcl29
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 {