Compare commits
2 Commits
6721a69257
...
a491b0107b
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a491b0107b | ||
|
|
5016556dec |
@@ -40,7 +40,7 @@ spec:
|
|||||||
lifecycle:
|
lifecycle:
|
||||||
preStop:
|
preStop:
|
||||||
exec:
|
exec:
|
||||||
command: ["sleep", "5"]
|
command: ["sleep", "15"]
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 8080
|
- containerPort: 8080
|
||||||
name: web
|
name: web
|
||||||
|
|||||||
@@ -414,14 +414,6 @@ func (p *SyncedPool) AddRemote(host string) error {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}()
|
}()
|
||||||
go func() {
|
|
||||||
for range client.Errors {
|
|
||||||
if client.ErrorCount > 3 {
|
|
||||||
log.Printf("Error count exceeded, removing remote %s", host)
|
|
||||||
p.RemoveHost(&remote)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}()
|
|
||||||
|
|
||||||
return p.addRemoteHost(host, &remote)
|
return p.addRemoteHost(host, &remote)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user