From: Brian Warner Date: Mon, 16 Jul 2007 20:48:34 +0000 (-0700) Subject: reduce MAX_SEGMENT_SIZE from 2MB to 1MB, to compensate for the large blocks that... X-Git-Url: https://git.rkrishnan.org/simplejson//%22news.html/%22?a=commitdiff_plain;h=20c980d02b67b2a18b2ccfba1acdb56e5c3cfb81;p=tahoe-lafs%2Ftahoe-lafs.git reduce MAX_SEGMENT_SIZE from 2MB to 1MB, to compensate for the large blocks that 3-of-10 produces --- diff --git a/src/allmydata/encode.py b/src/allmydata/encode.py index 246bf8b4..ce470c95 100644 --- a/src/allmydata/encode.py +++ b/src/allmydata/encode.py @@ -73,7 +73,7 @@ class Encoder(object): NEEDED_SHARES = 25 SHARES_OF_HAPPINESS = 75 TOTAL_SHARES = 100 - MAX_SEGMENT_SIZE = 2*MiB + MAX_SEGMENT_SIZE = 1*MiB def __init__(self, options={}): object.__init__(self) diff --git a/src/allmydata/interfaces.py b/src/allmydata/interfaces.py index 5462d001..2b4f4829 100644 --- a/src/allmydata/interfaces.py +++ b/src/allmydata/interfaces.py @@ -14,7 +14,7 @@ FURL = StringConstraint(1000) StorageIndex = StringConstraint(32) URI = StringConstraint(300) # kind of arbitrary MAX_BUCKETS = 200 # per peer -ShareData = StringConstraint(700000) # 2MB segment / k=3 = 670kB +ShareData = StringConstraint(400000) # 1MB segment / k=3 = 334kB URIExtensionData = StringConstraint(1000) class RIIntroducerClient(RemoteInterface):