From 6f7b0cafee1e7df2b43b3d5ebec6750954f332ef Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Mon, 15 Oct 2012 02:09:47 -0700 Subject: [PATCH] adjust time_wait to 1 second --- weed-fs/src/cmd/weed/master.go | 2 +- weed-fs/src/cmd/weed/volume.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/weed-fs/src/cmd/weed/master.go b/weed-fs/src/cmd/weed/master.go index b84e1d4b1..759e5fdc9 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", 5, "connection read timeout in seconds") + mReadTimeout = cmdMaster.Flag.Int("readTimeout", 1, "connection read timeout in seconds") mMaxCpu = cmdMaster.Flag.Int("maxCpu", 0, "maximum number of CPUs. 0 means all available CPUs") ) diff --git a/weed-fs/src/cmd/weed/volume.go b/weed-fs/src/cmd/weed/volume.go index 046272ee7..9696ffc85 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", 5, "connection read timeout in seconds") + vReadTimeout = cmdVolume.Flag.Int("readTimeout", 1, "connection read timeout in seconds") vMaxCpu = cmdVolume.Flag.Int("maxCpu", 0, "maximum number of CPUs. 0 means all available CPUs") store *storage.Store