|
@@ -58,6 +58,7 @@ import (
|
|
|
swarmnode "github.com/docker/swarmkit/node"
|
|
|
"github.com/pkg/errors"
|
|
|
"github.com/sirupsen/logrus"
|
|
|
+ "google.golang.org/grpc"
|
|
|
)
|
|
|
|
|
|
const swarmDirName = "swarm"
|
|
@@ -402,7 +403,10 @@ func (c *Cluster) Cleanup() {
|
|
|
func managerStats(client swarmapi.ControlClient, currentNodeID string) (current bool, reachable int, unreachable int, err error) {
|
|
|
ctx, cancel := context.WithTimeout(context.Background(), 5*time.Second)
|
|
|
defer cancel()
|
|
|
- nodes, err := client.ListNodes(ctx, &swarmapi.ListNodesRequest{})
|
|
|
+ nodes, err := client.ListNodes(
|
|
|
+ ctx, &swarmapi.ListNodesRequest{},
|
|
|
+ grpc.MaxCallRecvMsgSize(defaultRecvSizeForListResponse),
|
|
|
+ )
|
|
|
if err != nil {
|
|
|
return false, 0, 0, err
|
|
|
}
|