SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.
Go blob-storagecloud-drivedistributed-file-systemdistributed-storageerasure-codingfusehadoop-hdfshdfskuberneteslancelancedbobject-storageposixs3s3-storageseaweedfstiered-file-systemvector-search
Fix: relax gRPC server keepalive enforcement to 20s (#7898)
Chris Lu56ebd9236e93
diff --git a/weed/pb/grpc_client_server.go b/weed/pb/grpc_client_server.goindex 32572d1f24..3460339caf 100644--- a/weed/pb/grpc_client_server.go+++ b/weed/pb/grpc_client_server.go@@ -33,8 +33,9 @@ const (Max_Message_Size = 1 << 30 // 1 GB// gRPC keepalive settings - must be consistent between client and server- GrpcKeepAliveTime = 60 * time.Second // ping interval when no activity- GrpcKeepAliveTimeout = 20 * time.Second // ping timeout+ GrpcKeepAliveTime = 60 * time.Second // ping interval when no activity+ GrpcKeepAliveTimeout = 20 * time.Second // ping timeout+ GrpcKeepAliveMinimumTime = 20 * time.Second // minimum interval between client pings (enforcement))var (@@ -62,7 +63,7 @@ func NewGrpcServer(opts ...grpc.ServerOption) *grpc.Server {Timeout: GrpcKeepAliveTimeout, // ping timeout}),grpc.KeepaliveEnforcementPolicy(keepalive.EnforcementPolicy{- MinTime: GrpcKeepAliveTime, // min time a client should wait before sending a ping+ MinTime: GrpcKeepAliveMinimumTime, // min time a client should wait before sending a pingPermitWithoutStream: true,}),grpc.MaxRecvMsgSize(Max_Message_Size),