@@ -20,10 +20,11 @@ const InitModeNew = "new"
20
20
const InitModeExisting = "existing"
21
21
22
22
type Config struct {
23
- InitMode string `json:"initMode"`
24
- ExistingConfig map [string ]string `json:"existingConfig"`
25
- PGParameters map [string ]string `json:"pgParameters"`
26
- MaxStandbysPerSender int `json:"maxStandbysPerSender"`
23
+ InitMode string `json:"initMode"`
24
+ ExistingConfig map [string ]string `json:"existingConfig"`
25
+ PGParameters map [string ]string `json:"pgParameters"`
26
+ MaxStandbysPerSender int `json:"maxStandbysPerSender"`
27
+ DeadKeeperRemovalInterval string `json:"deadKeeperRemovalInterval"`
27
28
}
28
29
29
30
type KeeperState struct {
@@ -90,9 +91,10 @@ func InitConfig(filename string) (*Config, error) {
90
91
}
91
92
92
93
cfg = Config {
93
- InitMode : initMode ,
94
- ExistingConfig : existingConfig ,
95
- MaxStandbysPerSender : 50 ,
94
+ InitMode : initMode ,
95
+ ExistingConfig : existingConfig ,
96
+ MaxStandbysPerSender : 50 ,
97
+ DeadKeeperRemovalInterval : "1h" ,
96
98
PGParameters : map [string ]string {
97
99
"random_page_cost" : "1.1" ,
98
100
"effective_io_concurrency" : "200" ,
0 commit comments