1
1
# Example Gitaly configuration file
2
+ # Documentation lives at https://docs.gitlab.com/ee/administration/gitaly/ and
3
+ # https://docs.gitlab.com/ee//administration/gitaly/reference
2
4
3
5
socket_path = " {{GITALY_SOCKET_PATH}}"
4
6
7
+ # The directory where Gitaly's executables are stored
8
+ bin_dir = " /usr/local/bin/"
9
+
5
10
# # Optional: listen on a TCP socket. This is insecure (no authentication)
6
11
# listen_addr = "localhost:9999"
7
- #
12
+ # tls_listen_addr = "localhost:8888
8
13
9
14
# # Optional: export metrics via Prometheus
10
15
# prometheus_listen_addr = "localhost:9236"
11
- #
12
16
13
- # # Git executable settings
17
+ # # Optional: configure where the Gitaly creates the sockets for internal connections. If unset, Gitaly will create a randomly
18
+ # # named temp directory each time it boots.
19
+ # # Non Gitaly clients should never connect to these sockets.
20
+ # internal_socket_dir = "/home/git/gitlab/tmp/sockets/private/internal"
21
+
22
+ # # Optional: authenticate Gitaly requests using a shared secret
23
+ # [auth]
24
+ # token = 'abc123secret'
25
+ # transitioning = false # Set `transitioning` to true to temporarily allow unauthenticated while rolling out authentication.
26
+
27
+ # [tls]
28
+ # certificate_path = '/home/git/cert.cert'
29
+ # key_path = '/home/git/key.pem'
30
+
31
+ # # Git settings
14
32
# [git]
15
33
# bin_path = "/usr/bin/git"
34
+ # catfile_cache_size = 100
16
35
17
36
[[storage ]]
18
37
name = " default"
@@ -27,31 +46,46 @@ path = "{{GITLAB_REPOS_DIR}}"
27
46
28
47
# # You can optionally configure Gitaly to output JSON-formatted log messages to stdout
29
48
# [logging]
49
+ # # The directory where Gitaly stores extra log files
50
+ dir = " {{GITLAB_LOG_DIR}}"
30
51
# format = "json"
31
- # # Additionally exceptions can be reported to Sentry
52
+ # # Optional: Set log level to only log entries with that severity or above
53
+ # # One of, in order: debug, info, warn, errror, fatal, panic
54
+ # # Defaults to "info"
55
+ # level = "warn"
56
+ #
57
+ # # Additionally exceptions from the Go server can be reported to Sentry
32
58
# sentry_dsn = "https://<key>:<secret>@sentry.io/<project>"
59
+ # # Exceptions from gitaly-ruby can also be reported to Sentry
60
+ # ruby_sentry_dsn = "https://<key>:<secret>@sentry.io/<project>"
33
61
34
62
# # You can optionally configure Gitaly to record histogram latencies on GRPC method calls
35
63
# [prometheus]
36
64
# grpc_latency_buckets = [0.001, 0.005, 0.025, 0.1, 0.5, 1.0, 10.0, 30.0, 60.0, 300.0, 1500.0]
37
65
38
66
[gitaly-ruby ]
39
67
# The directory where gitaly-ruby is installed
40
- dir = " /home/git/gitaly /ruby"
68
+ dir = " {{GITLAB_GITALY_INSTALL_DIR}} /ruby"
41
69
42
70
# # Gitaly-ruby resident set size (RSS) that triggers a memory restart (bytes)
43
- # max_rss = 300000000
44
- #
71
+ # max_rss = 200000000
72
+ #
45
73
# # Grace period before a gitaly-ruby process is forcibly terminated after exceeding max_rss (seconds)
46
74
# graceful_restart_timeout = "10m"
47
- #
75
+ #
48
76
# # Time that gitaly-ruby memory must remain high before a restart (seconds)
49
77
# restart_delay = "5m"
50
-
78
+ #
79
+ # # Number of gitaly-ruby worker processes
80
+ # num_workers = 2
81
+ #
82
+ # # Search path for system gitconfig file (e.g. /etc, /opt/gitlab/embedded/etc)
83
+ # # NOTE: This only affects RPCs that use Rugged.
84
+ # rugged_git_config_search_path = "/etc"
51
85
52
86
[gitlab-shell ]
53
87
# The directory where gitlab-shell is installed
54
- dir = " /home/git/gitlab-shell "
88
+ dir = " {{GITLAB_SHELL_INSTALL_DIR}} "
55
89
56
90
# # You can adjust the concurrency of each RPC endpoint
57
91
# [[concurrency]]
0 commit comments