chrislu
31b2751aff
clone volume locations in case they are changed
fix https://github.com/seaweedfs/seaweedfs/issues/4642
1 year ago
LHHDZ
bc629665de
fix bug due to data racing on VidMap ( #3606 )
2 years ago
chrislu
cb476a53ff
remove logs
2 years ago
Konstantin Lebedev
4d08393b7c
filer prefer volume server in same data center ( #3405 )
* initial prefer same data center
https://github.com/seaweedfs/seaweedfs/issues/3404
* GetDataCenter
* prefer same data center for ReplicationSource
* GetDataCenterId
* remove glog
2 years ago
chrislu
26dbc6c905
move to https://github.com/seaweedfs/seaweedfs
2 years ago
LHHDZ
58c02d6429
Solve the problem that `LookupFileId` lookup urls is empty due to leader switching
The vidMap structure is modified to a linked list structure (the length is limited to 5). When the vidMap is reset, the current vidMap is added to the new vidMap as a cache node. When the query locations is empty, the cache node is searched to avoid problems when the master switches leaders.
2 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
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
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
e5fc35ed0c
change server address from string to a type
3 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
a8624c2e4f
read from alternative replica
related to https://github.com/chrislusf/seaweedfs/issues/1512
4 years ago
Chris Lu
ad3efbb197
tweaking data types
5 years ago
divinerapier
bb31462b52
fix: thread unsafe
Signed-off-by: divinerapier <poriter.coco@gmail.com>
5 years ago
j.laycock
6fc6322c90
Change joeslay paths to chrislusf paths
5 years ago
j.laycock
595a1beff0
Swap imports to use joeslay
5 years ago
Chris Lu
8afd8d35b3
master: followers can also lookup and redirect
improve scalability
5 years ago
Chris Lu
92c7f7e069
fix compilation error
6 years ago
Chris Lu
9f3f2f7c79
protect locations slice
fix https://github.com/chrislusf/seaweedfs/issues/995
6 years ago
Chris Lu
5c411f3e5f
minor
6 years ago
Chris Lu
5ae4b963a4
avoid using global rand
6 years ago
Chris Lu
b282e34dc2
async file chunk deletion
6 years ago
Chris Lu
91ac2e0dd9
go fmt
6 years ago
Chris Lu
ff66269b62
use grpc to replace http APIs for batch volume id lookup and batch delete
1. remove batch volume id lookup http API /vol/lookup
2. remove batch delete http API /delete
6 years ago
Chris Lu
d3205a0070
go fmt
6 years ago
Chris Lu
7214a8e265
fix init error
6 years ago
Chris Lu
cfbfc7cb67
fix compilation error
6 years ago
Chris Lu
888eb2abb5
filer read write all via locations from MasterClient
6 years ago
Chris Lu
1d779389cb
MasterClient replicates all vid locations
6 years ago