allow configuring signal message buffer size (#1504)

* allow configuring signal message buffer size

* update psrpc
This commit is contained in:
Paul Wells
2023-03-08 17:34:14 -08:00
committed by GitHub
parent 2c93d55e5c
commit 54bf7e0dac
5 changed files with 46 additions and 37 deletions
+10 -8
View File
@@ -229,10 +229,11 @@ type NodeSelectorConfig struct {
}
type SignalRelayConfig struct {
Enabled bool `yaml:"enabled"`
MaxAttempts int `yaml:"max_attempts"`
Timeout time.Duration `yaml:"timeout"`
Backoff time.Duration `yaml:"backoff"`
Enabled bool `yaml:"enabled"`
MaxAttempts int `yaml:"max_attempts"`
Timeout time.Duration `yaml:"timeout"`
Backoff time.Duration `yaml:"backoff"`
StreamBufferSize int `yaml:"stream_buffer_size"`
}
// RegionConfig lists available regions and their latitude/longitude, so the selector would prefer
@@ -405,10 +406,11 @@ func NewConfig(confString string, strictMode bool, c *cli.Context, baseFlags []c
CPULoadLimit: 0.9,
},
SignalRelay: SignalRelayConfig{
Enabled: false,
MaxAttempts: 3,
Timeout: 500 * time.Millisecond,
Backoff: 500 * time.Millisecond,
Enabled: false,
MaxAttempts: 3,
Timeout: 500 * time.Millisecond,
Backoff: 500 * time.Millisecond,
StreamBufferSize: 1000,
},
Keys: map[string]string{},
}