aboutsummaryrefslogtreecommitdiff
path: root/app/yugabyte/deploy/yugabyte.hcl
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2021-12-29 22:15:49 +0100
committerAlex Auvolat <alex@adnab.me>2021-12-29 22:15:49 +0100
commit7c775e601700505d8cc6d2ab809ea0f459a6257b (patch)
treed9d411efb68e915553386007dea2d1c992a2fd5e /app/yugabyte/deploy/yugabyte.hcl
parent3d0c3c914d7a80456b826d9dbc089ea34827bd2c (diff)
downloadnixcfg-7c775e601700505d8cc6d2ab809ea0f459a6257b.tar.gz
nixcfg-7c775e601700505d8cc6d2ab809ea0f459a6257b.zip
fix tabs
Diffstat (limited to 'app/yugabyte/deploy/yugabyte.hcl')
-rw-r--r--app/yugabyte/deploy/yugabyte.hcl204
1 files changed, 0 insertions, 204 deletions
diff --git a/app/yugabyte/deploy/yugabyte.hcl b/app/yugabyte/deploy/yugabyte.hcl
deleted file mode 100644
index e7efa7a..0000000
--- a/app/yugabyte/deploy/yugabyte.hcl
+++ /dev/null
@@ -1,204 +0,0 @@
-job "yugabytedb" {
- type = "service"
- datacenters = [ "neptune", "pluton" ]
-
- priority = 80
-
- constraint {
- attribute = "${attr.cpu.arch}"
- value = "amd64"
- }
-
- group "master" {
- count = 3
-
- constraint {
- attribute = "${attr.unique.hostname}"
- operator = "regexp"
- value = "(caribou|cariacou|carcajou)"
- }
-
- network {
- port "admin" { static = 7000 }
- port "master-rpc" { static = 7100 }
- }
-
- update {
- max_parallel = 1
- min_healthy_time = "30s"
- healthy_deadline = "5m"
- }
-
- task "master" {
- driver = "docker"
-
- config {
- image = "yugabytedb/yugabyte:2.11.1.0-b305"
- command = "/home/yugabyte/bin/yb-master"
- args = [
- "--fs_data_dirs=/mnt/master",
- "--replication_factor=3",
- "--master_addresses=10.42.0.21:7100,10.42.0.22:7100,10.42.0.23:7100",
- "--rpc_bind_addresses=0.0.0.0:7100",
- "--placement_cloud=deuxfleurs",
- "--placement_region=staging",
- "--placement_zone=neptune",
- "--minloglevel=1",
- ]
- volumes = [
- "/mnt/ssd/yugabyte/master:/mnt/master",
- ]
- network_mode = "host"
- logging {
- type = "journald"
- }
- }
-
- resources {
- memory = 1000
- cpu = 1000
- }
-
- kill_signal = "SIGINT"
- kill_timeout = "20s"
-
- service {
- tags = ["yugabyte-master-rpc"]
- port = 7100
- address_mode = "driver"
- name = "yugabyte-master-rpc"
- check {
- type = "tcp"
- port = 7100
- address_mode = "driver"
- interval = "60s"
- timeout = "5s"
- check_restart {
- limit = 3
- grace = "90s"
- ignore_warnings = false
- }
- }
- }
-
- service {
- tags = ["yugabyte-admin"]
- port = 7000
- address_mode = "driver"
- name = "yugabyte-admin"
- check {
- type = "tcp"
- port = 7000
- address_mode = "driver"
- interval = "60s"
- timeout = "5s"
- check_restart {
- limit = 3
- grace = "90s"
- ignore_warnings = false
- }
- }
- }
-
- restart {
- interval = "30m"
- attempts = 10
- delay = "15s"
- mode = "delay"
- }
- }
- }
-
- group "tserver" {
- count = 3
-
- constraint {
- attribute = "${attr.unique.hostname}"
- operator = "!="
- value = "spoutnik"
- }
-
- network {
- port "ysql" { static = 5433 }
- port "tserver-rpc" { static = 9100 }
- }
-
- update {
- max_parallel = 1
- min_healthy_time = "30s"
- healthy_deadline = "5m"
- }
-
- task "tserver" {
- driver = "docker"
-
- config {
- image = "yugabytedb/yugabyte:2.11.1.0-b305"
- command = "/home/yugabyte/bin/yb-tserver"
- args = [
- "--fs_data_dirs=/mnt/tserver",
- "--start_pgsql_proxy",
- "--tserver_master_addrs=10.42.0.21:7100,10.42.0.22:7100,10.42.0.23:7100",
- "--rpc_bind_addresses=0.0.0.0:9100",
- "--placement_cloud=deuxfleurs",
- "--placement_region=staging",
- "--placement_zone=neptune",
- "--minloglevel=1",
- ]
- volumes = [
- "/mnt/ssd/yugabyte/tserver:/mnt/tserver",
- ]
- network_mode = "host"
- logging {
- type = "journald"
- }
- }
-
- resources {
- memory = 1000
- cpu = 1000
- }
-
- kill_signal = "SIGINT"
- kill_timeout = "20s"
-
- service {
- tags = ["yugabyte-tserver-rpc"]
- port = 9100
- address_mode = "driver"
- name = "yugabyte-tserver-rpc"
- check {
- type = "tcp"
- port = 9100
- address_mode = "driver"
- interval = "60s"
- timeout = "5s"
- check_restart {
- limit = 3
- grace = "90s"
- ignore_warnings = false
- }
- }
- }
-
- service {
- tags = [ "yugabyte-ysql" ]
- port = 5433
- address_mode = "driver"
- name = "yugabyte-ysql"
- check {
- type = "tcp"
- port = 5433
- address_mode = "driver"
- interval = "60s"
- timeout = "5s"
- check_restart {
- limit = 3
- grace = "90s"
- ignore_warnings = false
- }
- }
- }
- }
- }
-}