forked from TrueCloudLab/frostfs-http-gw
[#184] Add config param for pool error threshold
Signed-off-by: Denis Kirillov <denis@nspcc.ru>
This commit is contained in:
parent
af732d294c
commit
0f7737088d
5 changed files with 27 additions and 15 deletions
1
app.go
1
app.go
|
@ -114,6 +114,7 @@ func newApp(ctx context.Context, opt ...Option) App {
|
|||
prm.SetNodeDialTimeout(a.cfg.GetDuration(cfgConTimeout))
|
||||
prm.SetHealthcheckTimeout(a.cfg.GetDuration(cfgReqTimeout))
|
||||
prm.SetClientRebalanceInterval(a.cfg.GetDuration(cfgRebalance))
|
||||
prm.SetErrorThreshold(a.cfg.GetUint32(cfgPoolErrorThreshold))
|
||||
|
||||
for i := 0; ; i++ {
|
||||
address := a.cfg.GetString(cfgPeers + "." + strconv.Itoa(i) + ".address")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue