SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.
Go blob-storagecloud-drivedistributed-file-systemdistributed-storageerasure-codingfusehadoop-hdfshdfskuberneteslancelancedbobject-storageposixs3s3-storageseaweedfstiered-file-systemvector-search
adjust default read timeout to 3 seconds
Chris Lu2add211a86b5
diff --git a/weed-fs/src/cmd/weed/master.go b/weed-fs/src/cmd/weed/master.goindex 1468984cd8..92d96718a8 100644--- a/weed-fs/src/cmd/weed/master.go+++ b/weed-fs/src/cmd/weed/master.go@@ -35,7 +35,7 @@ var (mpulse = cmdMaster.Flag.Int("pulseSeconds", 5, "number of seconds between heartbeats")confFile = cmdMaster.Flag.String("conf", "/etc/weedfs/weedfs.conf", "xml configuration file")defaultRepType = cmdMaster.Flag.String("defaultReplicationType", "000", "Default replication type if not specified.")- mReadTimeout = cmdMaster.Flag.Int("readTimeout", 1, "connection read timeout in seconds")+ mReadTimeout = cmdMaster.Flag.Int("readTimeout", 3, "connection read timeout in seconds")mMaxCpu = cmdMaster.Flag.Int("maxCpu", 0, "maximum number of CPUs. 0 means all available CPUs")garbageThreshold = cmdMaster.Flag.String("garbageThreshold", "0.3", "threshold to vacuum and reclaim spaces"))diff --git a/weed-fs/src/cmd/weed/volume.go b/weed-fs/src/cmd/weed/volume.goindex b65433e813..5a8555385a 100644--- a/weed-fs/src/cmd/weed/volume.go+++ b/weed-fs/src/cmd/weed/volume.go@@ -36,7 +36,7 @@ var (masterNode = cmdVolume.Flag.String("mserver", "localhost:9333", "master server location")vpulse = cmdVolume.Flag.Int("pulseSeconds", 5, "number of seconds between heartbeats, must be smaller than the master's setting")maxVolumeCount = cmdVolume.Flag.Int("max", 5, "maximum number of volumes")- vReadTimeout = cmdVolume.Flag.Int("readTimeout", 1, "connection read timeout in seconds")+ vReadTimeout = cmdVolume.Flag.Int("readTimeout", 3, "connection read timeout in seconds")vMaxCpu = cmdVolume.Flag.Int("maxCpu", 0, "maximum number of CPUs. 0 means all available CPUs")store *storage.Store