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
filer: support larger file size
Chris Lu5a5908407d74
diff --git a/weed/pb/grpc_client_server.go b/weed/pb/grpc_client_server.goindex 4b5f9eff38..8960a333c7 100644--- a/weed/pb/grpc_client_server.go+++ b/weed/pb/grpc_client_server.go@@ -16,6 +16,10 @@ import ("github.com/chrislusf/seaweedfs/weed/pb/master_pb")+const (+ Max_Message_Size = 1 << 30 // 1 GB+)+var (// cache grpc connectionsgrpcClients = make(map[string]*grpc.ClientConn)@@ -28,13 +32,18 @@ func init() {func NewGrpcServer(opts ...grpc.ServerOption) *grpc.Server {var options []grpc.ServerOption- options = append(options, grpc.KeepaliveParams(keepalive.ServerParameters{- Time: 10 * time.Second, // wait time before ping if no activity- Timeout: 20 * time.Second, // ping timeout- }), grpc.KeepaliveEnforcementPolicy(keepalive.EnforcementPolicy{- MinTime: 60 * time.Second, // min time a client should wait before sending a ping- PermitWithoutStream: true,- }))+ options = append(options,+ grpc.KeepaliveParams(keepalive.ServerParameters{+ Time: 10 * time.Second, // wait time before ping if no activity+ Timeout: 20 * time.Second, // ping timeout+ }),+ grpc.KeepaliveEnforcementPolicy(keepalive.EnforcementPolicy{+ MinTime: 60 * time.Second, // min time a client should wait before sending a ping+ PermitWithoutStream: true,+ }),+ grpc.MaxRecvMsgSize(Max_Message_Size),+ grpc.MaxSendMsgSize(Max_Message_Size),+ )for _, opt := range opts {if opt != nil {options = append(options, opt)@@ -49,6 +58,10 @@ func GrpcDial(ctx context.Context, address string, opts ...grpc.DialOption) (*grvar options []grpc.DialOptionoptions = append(options,// grpc.WithInsecure(),+ grpc.WithDefaultCallOptions(+ grpc.MaxCallSendMsgSize(Max_Message_Size),+ grpc.MaxCallRecvMsgSize(Max_Message_Size),+ ),grpc.WithKeepaliveParams(keepalive.ClientParameters{Time: 30 * time.Second, // client ping server if no activity for this longTimeout: 20 * time.Second,