vadimartynov
8aae82dd71
Added context for the MasterClient's methods to avoid endless loops ( #5628 )
* 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
6 months ago
chrislu
26dbc6c905
move to https://github.com/seaweedfs/seaweedfs
2 years ago
ningfd
58f2dd6740
change topology mapping definition, improve spelling
2 years ago
chrislu
0c13fc873c
fix compilation
3 years ago
Konstantin Lebedev
1e35b4929f
shell vacuum volume by collection and volume id
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
Chris Lu
96119eab00
refactor
3 years ago
Chris Lu
e5fc35ed0c
change server address from string to a type
3 years ago
Chris Lu
1154e23e2d
add logs for volume creation
3 years ago
qieqieplus
c4d32f6937
ahead of time volume assignment
4 years ago
Chris Lu
3575d41009
go fmt
4 years ago
Chris Lu
6daa932f5c
refactoring to get master function, instead of passing master values directly
this will enable retrying later
4 years ago
Chris Lu
f8446b42ab
this can compile now!!!
4 years ago
Chris Lu
4bd8a692d8
disk type can be generic tags
4 years ago
Chris Lu
f696a2b2a7
assign volumes based on disk type
4 years ago
Chris Lu
1bf22c0b5b
go fmt
4 years ago
Chris Lu
a9db24cd05
master allocate volumes if ssd type runs out
4 years ago
Chris Lu
8baba93fce
rename parameter name to "disk"
4 years ago
Chris Lu
0d2ec832e2
rename from volumeType to diskType
4 years ago
Chris Lu
e9cd798bd3
adding volume type
4 years ago
Chris Lu
b183ae54b5
master: changing 301 to 308 on redirect to volume servers
fix https://github.com/chrislusf/seaweedfs/issues/1454
4 years ago
Chris Lu
bc2ec6774d
inject git version into build
5 years ago
Chris Lu
0871d2cff0
volume: fix memory leak during compaction
fix https://github.com/chrislusf/seaweedfs/issues/1222
5 years ago
Chris Lu
892e726eb9
avoid reusing context object
fix https://github.com/chrislusf/seaweedfs/issues/1182
5 years ago
Chris Lu
72a64a5cf8
use the same context object in order to retry
5 years ago
Chris Lu
09ca936c78
shell: add ec.decode command
5 years ago
Lei Liu
1294999d8b
return error when garbageThreshold is not a valid float number
Signed-off-by: Lei Liu <lei01.liu@horizon.ai>
5 years ago
Lei Liu
1bcef02a6c
fix dir/lookup and col/delete api
1, Fix Layouts first letter capitalized
2, Return http 204 when delete a collection
Signed-off-by: Lei Liu <lei01.liu@horizon.ai>
5 years ago
Lei Liu
c2884cace2
misc updated
Signed-off-by: Lei Liu <lei01.liu@horizon.ai>
5 years ago
Chris Lu
46ed2ca902
refactoring
5 years ago
Chris Lu
c9a183eb69
refactor memory map related code
5 years ago
Chris Lu
faec9076a4
adjust parameter names
5 years ago
Chris Lu
d16c450682
fix unreachable code
5 years ago
j.laycock
6fc6322c90
Change joeslay paths to chrislusf paths
5 years ago
Tom Maxwell
4a878c0006
Changed the InMemory bool to a uint32 so that it can be used to alter how much space to reserve
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
f16375621f
big refactoring
6 years ago
Chris Lu
e5506152c0
refactoring
6 years ago
Chris Lu
766396d249
weed master: atomic volume counting
possible fix for https://github.com/chrislusf/seaweedfs/issues/913
6 years ago
Chris Lu
e108688990
avoid grpc 5 seconds timeout
some operations may take longer than 5 seconds.
only keep the timeout for raft operations
6 years ago
Chris Lu
77b9af531d
adding grpc mutual tls
6 years ago
chenwanli
0a3e83a36a
Set timeout for master and volume non-streaming rpc
6 years ago
Chris Lu
b423bb9e2d
migrate assign volume to grpc API on volume server
6 years ago
Chris Lu
8301519fb0
migrate delete collection to grpc API on volume server
6 years ago
Chris Lu
b1daede91b
move volume vacuum to gRpc
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
58344980e4
preallocate disk space during compaction also, add cleanup for failed compaction
7 years ago
Chris Lu
e46c3415f7
gRpc for master~volume heartbeat
8 years ago
Chris Lu
ed44f12f6d
support Fallocate on linux
8 years ago