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:
authorZeger-Jan van de Weg <git@zjvandeweg.nl>2019-01-31 15:06:13 +0300
committerZeger-Jan van de Weg <git@zjvandeweg.nl>2019-02-22 10:56:43 +0300
commit50724f02aea2e4f83a4c8f7f428e6eddf59a50bb (patch)
treef20df576a5b641bfe2223699844e28781082968c /config.praefect.toml.example
parent55e68d94f48a38daaa1d74d86552849ff8404d68 (diff)
Create Praefect command
By introducting a new command, the pass through proxy gets an execution path. To allow for manual testing, but also for, probably more important; getting started with integrating into the GitLab architecture. For logging we default to logrus, but these aren't structured yet. Which should be improved later. Config is added too, by parsing a TOML file. The path to this file is passed as first argument to the praefect binary. The output is JSON by default and not yet configurable. OS signals are handled too, and allow for a Shutdown of the server. The basic observability was added too, but on the proxy layer this will not yield too much, other than tracing.
Diffstat (limited to 'config.praefect.toml.example')
-rw-r--r--config.praefect.toml.example13
1 files changed, 13 insertions, 0 deletions
diff --git a/config.praefect.toml.example b/config.praefect.toml.example
new file mode 100644
index 000000000..5b0ba08ed
--- /dev/null
+++ b/config.praefect.toml.example
@@ -0,0 +1,13 @@
+# Example Praefect configuration file
+
+# # TCP address to listen on
+listen_addr = "127.0.0.1:2305"
+# socket_path = "/home/git/gitlab/tmp/sockets/private/praefect.socket"
+
+# # One or more Gitaly servers need to be configured to be managed. The names
+# of each server are used to link multiple nodes, or `gitaly_server`s together
+# as shard. listen_addr should be unique for all nodes.
+# Requires the protocol to be defined, e.g. tcp://host.tld:1234
+[[gitaly_server]]
+name = "default"
+listen_addr = "tcp://localhost:9999"