Chris Lu
2789d10342
go fmt
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
6923af7280
refactoring
3 years ago
Chris Lu
e93d4935e3
add other replica locations when assigning volumes
3 years ago
Chris Lu
7a13816e94
refactor
3 years ago
Chris Lu
65af3cf4df
master: disconnect only the phantom volume server
fix https://github.com/chrislusf/seaweedfs/issues/2311
3 years ago
Chris Lu
78e8ddf910
Only when tailing volume, the zero-ed cookie should skip checking.
This only happens when checkCookie == false and fsync == false.
3 years ago
Chris Lu
d1d1fc772c
move some volume lookup operations to grpc
jwt related lookup will come in next commit
3 years ago
Chris Lu
01336d71eb
minor
3 years ago
Chris Lu
4370a4db63
use int64 for volume count in case of negative overflow
3 years ago
Chris Lu
cb1dbd3135
refactor
3 years ago
Chris Lu
b624090398
go fmt
4 years ago
Chris Lu
d474ce6fe3
master: avoid repeated leader redirection
fix https://github.com/chrislusf/seaweedfs/issues/2146
4 years ago
Chris Lu
87a32bfef4
avoid possible nil when node is disconnected from its parent
fix https://github.com/chrislusf/seaweedfs/issues/2073
4 years ago
Chris Lu
d2d36a3f9d
master: avoid creating too many volumes
fix https://github.com/chrislusf/seaweedfs/issues/2062
4 years ago
Chris Lu
9a6aa00e9d
avoid nil locations
fix https://github.com/chrislusf/seaweedfs/issues/2059
4 years ago
qieqieplus
c4d32f6937
ahead of time volume assignment
4 years ago
Patrick Schmidt
7413d59750
Fix EC shard count logic
This fixes the calculation of the amount of EC shards a node holds.
Previously a global counter was increased, but also used inside the
loop to apply disk usage deltas. This led to wrong absolute numbers.
The fix is to apply only deltas of single EC shards per iteration.
4 years ago
Patrick Schmidt
5f7b024891
Show the real disk usage in stats calls
Currently the file size of only one volume location is taken into
account in the stats. This commit multiplies the disk usages by the
amount of nodes holding a replica of the volume.
This will yield the expected amount of disk usage and matches the
total size calculations from before.
4 years ago
Chris Lu
2270737344
volume: avoid fixed vacuum timeout for large volumes
1GB for 3 minutes, about 5.7MB/s
4 years ago
Chris Lu
565f7a6e72
Update data_node.go
4 years ago
Chris Lu
a37473ae60
add back volume ids
address https://github.com/chrislusf/seaweedfs/issues/1792#issuecomment-782339576
4 years ago
Chris Lu
c576ad04ac
fix volume server display for volumes
4 years ago
Chris Lu
73958e357d
add descriptive error if no free volumes
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
68775d29e3
fix tests
4 years ago
Chris Lu
b314d78e97
fix print
4 years ago
Chris Lu
53ca7e66ef
avoid dead lock
4 years ago
Chris Lu
3097b9a9b7
fix existence checking
4 years ago
Chris Lu
cb9cc29518
volume.list display; fix updating maxVolumeCount for disk
4 years ago
Chris Lu
3fe628f04e
use hdd instead of empty string
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
1102ae32c4
fix concurrent map reads
4 years ago
Chris Lu
9c9ba3c209
nil related
related to https://github.com/chrislusf/seaweedfs/issues/1676
4 years ago
Chris Lu
d9e8479c06
adjust UI max count
4 years ago
Chris Lu
3cdf5945a2
adjust UI
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
94525aa0fd
allocate volume by disk type
4 years ago
Chris Lu
a9db24cd05
master allocate volumes if ssd type runs out
4 years ago
Chris Lu
0d2ec832e2
rename from volumeType to diskType
4 years ago
Chris Lu
715b199eeb
fix tests
4 years ago
Chris Lu
d156c74ec0
volume server set volume type and heartbeat to the master
4 years ago
Chris Lu
e9cd798bd3
adding volume type
4 years ago
Chris Lu
003b6245e7
fix nil
4 years ago
Chris Lu
965413c21b
shell: add volume.vacuum command
4 years ago
Chris Lu
c7ebadc25d
avoid possible concurrent access inside ensureCorrectWritables()
4 years ago