Welcome to the new Gigaspaces XAP forum. To recover your account, please follow these instructions.

Ask Your Question
0

How to reduce retry count when data grid is down?

The scenario is that at first data grid is deployed and all cache accesses are successful. Then the data grid is down, simulated by undeploying the data grid. Every cache access would retry 10 times to connect to the space and finally fail. For our requirements, this 40 seconds delay (10 times retry times each retry taking 4 seconds) for one cache access is not acceptable. How to reduce the retry count and decrease retry time?

May 20, 2009 8:43:24 AM INFO [com.gigaspaces.client]: Thread[main,5,main] No available members found - retrying 1

May 20, 2009 8:43:28 AM INFO [com.gigaspaces.client]: Thread[main,5,main] No available members found - retrying 2

May 20, 2009 8:43:32 AM INFO [com.gigaspaces.client]: Thread[main,5,main] No available members found - retrying 3

May 20, 2009 8:43:36 AM INFO [com.gigaspaces.client]: Thread[main,5,main] No available members found - retrying 4

May 20, 2009 8:43:40 AM INFO [com.gigaspaces.client]: Thread[main,5,main] No available members found - retrying 5

May 20, 2009 8:43:44 AM INFO [com.gigaspaces.client]: Thread[main,5,main] No available members found - retrying 6

May 20, 2009 8:43:48 AM INFO [com.gigaspaces.client]: Thread[main,5,main] No available members found - retrying 7

May 20, 2009 8:43:52 AM INFO [com.gigaspaces.client]: Thread[main,5,main] No available members found - retrying 8

May 20, 2009 8:43:56 AM INFO [com.gigaspaces.client]: Thread[main,5,main] No available members found - retrying 9

May 20, 2009 8:44:00 AM INFO [com.gigaspaces.client]: Thread[main,5,main] No available members found - retrying 10

This is how we connect to data grid. Please note we changed the timeout in the jini url, but it doesn't help. Also I am using GigaSpaces 6.6.3. The data grid is a with partition schema and built following the tutorial.

<bean id="space" class="org.openspaces.core.space.UrlSpaceFactoryBean"> <property name="url" value="jini://*/*/myDataGrid?timeout=500"/> </bean>

<bean id="transactionManager" class="org.openspaces.core.transaction.manager.LocalJiniTransactionManager"> <property name="space" ref="space"/> </bean>

<bean id="mygigaSpace" class="org.openspaces.core.GigaSpaceFactoryBean"> <property name="space" ref="space"/> <property name="transactionManager" ref="transactionManager"/> </bean>

Thank you very much.

{quote}This thread was imported from the previous forum. For your reference, the original is [available here|http://forum.openspaces.org/thread.jspa?threadID=3094]{quote}

asked 2009-05-20 11:14:05 -0600

janylj gravatar image

updated 2013-08-08 09:52:00 -0600

jaissefsfex gravatar image
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

Instead of increasing the retries (which can be done) increase the cluster-config.groups.group.fail-over-policy.fail-over-find-timeout
Have it 10000. This will give you 100,000 seconds for the client to find the space.

Shay

answered 2009-05-20 18:00:30 -0600

shay hassidim gravatar image
edit flag offensive delete link more

Comments

Thanks for your reply.

However, I would like to decrease the timeout time instead of increasing it and reduce the retry count. And I tried setting the property cluster-config.groups.group.fail-over-policy.fail-over-find-timeout=1 at gs.properties. It doesn't help. When the client cannot connect to GS, it has 10 times of retry and each one takes 4 seconds.

Please advise.

janylj gravatar imagejanylj ( 2009-05-21 10:59:09 -0600 )edit

Thanks for your reply.

However, I would like to decrease the timeout time instead of increasing it and reduce the retry count. And I tried setting the property cluster-config.groups.group.fail-over-policy.fail-over-find-timeout=1 at gs.properties. It doesn't help. When the client cannot connect to GS, it has 10 times of retry and each one takes 4 seconds.

Please advise.

janylj gravatar imagejanylj ( 2009-05-21 11:00:52 -0600 )edit

What exactly are you trying to achieve?

nirpaz gravatar imagenirpaz ( 2009-05-21 13:13:07 -0600 )edit

When GigaSpaces is down, our website which is a GS client hangs 40 seconds for every cache access. It is not acceptable. How to make the GS client fail faster when it cannot find the space?

janylj gravatar imagejanylj ( 2009-05-21 18:29:37 -0600 )edit

See: space-config.proxy-settings.lookup-frequency space-config.proxy-settings.connection-retries

These are described here: http://www.gigaspaces.com/wiki/displa...

Shay

shay hassidim gravatar imageshay hassidim ( 2009-05-21 21:24:30 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2009-05-20 11:14:05 -0600

Seen: 122 times

Last updated: May 20 '09