aboutsummaryrefslogtreecommitdiff
path: root/weed/server/master_server.go
AgeCommit message (Collapse)AuthorFilesLines
2024-06-14Added context for the MasterClient's methods to avoid endless loops (#5628)vadimartynov1-2/+2
* 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-04-29reduce ambiguity about use memory_sequencer (#5555)shenxingwuying1-1/+3
2024-04-18avoid repeated calls to heavy-weighted viperchrislu1-1/+6
2024-04-18renamechrislu1-10/+10
2023-08-24Implement SRV lookups for filer (#4767)Nico D'Cotta1-1/+1
2023-07-04proxy to master uses http addresschrislu1-1/+1
fix https://github.com/seaweedfs/seaweedfs/issues/4607
2023-03-19avoid lower casing the commandchrislu1-1/+1
fix https://github.com/seaweedfs/seaweedfs/pull/4321
2022-10-06master server graceful stop (#3797)Konstantin Lebedev1-11/+26
2022-08-26avoid race conditions for OnPeerUpdate (#3525)Konstantin Lebedev1-1/+1
https://github.com/seaweedfs/seaweedfs/issues/3524
2022-08-24Add raft server access mutex to avoid races (#3503)Patrick Schmidt1-6/+16
2022-08-23ping timeout at 15 secondschrislu1-1/+1
this 72 minute timeout setting seems unreasonably long 15 seconds is around the time when a new raft leader should be elected.
2022-08-23remove old raft servers if they don't answer to pings for too long (#3398)askeipx1-4/+29
* 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-08-11avoid infinite loop WaitUntilConnected() (#3431)Konstantin Lebedev1-3/+1
https://github.com/seaweedfs/seaweedfs/issues/3421
2022-08-01Merge pull request #3338 from kmlebedev/issues/3083Chris Lu1-50/+12
rollback over onPeerUpdate implementation of automatic clean-up of failed servers in favor of synchronous ping
2022-08-01rollback over onPeerupdate implementation of automatic clean-up of failed ↵Konstantin Lebedev1-98/+12
servers in favor of synchronous ping
2022-07-29move to https://github.com/seaweedfs/seaweedfschrislu1-11/+11
2022-07-28refactorchrislu1-1/+1
2022-07-28add dc and rackchrislu1-1/+1
2022-07-27"github.com/chrislusf/raft" => "github.com/seaweedfs/raft"chrislu1-1/+1
2022-07-26fix RUnlock of unlocked RWMutexKonstantin Lebedev1-1/+0
2022-07-21avoid deadlockKonstantin Lebedev1-2/+10
2022-07-21use safe onPeerUpdateDoneCnsKonstantin Lebedev1-12/+32
2022-07-20onPeerUpdateGoroutineCount use int32Konstantin Lebedev1-4/+4
2022-07-20fix designKonstantin Lebedev1-5/+6
2022-07-20add waiting log messageKonstantin Lebedev1-0/+1
2022-07-20check for ping before deleting raft serverKonstantin Lebedev1-1/+20
https://github.com/chrislusf/seaweedfs/issues/3083
2022-07-19fix typoKonstantin Lebedev1-8/+11
add remove logs
2022-05-30fresh filer store bootstrap from the oldest peerchrislu1-1/+1
2022-05-03fix wrong assignmentchrislu1-1/+2
2022-05-02fix segmentation violationchrislu1-0/+1
fix https://github.com/chrislusf/seaweedfs/issues/3000
2022-05-01filer: add filer groupchrislu1-2/+2
2022-04-07fix master uiKonstantin Lebedev1-23/+30
2022-04-07fix conflictsKonstantin Lebedev1-1/+2
2022-04-07refactor OnPeerUpdateKonstantin Lebedev1-7/+8
2022-04-07fix removing old raft serverKonstantin Lebedev1-15/+34
2022-04-06raft update peers via OnPeerUpdateKonstantin Lebedev1-2/+44
2022-04-04hashicorp raft with state machineKonstantin Lebedev1-10/+32
2022-03-26refactor: change masters from a slice to a mapchrislu1-1/+1
2022-01-24new master metricsKonstantin Lebedev1-0/+2
2022-01-12master: remove hard coded filer settings in master.tomlchrislu1-10/+5
fix https://github.com/chrislusf/seaweedfs/issues/2529
2021-12-20reverting default admin scriptschrislu1-11/+1
fix https://github.com/chrislusf/seaweedfs/issues/2525 this new default value was introduced in 2.80 this affects production environments, e.g., EC is not desired, volume balancing is not preferred, etc.
2021-12-07sleep between the gap of each executionchrislu1-2/+2
related to https://github.com/chrislusf/seaweedfs/issues/2476
2021-12-05upgrade protoc to 3.17.3chrislu1-0/+1
$brew install protobuf $ protoc --version libprotoc 3.17.3 $ go install google.golang.org/protobuf/cmd/protoc-gen-go@v1.26 $ go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@v1.1
2021-11-29add s3.clean.uploads -timeAgo=24hChris Lu1-4/+15
2021-11-08use constantsChris Lu1-1/+1
2021-11-08rename pacakgeChris Lu1-3/+3
2021-11-06send peers info to filersChris Lu1-2/+2
2021-11-05Revert "master: rename grpc function KeepConnected() to ↵Chris Lu1-1/+1
SubscribeVolumeLocationUpdates()" This reverts commit af71ae11aa29350a60ed7d3b9a16276a06ba9dcc.
2021-11-04add leader election in masterChris Lu1-2/+3
2021-11-03master: rename grpc function KeepConnected() to SubscribeVolumeLocationUpdates()Chris Lu1-1/+1