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
close the grpc connection after 10 hours
Chris Lu15c60cbb2660
diff --git a/weed/pb/grpc_client_server.go b/weed/pb/grpc_client_server.goindex 4d78d769fe..9ffda9b04d 100644--- a/weed/pb/grpc_client_server.go+++ b/weed/pb/grpc_client_server.go@@ -35,8 +35,9 @@ func NewGrpcServer(opts ...grpc.ServerOption) *grpc.Server {var options []grpc.ServerOptionoptions = append(options,grpc.KeepaliveParams(keepalive.ServerParameters{- Time: 10 * time.Second, // wait time before ping if no activity- Timeout: 20 * time.Second, // ping timeout+ Time: 10 * time.Second, // wait time before ping if no activity+ Timeout: 20 * time.Second, // ping timeout+ MaxConnectionAge: 10 * time.Hour,}),grpc.KeepaliveEnforcementPolicy(keepalive.EnforcementPolicy{MinTime: 60 * time.Second, // min time a client should wait before sending a ping