[Bamboo-Users] How to change Get timeout

Martina.Baldanzi at isti.cnr.it Martina.Baldanzi at isti.cnr.it
Tue Dec 4 06:33:20 UTC 2007


Dear Haijun,
thanks a lot for your reply, but probably I didn't explain clearly my
problem.
Now, I'm testing Bamboo simulating an unreliable overlay network, in
particular I'm studying the behaviour of the DHT in respect with the
increase/decrease of the get timeout.

My problem is: why I obtain get response times multiples of 5000 ms when 
I have set the get_timeout var in config file equal to 800 ms?

Thank you very much,
Martina

2007/12/3, Haijun Cao <Haijun at projectrialto.com>:

    Set drop_prob to 0.0 in network stage.

    -----Original Message-----
    From: bamboo-users-bounces at bamboo-dht.org
    [mailto:bamboo-users-bounces at bamboo-dht.org] On Behalf Of
    Martina.Baldanzi at isti.cnr.it
    Sent: Monday, December 03, 2007 9:23 AM
    To: bamboo-users at bamboo-dht.org
    Cc: martina.baldanzi at isti.cnr.it
    Subject: [Bamboo-Users] How to change Get timeout

    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
    _______________________________________________
    Bamboo-Users mailing list
    Bamboo-Users at bamboo-dht.org
    http://bamboo-dht.org/cgi-bin/mailman/listinfo/bamboo-users


More information about the Bamboo-Users mailing list