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

Ask Your Question

Can I have a space with only 1 partition?

I'm having problems with a space that has 4 partitions. When data loads from the database into the 4 partitions, they lock the database at the same time, and the load fails. So I decided to reduce the number of partitions from 4 to 1, by changing this:
-max-instances-per-vm 1 -cluster schema=partitioned-sync2backup total_members=4,1
to this:
-max-instances-per-vm 1 -cluster schema=partitioned-sync2backup total_members=1,1
in my deploy script.

But now when I run my application, I get this error, because the application still thinks there are 4 partitions:
com.gigaspaces.internal.remoting.routing.clustered.SpaceProxyLoadBalancingStrategy findActiveMember
SEVERE: Failed to find an active server for partition #2 to execute ExecuteTaskSpaceOperationRequesttask=org.openspaces.core.executor.internal.InternalSpaceTaskWrapper@3947cbb6

Other than in the deploy script, where might the number of partitions be specified?

asked 2017-04-04 08:37:55 -0500

LexLuthor gravatar image
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

Are you sure you completely restarted your application?

Restart LUS and GSM before you redeploy.

btw - to avoid the database lock you can use a different space and call the LOCK/UNLOCK API from the initial load to force each partition to reload its data in order and not in parallel: https://docs.gigaspaces.com/xap121/ma...

https://docs.gigaspaces.com/api/xap/1... https://docs.gigaspaces.com/api/xap/1... https://docs.gigaspaces.com/api/xap/1...

answered 2017-04-04 14:15:57 -0500

shay hassidim gravatar image
edit flag offensive delete link more

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


Asked: 2017-04-04 08:37:55 -0500

Seen: 40 times

Last updated: Apr 04