Retry and backoff when lost connection with containerd.

Signed-off-by: Lantao Liu <lantaol@google.com>
This commit is contained in:
Lantao Liu
2017-05-31 21:18:22 +00:00
parent 6e27320f40
commit 0179d0fbaf
7 changed files with 273 additions and 25 deletions

View File

@@ -54,7 +54,7 @@ import (
// CRIContainerdService is the interface implement CRI remote service server.
type CRIContainerdService interface {
Start() error
Start()
runtime.RuntimeServiceServer
runtime.ImageServiceServer
}
@@ -128,6 +128,6 @@ func NewCRIContainerdService(conn *grpc.ClientConn, rootDir, networkPluginBinDir
return c, nil
}
func (c *criContainerdService) Start() error {
return c.startEventMonitor()
func (c *criContainerdService) Start() {
c.startEventMonitor()
}