[Bamboo-Users] How to change Get timeout
Martina.Baldanzi at isti.cnr.it
Martina.Baldanzi at isti.cnr.it
Tue Dec 4 17:17:11 UTC 2007
Hi Olaf,
thanks for your reply
Martina
2007/12/4, Olaf Görlitz <goerlitz at uni-koblenz.de>:
On 04.12.2007 11:13, Martina.Baldanzi at isti.cnr.it wrote:
> Dear Olaf,
> thanks for your reply.
> The timeout, that you specify, is a generic timeout valid for all
ONC/RPC
> calls.
> I have a question, if I change the file OncRpcClient.java, I change
the
> value of the Put method timeout too?
From my experiences yes.
If you have a lossy network the OncRPC connection waits for that fixed
time before throwing the exception.
I once altered that timeout before I realized the meaning of the
drop_prob parameter Haijun mentioned.
Olaf
>
> Martina
>
> 2007/12/4, Olaf Görlitz <goerlitz at uni-koblenz.de>:
>
> Hi Martina,
>
> In the past, I had the impression that those parameters in the
config
> file have no real effect. Actually, the timeout parameter is
> hard-coded
> in the ONCRPC library. (http://remotetea.sourceforge.net/)
>
> see also:
>
http://bamboo-dht.org/pipermail/bamboo-users/2006-August/000826.html
>
> I'm not quite sure if this solves your problem.
>
> Cheers,
> Olaf
>
>
> On 04.12.2007 07:33, Martina.Baldanzi at isti.cnr.it wrote:
> > 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
> > _______________________________________________
> > Bamboo-Users mailing list
> > Bamboo-Users at bamboo-dht.org
> > http://bamboo-dht.org/cgi-bin/mailman/listinfo/bamboo-users
>
>
> --
>
----------------------------------------------------------------------
> Olaf Görlitz
goerlitz at uni-koblenz.de
> University of Koblenz tel: +49 261
287-2617
> Institute for Computer Science fax: +49 261
287-2721
> Information Systems and Semantic Web
isweb.uni-koblenz.de
>
----------------------------------------------------------------------
More information about the Bamboo-Users
mailing list