[Bamboo-Users] How to change Get timeout
Martina.Baldanzi at isti.cnr.it
Martina.Baldanzi at isti.cnr.it
Mon Dec 3 17:23:02 UTC 2007
Dear All,
I'm Martina and I have a question about the get timeout.
As default value, the get_timeout variable is set to 5000 ms, but if I
change the config file of a Bamboo node, I can give a different value to
this timeout (such as 800 ms).
Suppose that I want to change the get_timeout of
bamboo/test/location-test-node.cfg in this way:
...
<Dht>
class bamboo.dht.Dht
<initargs>
get_timeout 800
debug_level 1
storage_manager_stage StorageManager
min_replica_count 1
</initargs>
</Dht>
..
Now I run the test to start two Bamboo instances and I run a sequence of
Get requests to measure the response time. Sometimes, I obtain get
resolved in tens of milliseconds and sometimes I obtain get resolved
with a time equal to 5000 ms.
This is ok for me, because the network is reliable at the 90%, but I
expected get response time multiple of 800 ms.
Moreover, I have tried to change the line 1075 of
bamboo/src/bamboo/dht/Dht.java with the following:
get_timeout = configGetInt(config, "get_timeout", 800);
and then I re-compile the bamboo source code, but I obtain get response
time multiple of 5000 ms.
Any ideas to resolve my problem?
Thank you very much,
Martina
More information about the Bamboo-Users
mailing list