blob: 839b807b060e8a414bedcadac80bb3b40a216248 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
|
listen_addr = ""
tls_listen_addr = "0.0.0.0:2306"
socket_path = ""
prometheus_listen_addr = ""
memory_queue_enabled = true
graceful_stop_timeout = "30s"
[replication]
batch_size = 1
parallel_storage_processing_workers = 2
[reconciliation]
scheduling_interval = "1m"
histogram_buckets = [1.0, 2.0, 3.0, 4.0, 5.0]
[tls]
certificate_path = '/home/git/cert.cert'
key_path = '/home/git/key.pem'
[logging]
format = "json"
level = "info"
[sentry]
sentry_environment = "production"
sentry_dsn = "abcd123"
[[virtual_storage]]
name = "praefect"
default_replication_factor = 2
[[virtual_storage.node]]
address = "tcp://gitaly-internal-1.example.com"
storage = "praefect-internal-1"
[[virtual_storage.node]]
address = "tcp://gitaly-internal-2.example.com"
storage = "praefect-internal-2"
[[virtual_storage.node]]
address = "tcp://gitaly-internal-3.example.com"
storage = "praefect-internal-3"
[prometheus]
scrape_timeout = "1s"
grpc_latency_buckets = [0.1, 0.2, 0.3]
[database]
host = "1.2.3.4"
port = 5432
user = "praefect"
password = "db-secret"
dbname = "praefect_production"
sslmode = "require"
sslcert = "/path/to/cert"
sslkey = "/path/to/key"
sslrootcert = "/path/to/root-cert"
[database.session_pooled]
host = "2.3.4.5"
port = 6432
user = "praefect_sp"
password = "db-secret-sp"
dbname = "praefect_production_sp"
sslmode = "prefer"
sslcert = "/path/to/sp/cert"
sslkey = "/path/to/sp/key"
sslrootcert = "/path/to/sp/root-cert"
[failover]
error_threshold_window = "20s"
write_error_threshold_count = 1500
read_error_threshold_count = 100
[repositories_cleanup]
check_interval = "1s"
run_interval = "3s"
repositories_in_batch = 10
|