diff options
author | Stan Hu <stanhu@gmail.com> | 2020-02-22 02:19:05 +0300 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2020-02-22 02:22:34 +0300 |
commit | 6a779756ff8156f2385e60c847b9b31b1f69dbd7 (patch) | |
tree | ae66e483328d8e15b1b17dc6b4baab70b6f1214e /config.praefect.toml.example | |
parent | 52e06c2e6eb2d3ba6f4fdd5b48ce3a52043558a8 (diff) |
Fix example Praefect config file for virtual storage changes
As discussed in https://gitlab.com/gitlab-org/gitaly/issues/2118 and
implemented in
https://gitlab.com/gitlab-org/gitaly/-/merge_requests/1606, Praefect now
supports multiple virtual storages, and the root-level
`virtual_storage_name` is now deprecated.
This change only updates the sample config file to reflect reality.
Diffstat (limited to 'config.praefect.toml.example')
-rw-r--r-- | config.praefect.toml.example | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/config.praefect.toml.example b/config.praefect.toml.example index 10a7c9073..d45978796 100644 --- a/config.praefect.toml.example +++ b/config.praefect.toml.example @@ -1,6 +1,4 @@ # Example Praefect configuration file -virtual_storage_name = "praefect" - # # TCP address to listen on listen_addr = "127.0.0.1:2305" @@ -28,19 +26,21 @@ 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 -[[node]] +[[virtual_storage]] +name = 'praefect' + +[[virtual_storage.node]] storage = "praefect-git-0" address = "tcp://praefect-git-0.internal" primary = true token = 'token1' -[[node]] +[[virtual_storage.node]] storage = "praefect-git-1" address = "tcp://praefect-git-1.internal" token = 'token2' -[[node]] +[[virtual_storage.node]] storage = "praefect-git-2" address = "tcp://praefect-git-2.internal" token = 'token3' - |