Skip to content

Commit

Permalink
Lower default dead keeper removal interval to 1 hour (#84)
Browse files Browse the repository at this point in the history
  • Loading branch information
davissp14 authored Oct 3, 2022
1 parent 9cc6dff commit 79cd28e
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions pkg/flypg/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,11 @@ const InitModeNew = "new"
const InitModeExisting = "existing"

type Config struct {
InitMode string `json:"initMode"`
ExistingConfig map[string]string `json:"existingConfig"`
PGParameters map[string]string `json:"pgParameters"`
MaxStandbysPerSender int `json:"maxStandbysPerSender"`
InitMode string `json:"initMode"`
ExistingConfig map[string]string `json:"existingConfig"`
PGParameters map[string]string `json:"pgParameters"`
MaxStandbysPerSender int `json:"maxStandbysPerSender"`
DeadKeeperRemovalInterval string `json:"deadKeeperRemovalInterval"`
}

type KeeperState struct {
Expand Down Expand Up @@ -90,9 +91,10 @@ func InitConfig(filename string) (*Config, error) {
}

cfg = Config{
InitMode: initMode,
ExistingConfig: existingConfig,
MaxStandbysPerSender: 50,
InitMode: initMode,
ExistingConfig: existingConfig,
MaxStandbysPerSender: 50,
DeadKeeperRemovalInterval: "1h",
PGParameters: map[string]string{
"random_page_cost": "1.1",
"effective_io_concurrency": "200",
Expand Down

0 comments on commit 79cd28e

Please sign in to comment.