Compare commits
2 Commits
6721a69257
...
a491b0107b
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a491b0107b | ||
|
|
5016556dec |
@@ -40,7 +40,7 @@ spec:
|
||||
lifecycle:
|
||||
preStop:
|
||||
exec:
|
||||
command: ["sleep", "5"]
|
||||
command: ["sleep", "15"]
|
||||
ports:
|
||||
- containerPort: 8080
|
||||
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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user