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
add cluster id if already set
Chris Lu44d0ac95f6a0
diff --git a/weed/shell/shell_liner.go b/weed/shell/shell_liner.goindex 765b0efda9..64c8094fe1 100644--- a/weed/shell/shell_liner.go+++ b/weed/shell/shell_liner.go@@ -1,7 +1,9 @@package shellimport (+ "context""fmt"+ "github.com/chrislusf/seaweedfs/weed/pb/filer_pb""github.com/chrislusf/seaweedfs/weed/util/grace""io""os"@@ -45,6 +47,24 @@ func RunShell(options ShellOptions) {go commandEnv.MasterClient.KeepConnectedToMaster()commandEnv.MasterClient.WaitUntilConnected()+ if commandEnv.option.FilerAddress != "" {+ commandEnv.WithFilerClient(func(filerClient filer_pb.SeaweedFilerClient) error {+ resp, err := filerClient.GetFilerConfiguration(context.Background(), &filer_pb.GetFilerConfigurationRequest{})+ if err != nil {+ return err+ }+ if resp.ClusterId != "" {+ fmt.Printf(`+---+Free Monitoring Data URL:+https://cloud.seaweedfs.com/ui/%s+---+`, resp.ClusterId)+ }+ return nil+ })+ }+for {cmd, err := line.Prompt("> ")if err != nil {