From 650175d1ea27497e1a6f5dfb6f9493cad9c492a4 Mon Sep 17 00:00:00 2001 From: Cameron Dale Date: Fri, 9 May 2008 15:19:51 -0700 Subject: [PATCH] Increase the stored value redundancy to 6. --- apt-p2p.conf | 2 +- apt_p2p/apt_p2p_conf.py | 2 +- apt_p2p_Khashmir/DHT.py | 4 ++-- apt_p2p_Khashmir/khashmir.py | 4 ++-- debian/apt-p2p.conf.sgml | 2 +- test.py | 2 +- 6 files changed, 8 insertions(+), 8 deletions(-) diff --git a/apt-p2p.conf b/apt-p2p.conf index 6698d83..6d4a00f 100644 --- a/apt-p2p.conf +++ b/apt-p2p.conf @@ -86,7 +86,7 @@ CHECKPOINT_INTERVAL = 5m CONCURRENT_REQS = 8 # how many hosts to post values to -STORE_REDUNDANCY = 3 +STORE_REDUNDANCY = 6 # How many values to attempt to retrieve from the DHT. # Setting this to 0 will try and get all values (which could take a while if diff --git a/apt_p2p/apt_p2p_conf.py b/apt_p2p/apt_p2p_conf.py index 98beae7..09d598b 100644 --- a/apt_p2p/apt_p2p_conf.py +++ b/apt_p2p/apt_p2p_conf.py @@ -100,7 +100,7 @@ DHT_DEFAULTS = { 'CONCURRENT_REQS': '8', # how many hosts to post to - 'STORE_REDUNDANCY': '3', + 'STORE_REDUNDANCY': '6', # How many values to attempt to retrieve from the DHT. # Setting this to 0 will try and get all values (which could take a while if diff --git a/apt_p2p_Khashmir/DHT.py b/apt_p2p_Khashmir/DHT.py index 4280f17..a28a1e9 100644 --- a/apt_p2p_Khashmir/DHT.py +++ b/apt_p2p_Khashmir/DHT.py @@ -334,7 +334,7 @@ class TestSimpleDHT(unittest.TestCase): timeout = 50 DHT_DEFAULTS = {'PORT': 9977, 'CHECKPOINT_INTERVAL': 300, 'CONCURRENT_REQS': 8, - 'STORE_REDUNDANCY': 3, 'RETRIEVE_VALUES': -10000, + 'STORE_REDUNDANCY': 6, 'RETRIEVE_VALUES': -10000, 'MAX_FAILURES': 3, 'LOCAL_OK': True, 'MIN_PING_INTERVAL': 900,'BUCKET_STALENESS': 3600, 'KRPC_TIMEOUT': 9, 'KRPC_INITIAL_DELAY': 2, @@ -455,7 +455,7 @@ class TestMultiDHT(unittest.TestCase): num = 20 DHT_DEFAULTS = {'PORT': 9977, 'CHECKPOINT_INTERVAL': 300, 'CONCURRENT_REQS': 8, - 'STORE_REDUNDANCY': 3, 'RETRIEVE_VALUES': -10000, + 'STORE_REDUNDANCY': 6, 'RETRIEVE_VALUES': -10000, 'MAX_FAILURES': 3, 'LOCAL_OK': True, 'MIN_PING_INTERVAL': 900,'BUCKET_STALENESS': 3600, 'KRPC_TIMEOUT': 9, 'KRPC_INITIAL_DELAY': 2, diff --git a/apt_p2p_Khashmir/khashmir.py b/apt_p2p_Khashmir/khashmir.py index f083da4..d3ee9ee 100644 --- a/apt_p2p_Khashmir/khashmir.py +++ b/apt_p2p_Khashmir/khashmir.py @@ -560,7 +560,7 @@ class SimpleTests(unittest.TestCase): timeout = 10 DHT_DEFAULTS = {'PORT': 9977, 'CHECKPOINT_INTERVAL': 300, 'CONCURRENT_REQS': 8, - 'STORE_REDUNDANCY': 3, 'RETRIEVE_VALUES': -10000, + 'STORE_REDUNDANCY': 6, 'RETRIEVE_VALUES': -10000, 'MAX_FAILURES': 3, 'LOCAL_OK': True, 'MIN_PING_INTERVAL': 900,'BUCKET_STALENESS': 3600, 'KRPC_TIMEOUT': 9, 'KRPC_INITIAL_DELAY': 2, @@ -634,7 +634,7 @@ class MultiTest(unittest.TestCase): num = 20 DHT_DEFAULTS = {'PORT': 9977, 'CHECKPOINT_INTERVAL': 300, 'CONCURRENT_REQS': 8, - 'STORE_REDUNDANCY': 3, 'RETRIEVE_VALUES': -10000, + 'STORE_REDUNDANCY': 6, 'RETRIEVE_VALUES': -10000, 'MAX_FAILURES': 3, 'LOCAL_OK': True, 'MIN_PING_INTERVAL': 900,'BUCKET_STALENESS': 3600, 'KRPC_TIMEOUT': 9, 'KRPC_INITIAL_DELAY': 2, diff --git a/debian/apt-p2p.conf.sgml b/debian/apt-p2p.conf.sgml index 793c1cd..288864e 100644 --- a/debian/apt-p2p.conf.sgml +++ b/debian/apt-p2p.conf.sgml @@ -227,7 +227,7 @@ The number of redundant copies of a value to store in the DHT. - (Default is 3.) + (Default is 6.) diff --git a/test.py b/test.py index 566b4b3..ac7892a 100755 --- a/test.py +++ b/test.py @@ -494,7 +494,7 @@ CHECKPOINT_INTERVAL = 5m CONCURRENT_REQS = 8 # how many hosts to post to -STORE_REDUNDANCY = 3 +STORE_REDUNDANCY = 6 # How many values to attempt to retrieve from the DHT. # Setting this to 0 will try and get all values (which could take a while if -- 2.39.2