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
734c980040
volume: support concurrent download data size limit
3 years ago
Chris Lu
49c66e88a0
volume: change all writes to fsync during graceful stopping
fix https://github.com/chrislusf/seaweedfs/issues/2193
3 years ago
Chris Lu
56eb522b13
fix stats when a collection is deleted
4 years ago
bingoohuang
cf552417a7
minFreeSpace refactored
4 years ago
bingoohuang
31f1cdeac2
minFreeSpace argument allows size like 10GiB
4 years ago
Chris Lu
ca998328c2
do not add new volumes when below minFreeSpacePercent
fix https://github.com/chrislusf/seaweedfs/issues/2017
4 years ago
Chris Lu
cb423312a4
prevent nil volume message
4 years ago
Chris Lu
828f6e9f4d
volume: auto add missing vif files
fix https://github.com/chrislusf/seaweedfs/issues/1878
4 years ago
qieqieplus
5b16820924
fix: collection stats won't update if all volumes expired at same iteration
4 years ago
Chris Lu
3575d41009
go fmt
4 years ago
Chris Lu
ebf320ec22
avoid divided by zero
4 years ago
Chris Lu
f8446b42ab
this can compile now!!!
4 years ago
Chris Lu
7ce647f27e
support customizable disk type
4 years ago
bingoohuang
94ea3bd3a5
renaming NeedleMapType to NeedleMapKind
4 years ago
Chris Lu
738c4fd203
fix logging when error
address https://github.com/chrislusf/seaweedfs/pull/1685#issuecomment-747845601
4 years ago
Chris Lu
1d88865869
passing disk type along
4 years ago
Chris Lu
933f2f4cfd
find location with matching disk type
4 years ago
Chris Lu
94525aa0fd
allocate volume by disk type
4 years ago
Chris Lu
f6a419c26c
disk type configurable for each folder
4 years ago
Chris Lu
0d2ec832e2
rename from volumeType to diskType
4 years ago
Chris Lu
d156c74ec0
volume server set volume type and heartbeat to the master
4 years ago
Chris Lu
ae655033ac
adjust logging
4 years ago
Chris Lu
96c48bc8a8
fix test
4 years ago
Chris Lu
2c913dde04
volume: detect and drop volumes with disk IO error
from Jethro in slack:
is it possible to make the assign request a bit smarter? Currently I’m in the state that a disk failed but all assign request are being send to this volume. It would be cool if the master sees this and stopped using this volume.
e=HTTP(http://x:8089/913,045a782b63176edf ) not 200 but 500 Internal Server Error
Body={"size":740167,"error":"failed to write to local disk: write /mnt/v9/913.dat: input/output error","eTag":"ee4381e202212ff3aee647704c036689"}
e=HTTP(http://x:8089/913,045a782c90240077 ) not 200 but 500 Internal Server Error
Body={"size":792779,"error":"failed to write to local disk: write /mnt/v9/913.dat: input/output error","eTag":"c43463ccc11eb6eb2fc306f407a6a953"}
e=HTTP(http://x:8089/913,045a782e6b7901ea ) not 200 but 500 Internal Server Error
Body={"size":3962392,"error":"failed to write to local disk: write /mnt/v9/913.dat: input/output error","eTag":"04c91198e9b276c81f11dbf189af5d28"}
4 years ago
Chris Lu
6d30b21b10
volume: add "-dir.idx" option for separate index storage
fix https://github.com/chrislusf/seaweedfs/issues/1265
4 years ago
Chris Lu
b11449f955
pass in dir.idx parameter to DiskLocation
4 years ago
Chris Lu
1dd3a6ac36
avoid verbose logs
4 years ago
Chris Lu
0dafcf1f5a
volume: detect max volume count changes based on disk usage
fix https://github.com/chrislusf/seaweedfs/issues/1594
4 years ago
Konstantin Lebedev
46303c36bf
When the volume server is stopped, the master server immediately sees the deletion of volumes
4 years ago
Konstantin Lebedev
1ad1b8c4f6
collection Volume ReadOnly Count with detailed status
4 years ago
Konstantin Lebedev
2fb1fce8a0
avoid old values when missing read only flags
4 years ago
Chris Lu
9104cfa744
reduce locks
4 years ago
Konstantin Lebedev
dc2e13092d
add number of read only volumes metric
4 years ago
Chris Lu
a1c01d716b
volume: avoid deadlock when deleting volumes
fix https://github.com/chrislusf/seaweedfs/issues/1501
4 years ago
James Hartig
8e54e34576
volume: Don't unmount before deleting volume in copy
If we unmount first and then delete, the delete fails because the volume
was unmounted. Delete ends up doing the same thing as the unmount anyways.
4 years ago
James Hartig
3ccfa4c6ad
Added VolumeMarkWritable and VolumeStatus grpc methods
This is necessary for copy to mark as read-only and then restore the
original state afterwards.
4 years ago
Chris Lu
7e91ae592c
pass in option to read deleted entries
not working yet
4 years ago
Chris Lu
6a92f0bc7a
refactoring to typed Size
Go is amazing with refactoring!
4 years ago
Chris Lu
f43146b237
resolve directories if containing home directory
5 years ago
Chris Lu
4d1484628a
refactoring
5 years ago
Evgenii Kozlov
0e0db70f55
Set volumes ReadOnly if low free disk space
5 years ago
Chris Lu
5568395edd
Revert "Revert "Merge pull request #1299 from song-zhang/master""
This reverts commit afb6a1dbb4
.
5 years ago
Chris Lu
afb6a1dbb4
Revert "Merge pull request #1299 from song-zhang/master"
This reverts commit 9016fa19ba
, reversing
changes made to 47234760f4
.
5 years ago
zhangsong
f9e8702bb4
use async write to persistent file to disk - part1
5 years ago
Chris Lu
bafa95045b
volume: deletion checks all disk locations
fix https://github.com/chrislusf/seaweedfs/issues/1283
5 years ago
Chris Lu
e4af63a721
volume server: accept fsync=true in write requests
5 years ago
Chris Lu
9fa065f600
typo in logs
5 years ago
Chris Lu
e63a79ade8
better handle lock in case of exception
5 years ago
Chris Lu
3137777d83
volume: automatically detect max volume count
5 years ago