Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'config.praefect.toml.example')
-rw-r--r--config.praefect.toml.example15
1 files changed, 8 insertions, 7 deletions
diff --git a/config.praefect.toml.example b/config.praefect.toml.example
index 59e7563f1..424da961f 100644
--- a/config.praefect.toml.example
+++ b/config.praefect.toml.example
@@ -23,14 +23,15 @@ listen_addr = "127.0.0.1:2305"
# as shard. listen_addr should be unique for all nodes.
# Requires the protocol to be defined, e.g. tcp://host.tld:1234
-[primary_server]
+# The first server in the list serves as the default primary for repositories that don't have a "primary" node configured
+[server]
name = "default"
listen_addr = "tcp://gitaly-primary.example.com"
-# [[secondary_server]]
-# name = "default"
-# listen_addr = "tcp://gitaly-backup1.example.com"
+[server]
+ name = "server-1"
+ listen_addr = "tcp://gitaly-backup1.example.com"
-# [[secondary_server]]
-# name = "backup"
-# listen_addr = "tcp://gitaly-backup2.example.com"
+[server]
+ name = "server-2"
+ listen_addr = "tcp://gitaly-backup2.example.com"