aboutsummaryrefslogtreecommitdiff
path: root/weed/shell/command_cluster_check.go
AgeCommit message (Collapse)AuthorFilesLines
2024-12-10[shell] use constant for hdd of type (#6337)Konstantin Lebedev1-1/+2
use constant for hdd of type
2024-09-29refactorchrislu1-1/+1
2024-09-28add IsResourceHeavy() to command interfacechrislu1-0/+4
2024-06-14Added context for the MasterClient's methods to avoid endless loops (#5628)vadimartynov1-1/+1
* Added context for the MasterClient's methods to avoid endless loops * Returned WithClient function. Added WithClientCustomGetMaster function * Hid unused ctx arguments * Using a common context for the KeepConnectedToMaster and WaitUntilConnected functions * Changed the context termination check in the tryConnectToMaster function * Added a child context to the tryConnectToMaster function * Added a common context for KeepConnectedToMaster and WaitUntilConnected functions in benchmark
2024-01-29weed/shell: Cluster check other disk types (#5245)Benoît Knecht1-9/+20
* week/shell: Cluster check other disk types The `cluster.check` command only took the empty (`""`) and `hdd` disk types into consideration, but a cluster with only `ssd` or `nvme` disk types would be equally valid. This commit simply checks that _any_ disk type is defined, and that some volumes are available for it. Signed-off-by: Benoît Knecht <bknecht@protonmail.ch> * weed/shell: Replace loop that copies slice Use the following construct instead of a `for` loop: ```golang x = append(x, y...) ``` See https://staticcheck.dev/docs/checks#S1011. Signed-off-by: Benoît Knecht <bknecht@protonmail.ch> * weed/shell: Check disk types when filer is in use Filer stores its metadata logs in generic (i.e. `""`) or HDD disk type volumes, so make sure those disk types exist and have volumes associated with them when Filer is deployed in the cluster. Signed-off-by: Benoît Knecht <bknecht@protonmail.ch> --------- Signed-off-by: Benoît Knecht <bknecht@protonmail.ch>
2023-01-20grpc connection to filer add sw-client-id headerchrislu1-3/+3
2022-08-23remove old raft servers if they don't answer to pings for too long (#3398)askeipx1-3/+4
* remove old raft servers if they don't answer to pings for too long add ping durations as options rename ping fields fix some todos get masters through masterclient raft remove server from leader use raft servers to ping them CheckMastersAlive for hashicorp raft only * prepare blocking ping * pass waitForReady as param * pass waitForReady through all functions * waitForReady works * refactor * remove unneeded params * rollback unneeded changes * fix
2022-07-29move to https://github.com/seaweedfs/seaweedfschrislu1-5/+5
2022-05-31fix error reporting for "Need to a hdd disk type"chrislu1-1/+1
related to https://github.com/chrislusf/seaweedfs/issues/3128
2022-05-01filer: add filer groupchrislu1-0/+1
2022-04-16shell: cluster.check prints out clock delta and network latencychrislu1-30/+42
2022-04-12fix nil in cluster_check shell commandchrislu1-1/+4
fix https://github.com/chrislusf/seaweedfs/issues/2905
2022-04-04check missing hdd disk typechrislu1-0/+13
2022-04-01skip pinging self for master and volume serverchrislu1-4/+7
2022-04-01add check between peerschrislu1-0/+60
2022-04-01check cluster connectivitieschrislu1-0/+157