From be6a2ac8cd00494f319769b44a2211a507fd6f58 Mon Sep 17 00:00:00 2001 From: kanshi <46557+kanshi@users.noreply.github.com> Date: Thu, 8 Aug 2024 13:01:07 +0200 Subject: [PATCH] Rebalance config stage, live --- operations/deploy-live.hcl | 46 +++++++++++++++---------------------- operations/deploy-stage.hcl | 4 ++-- 2 files changed, 20 insertions(+), 30 deletions(-) diff --git a/operations/deploy-live.hcl b/operations/deploy-live.hcl index 708bd11..52dd0df 100644 --- a/operations/deploy-live.hcl +++ b/operations/deploy-live.hcl @@ -6,17 +6,6 @@ job "sbws-live" { group "sbws-live-group" { count = 7 - update { - max_parallel = 1 - health_check = "task_states" - min_healthy_time = "60m" - healthy_deadline = "64m" - progress_deadline = "70m" - auto_revert = true - auto_promote = false - canary = 0 - } - spread { attribute = "${node.unique.id}" weight = 100 @@ -60,8 +49,10 @@ job "sbws-live" { port "http-port" { static = 9277 - to = 80 - # host_network = "wireguard" + } + + port "orport" { + static = 9291 } port "control-port" { @@ -69,18 +60,15 @@ job "sbws-live" { host_network = "wireguard" } - port "orport" { - static = 9291 + port "socks-port" { + static = 9241 + host_network = "wireguard" } } task "sbws-relay-live-task" { driver = "docker" - env { - ANON_USER = "root" - } - volume_mount { volume = "sbws-live" destination = "/var/lib/anon" @@ -96,22 +84,24 @@ job "sbws-live" { } resources { - cpu = 512 + cpu = 2048 memory = 2500 } template { change_mode = "noop" data = <