-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathpgdog.toml
77 lines (65 loc) · 1.4 KB
/
pgdog.toml
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
#
# minimal pgDog configuration for a single user, single
# primary database running on the same host.
#
[general]
host = "0.0.0.0"
port = 6432
shutdown_timeout = 5_000
# query_log = "queries.txt"
# broadcast_address = "224.0.0.1"
# broadcast_port = 6435
#
# Admin database password.
#
[admin]
password = "pgdog"
#
# Simple database.
#
[[databases]]
name = "pgdog"
host = "127.0.0.1"
#
# Sharded cluster with two primaries.
#
[[databases]]
name = "pgdog_sharded"
host = "127.0.0.1"
database_name = "shard_0"
shard = 0
[[databases]]
name = "pgdog_sharded"
host = "127.0.0.1"
database_name = "shard_1"
shard = 1
#
# Read/write access to theses tables will be automatically
# sharded.
#
[[sharded_tables]]
database = "pgdog_sharded"
table = "sharded"
column = "id"
[[sharded_tables]]
database = "pgdog_sharded"
table = "users"
column = "id"
primary = true
#
# ActiveRecord sends these queries
# at startup to figure out the schema.
#
# This will route them to only one shard instead of issuing
# cross-shard queries and getting incorrect results.
#
[[manual_queries]]
fingerprint = "e78fe2c08de5f079" #[16685804461073231993]
[[manual_queries]]
fingerprint = "43258d068030bb3e" #[4838428433739463486]
[[manual_queries]]
fingerprint = "08aab2cee482a97d" #[624508100011010429]
[[manual_queries]]
fingerprint = "23cd60d5972d1712" #[2579824632033777426]
[[manual_queries]]
fingerprint = "bb38525ebeb46656" #[13490623250668217942]