chrislu
ec63b41d26
refactor: extract GetVolumeServerId to util package
Move the volume server ID determination logic to a shared utility function
to avoid code duplication between volume.go and rack.go.
Ref: https://github.com/seaweedfs/seaweedfs/issues/7487
1 day ago
chrislu
6020b39d70
fix: trim whitespace from volume server id and fix test
- Trim whitespace from -id flag to treat ' ' as empty
- Fix store_load_balancing_test.go to include id parameter in NewStore call
Ref: https://github.com/seaweedfs/seaweedfs/issues/7487
1 day ago
chrislu
bece20d608
volume: add -id flag for stable volume server identity
Add -id command line flag to volume server that allows specifying a stable
identifier independent of the IP address. This is useful for Kubernetes
deployments with hostPath volumes where pods can be rescheduled to different
nodes while the persisted data remains on the original node.
Usage: weed volume -id=node-1 -ip=10.0.0.1 ...
If -id is not specified, it defaults to ip:port for backward compatibility.
Fixes https://github.com/seaweedfs/seaweedfs/issues/7487
1 day ago
chrislu
6201cd099e
fix help messages
3 weeks ago
Lisandro Pin
f466ff1412
Nit: use `time.Duration`s instead of constants in seconds. ( #7438 )
Nit: use `time.Durations` instead of constants in seconds. Makes for slightly more readable code.
4 weeks ago
Chris Lu
5ab49e2971
Adjust cli option ( #7418 )
* adjust "weed benchmark" CLI to use readOnly/writeOnly
* consistently use "-master" CLI option
* If both -readOnly and -writeOnly are specified, the current logic silently allows it with -writeOnly taking precedence. This is confusing and could lead to unexpected behavior.
1 month ago
zuzuviewer
8fa1a69f8c
* Fix undefined http serve behaiver ( #6943 )
5 months ago
Konstantin Lebedev
93007c1842
[volume] refactor and add metrics for flight upload and download data limit condition ( #6920 )
* refactor concurrentDownloadLimit
* fix loop
* fix cmdServer
* fix: resolve conversation pr 6920
* Changes logging function (#6919 )
* updated logging methods for stores
* updated logging methods for stores
* updated logging methods for filer
* updated logging methods for uploader and http_util
* updated logging methods for weed server
---------
Co-authored-by: akosov <a.kosov@kryptonite.ru>
* Improve lock ring (#6921 )
* fix flaky lock ring test
* add more tests
* fix: build
* fix: rm import util/version
* fix: serverOptions
* refactoring
---------
Co-authored-by: Aleksey Kosov <rusyak777@list.ru>
Co-authored-by: akosov <a.kosov@kryptonite.ru>
Co-authored-by: Chris Lu <chrislusf@users.noreply.github.com>
Co-authored-by: chrislu <chris.lu@gmail.com>
5 months ago
chrislu
bd4891a117
change version directory
6 months ago
Konstantin Lebedev
b65eb2ec45
[security] reload whiteList on http seerver ( #6302 )
* reload whiteList
* white_list add to scaffold
1 year ago
vadimartynov
b796c21fa9
Added loadSecurityConfigOnce ( #5792 )
1 year ago
vadimartynov
ec9e7493b3
-metricsIp cmd flag ( #5773 )
* Added/Updated:
- Added metrics ip options for all servers;
- Fixed a bug with the selection of the binIp or ip parameter for the metrics handler;
* Fixed cmd flags
1 year ago
Konstantin Lebedev
2b3e39397e
fix: skipping checking active volumes with the same number of files at the moment ( #4893 )
* fix: skipping checking active volumes with the same number of files at the moment
https://github.com/seaweedfs/seaweedfs/issues/4140
* refactor with comments
https://github.com/seaweedfs/seaweedfs/issues/4140
* add TestShouldSkipVolume
---------
Co-authored-by: Konstantin Lebedev <9497591+kmlebedev@users.noreply.github.co>
2 years ago
Jiffs Maverick
4b0430e71d
[metrics] Add the ability to control bind ip ( #4012 )
3 years ago
Guo Lei
5b905fb2b7
Lazy loading ( #3958 )
* types packages is imported more than onece
* lazy-loading
* fix bugs
* fix bugs
* fix unit tests
* fix test error
* rename function
* unload ldb after initial startup
* Don't load ldb when starting volume server if ldbtimeout is set.
* remove uncessary unloadldb
* Update weed/command/server.go
Co-authored-by: Chris Lu <chrislusf@users.noreply.github.com>
* Update weed/command/volume.go
Co-authored-by: Chris Lu <chrislusf@users.noreply.github.com>
Co-authored-by: guol-fnst <goul-fnst@fujitsu.com>
Co-authored-by: Chris Lu <chrislusf@users.noreply.github.com>
3 years ago
famosss
cacc3e883b
volume server:set the default value of "hasSlowRead" to true ( #3710 )
* simplify a bit
* feat: volume: add "readBufSize" option to customize read optimization
* refactor : redbufSIze -> readBufferSize
* simplify a bit
* simplify a bit
* volume server:set the default value of "hasSlowRead" to true
3 years ago
Konstantin Lebedev
301b678147
[volume] Add new volumes to HUP(reload) signal ( #3755 )
Add new volumes to HUP(reload) signal
3 years ago
chrislu
10d5b4b32b
volume server: rename readBufferSize to readBufferSizeMB
3 years ago
famosss
d949a238b8
volume: add "readBufSize" option to customize read optimization ( #3702 )
* simplify a bit
* feat: volume: add "readBufSize" option to customize read optimization
* refactor : redbufSIze -> readBufferSize
* simplify a bit
* simplify a bit
3 years ago
chrislu
cf90f76a35
mark "hasSlowRead" as experimental
3 years ago
chrislu
896a85d6e4
volume: add "hasSlowRead" option to customize read optimization
3 years ago
chrislu
9b084d4c88
purge tcp implementation
3 years ago
chrislu
3f3a1341d8
make CodeQL happy
3 years ago
chrislu
67814a5c79
refactor and fix strings.Split
3 years ago
chrislu
26dbc6c905
move to https://github.com/seaweedfs/seaweedfs
3 years ago
liubaojiang
076e48a676
add inflight upload data wait timeout
4 years ago
guol-fnst
076595fbdd
just exit in case of duplicated volume directories were loaded
4 years ago
Berck Nash
9b14f0c81a
Add mTLS support for both master and volume http server.
4 years ago
chrislu
3a6eb8ca5f
default bind to one ip address
fix https://github.com/chrislusf/seaweedfs/issues/1937
4 years ago
chrislu
18543c6e8b
minor
4 years ago
Konstantin Lebedev
526094d2da
StopTimeout 30 sec
4 years ago
Konstantin Lebedev
275e9a4e86
reduce to default http server KillTimeout and StopTimeout
4 years ago
chrislu
8907e6a40a
add more help messages
4 years ago
Chris Lu
52fe86df45
use default 10000 for grpc port
4 years ago
Chris Lu
e5fc35ed0c
change server address from string to a type
4 years ago
Chris Lu
e690a2be16
custom grpc port: volume server
4 years ago
Chris Lu
574485ec69
better IP v6 support
4 years ago
Chris Lu
734c980040
volume: support concurrent download data size limit
4 years ago
Chris Lu
49c66e88a0
volume: change all writes to fsync during graceful stopping
fix https://github.com/chrislusf/seaweedfs/issues/2193
4 years ago
Chris Lu
5bcc77b46c
volume: default readMode to proxy
4 years ago
Chris Lu
b624090398
go fmt
4 years ago
zhangsong
20d33ae025
add proxy mode to read non-local volumes
4 years ago
zhangsong
7566782c2e
add proxy mode to read non-local volumes
4 years ago
bingoohuang
cf552417a7
minFreeSpace refactored
5 years ago
bingoohuang
31f1cdeac2
minFreeSpace argument allows size like 10GiB
5 years ago
Chris Lu
8e404a1433
go fmt
5 years ago
Chris Lu
ac875976c0
filer, volume: add concurrent upload size limit to avoid OOM
add some back pressure when writes are slow
5 years ago
Konstantin Lebedev
9ce82a9cd2
GOMAXPROCS use defaults to the value of runtime.NumCPU
https://github.com/chrislusf/seaweedfs/issues/1942
5 years ago
Chris Lu
c42b95c596
more help message
fix https://github.com/chrislusf/seaweedfs/issues/1937
5 years ago
Chris Lu
2a68ddb963
default to empty host to bind to tcp4 and tcp6
5 years ago