From 0b4c61dfe1102519157b8f8896a779fa9343a743 Mon Sep 17 00:00:00 2001 From: Quentin Dufour Date: Sun, 4 Apr 2021 20:04:25 +0200 Subject: [PATCH] Try to optimize Consul --- os/config/production.yml | 22 +++++++++---------- .../roles/consul/templates/consul.json.j2 | 5 ++++- 2 files changed, 15 insertions(+), 12 deletions(-) diff --git a/os/config/production.yml b/os/config/production.yml index 8870b52..d8baf14 100644 --- a/os/config/production.yml +++ b/os/config/production.yml @@ -4,9 +4,9 @@ cluster_nodes: ansible_host: atuin.site.deuxfleurs.fr ansible_port: 110 ansible_become: true - ipv4: 192.168.1.2 - gatewayv4: 192.168.1.254 - ipv6: 2a01:e34:ec5c:dbe0::2 + ipv4: 192.168.0.2 + gatewayv4: 192.168.0.254 + ipv6: 2a01:e0a:260:b5b0::2 gatewayv6: 2a01:e34:ec5c:dbe0::1 interface: eno1 dns_1: 212.27.40.240 @@ -17,10 +17,10 @@ cluster_nodes: ansible_host: atuin.site.deuxfleurs.fr ansible_port: 111 ansible_become: true - ipv4: 192.168.1.3 - gatewayv4: 192.168.1.254 - ipv6: 2a01:e34:ec5c:dbe0::3 - gatewayv6: 2a01:e34:ec5c:dbe0::1 + ipv4: 192.168.0.3 + gatewayv4: 192.168.0.254 + ipv6: 2a01:e0a:260:b5b0::3 + gatewayv6: 2a01:e0a:260:b5b0::1 interface: eno1 dns_1: 212.27.40.240 dns_2: 212.27.40.241 @@ -30,10 +30,10 @@ cluster_nodes: ansible_host: atuin.site.deuxfleurs.fr ansible_port: 112 ansible_become: true - ipv4: 192.168.1.4 - gatewayv4: 192.168.1.254 - ipv6: 2a01:e34:ec5c:dbe0::4 - gatewayv6: 2a01:e34:ec5c:dbe0::1 + ipv4: 192.168.0.4 + gatewayv4: 192.168.0.254 + ipv6: 2a01:e0a:260:b5b0::4 + gatewayv6: 2a01:e0a:260:b5b0::1 interface: eno1 dns_1: 212.27.40.240 dns_2: 212.27.40.241 diff --git a/os/config/roles/consul/templates/consul.json.j2 b/os/config/roles/consul/templates/consul.json.j2 index 6172cc4..73446fe 100644 --- a/os/config/roles/consul/templates/consul.json.j2 +++ b/os/config/roles/consul/templates/consul.json.j2 @@ -24,10 +24,13 @@ "encrypt": "{{ consul_gossip_encrypt }}", "domain": "2.cluster.deuxfleurs.fr", "performance": { - "raft_multiplier": 10, + "raft_multiplier": 5, "rpc_hold_timeout": "30s", "leave_drain_time": "30s" }, + "dns_config": { + "allow_stale": true + }, "telemetry": { "disable_hostname": true, "prometheus_retention_time": "2h"