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:
authorSami Hiltunen <shiltunen@gitlab.com>2020-11-10 12:52:31 +0300
committerSami Hiltunen <shiltunen@gitlab.com>2020-11-17 14:12:25 +0300
commit5b408dd150d8b08cac58ccc3af4edce40d6042d4 (patch)
treea7b709435d2fda66dd520c962f07a759652018e1 /config.praefect.toml.example
parent89ab01bfa9f9e669d439b360d5df29528d7cf9c4 (diff)
hook up per repository router and elector
This adds a config option to enable the per repository elector and router. When the `per_repository` elector is configured, the per repository primary elector and router are enabled and node manager is disabled. The node manager is still created and passed as a dependency in Praefect's info and server serivces as they haven't been updated to support repository specific primaries yet. While the configuration option is added, there are still follow ups to address before the components are safe to use in production. For example, creating repositories is not supported yet until a follow up issue is addressed. The changes introduced here are useful for continued local development repository specific primaries and features dependent on them such as the variable replication factor.
Diffstat (limited to 'config.praefect.toml.example')
-rw-r--r--config.praefect.toml.example2
1 files changed, 1 insertions, 1 deletions
diff --git a/config.praefect.toml.example b/config.praefect.toml.example
index 370e1a579..1afb7f890 100644
--- a/config.praefect.toml.example
+++ b/config.praefect.toml.example
@@ -48,7 +48,7 @@ histogram_buckets = [0.005, 0.01, 0.025, 0.05, 0.1, 0.25, 0.5, 1, 2.5, 5, 10]
[failover]
enabled = true
-election_strategy = "sql" # Options: local, sql. Defaults to 'sql'.
+election_strategy = "sql" # Options: local, sql, per_repository. Defaults to 'sql'.
[[virtual_storage]]
name = 'praefect'