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
skip pinging self for master and volume server
chrislu105578a2f242
diff --git a/weed/shell/command_cluster_check.go b/weed/shell/command_cluster_check.goindex 3899cdc9a4..a050c3f120 100644--- a/weed/shell/command_cluster_check.go+++ b/weed/shell/command_cluster_check.go@@ -99,6 +99,9 @@ func (c *commandClusterCheck) Do(args []string, commandEnv *CommandEnv, writer i// check between mastersfor _, sourceMaster := range masters {for _, targetMaster := range masters {+ if sourceMaster == targetMaster {+ continue+ }fmt.Fprintf(writer, "checking master %s to %s ... ", string(sourceMaster), string(targetMaster))err := pb.WithMasterClient(false, sourceMaster, commandEnv.option.GrpcDialOption, func(client master_pb.SeaweedClient) error {_, err := client.Ping(context.Background(), &master_pb.PingRequest{@@ -175,6 +178,9 @@ func (c *commandClusterCheck) Do(args []string, commandEnv *CommandEnv, writer i// check between volume serversfor _, sourceVolumeServer := range volumeServers {for _, targetVolumeServer := range volumeServers {+ if sourceVolumeServer == targetVolumeServer {+ continue+ }fmt.Fprintf(writer, "checking volume server %s to %s ... ", string(sourceVolumeServer), string(targetVolumeServer))err := pb.WithVolumeServerClient(false, sourceVolumeServer, commandEnv.option.GrpcDialOption, func(client volume_server_pb.VolumeServerClient) error {_, err := client.Ping(context.Background(), &volume_server_pb.PingRequest{@@ -191,12 +197,9 @@ func (c *commandClusterCheck) Do(args []string, commandEnv *CommandEnv, writer i}}- // check between filers+ // check between filers, and need to connect to itselffor _, sourceFiler := range filers {for _, targetFiler := range filers {- if sourceFiler == targetFiler {- continue- }fmt.Fprintf(writer, "checking filer %s to %s ... ", string(sourceFiler), string(targetFiler))err := pb.WithFilerClient(false, sourceFiler, commandEnv.option.GrpcDialOption, func(client filer_pb.SeaweedFilerClient) error {_, err := client.Ping(context.Background(), &filer_pb.PingRequest{