Konstantin Lebedev
01996bccf8
Use fallback if urls are not found
2 years ago
石昌林
200a862701
fixed `volume xx not found` caused by missing VolumeLocation events
When the requested master node is the leader, `VolumeLocation` or `ClusterNodeUpdate` may be returned here. If it is `VolumeLocation`, the update will be performed while resetting the vidMap, otherwise the event will be lost
3 years ago
Konstantin Lebedev
9bff097b01
currentMaster redirected
3 years ago
Konstantin Lebedev
6c20a3b622
avoid set currentMaster k8s svc.local discoveruy service domains
https://github.com/chrislusf/seaweedfs/issues/2589
3 years ago
chrislu
3ce46c3566
fix entry full url lookup
3 years ago
石昌林
f1ea906c13
Code comment optimization
3 years ago
石昌林
0c8e033e68
When the connection with the leader is disconnected, the vidMap should not be reset immediately, but should be reset after connecting to a new leader
3 years ago
chrislu
9c517d2b35
masterclient: fallback to directly querying master in case of missing volume id location
3 years ago
ningfd
338705f375
fix(wdclient): GetLocations return
3 years ago
chrislu
6adc42147f
fresh filer store bootstrap from the oldest peer
3 years ago
chrislu
94635e9b5c
filer: add filer group
3 years ago
chrislu
bc888226fc
erasure coding: tracking encoded/decoded volumes
If an EC shard is created but not spread to other servers, the masterclient would think this shard is not located here.
3 years ago
chrislu
4b5c0e3fa9
check cluster connectivities
3 years ago
chrislu
21e0898631
refactor: change masters from a slice to a map
3 years ago
chrislu
433fde4b18
move error to a separate file
This file contains metric names for all errors
The naming convention is ErrorSomeThing = "error.some.thing"
3 years ago
Konstantin Lebedev
28efe31524
new master metrics
3 years ago
chrislu
9f9ef1340c
use streaming mode for long poll grpc calls
streaming mode would create separate grpc connections for each call.
this is to ensure the long poll connections are properly closed.
3 years ago
chrislu
a2d3f89c7b
add lock messages
3 years ago
Chris Lu
3d87aa767d
fix same dc and other dc
3 years ago
Chris Lu
7bf891c00a
randomize same-dc servers and other-dc servers
3 years ago
Chris Lu
e0fc2898e9
auto updated filer peer list
3 years ago
Chris Lu
330d1fde7f
send peers info to filers
3 years ago
Chris Lu
84bb8e7365
send peers info to filers
3 years ago
Chris Lu
4b9c42996a
refactor grpc API
3 years ago
Chris Lu
5ea86ef1da
Revert "master: rename grpc function KeepConnected() to SubscribeVolumeLocationUpdates()"
This reverts commit af71ae11aa
.
3 years ago
Chris Lu
af71ae11aa
master: rename grpc function KeepConnected() to SubscribeVolumeLocationUpdates()
3 years ago
Chris Lu
e66865a8c5
adjust master client log level
3 years ago
Chris Lu
5160eb08f7
shell: optionally read filer address from master
3 years ago
Chris Lu
ad5099e570
refactor
3 years ago
Chris Lu
e5fc35ed0c
change server address from string to a type
3 years ago
Chris Lu
574485ec69
better IP v6 support
3 years ago
Chris Lu
44b50b2fdf
another fix related to 64 bit alignment
fix https://github.com/chrislusf/seaweedfs/issues/2177
4 years ago
Chris Lu
e8b7d4ad64
simplify a bit
4 years ago
Chris Lu
0b00edfc3b
waits in case master lost connection
4 years ago
Chris Lu
f0ad172e80
shell: show which server holds the lock
fix https://github.com/chrislusf/seaweedfs/issues/1983
4 years ago
Chris Lu
35d939a1d2
go fmt
4 years ago
Chris Lu
1bd880dcdb
adds tcp writes benchmark
4 years ago
Chris Lu
1444e9d275
migrated multi host connection pool from godropbox package
removing unneeded dependencies, which involved etcd versions.
4 years ago
Chris Lu
2b76854641
add "weed filer.cat" to read files directly from volume servers
4 years ago
Konstantin Lebedev
1eec5c8d5d
gen pb
4 years ago
Konstantin Lebedev
fc7baef5bb
fiil serverUrls sorted by data center
4 years ago
Konstantin Lebedev
dc26012a3b
initial
4 years ago
Chris Lu
8750cac090
move to util.RetryWaitTime
4 years ago
Chris Lu
ef908e166b
break import cycle
4 years ago
Chris Lu
7192a378cc
add retry to master clients also
4 years ago
Chris Lu
ee1fc6558a
refactor
4 years ago
Chris Lu
a8624c2e4f
read from alternative replica
related to https://github.com/chrislusf/seaweedfs/issues/1512
4 years ago
Chris Lu
da4edf3651
master: check peers for existing leader before starting a leader election
fix https://github.com/chrislusf/seaweedfs/issues/1509
4 years ago
Chris Lu
eaf9fdde99
avoid sharing context over separate goroutine
4 years ago
Chris Lu
daf0a449f7
properly cancel context for streaming grpc
4 years ago