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

Ask Your Question

More than one Processing Unit in IntegratedProcessingUnitContainer

Is it possible to deploy more than one processing unit in the IntegratedProcessingUnitContainer? For example: I'd like to deploy a primary and a backup partition into the same JVM (container).

Regards, Larry

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

asked 2008-06-27 11:25:36 -0500

larrychu gravatar image

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

jaissefsfex gravatar image
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted


With 6.5 you can.
Use the following arguments as an example: -cluster total_members=1,1

In other words, simply omit the id and backup_id parameters.


answered 2008-06-27 11:44:19 -0500

nirpaz gravatar image
edit flag offensive delete link more


Thanks for the response. This seems like a simple way to get something running quickly, however i don't quite understand how it works. After I defined a -cluster total_members=2,1 schema=partitioned-sync2backup, I am left with what appears to be 4 processing units, but the backup partitions are not quite deployed correctly:

Viewing from the Management UI, I see object counts of: x_container1 13259 primary:yes x_container1_1 0 primary:no x_container2 13027 primary:yes x_container2_2 13027 primary:no

I would at least expect to see a backup containing 13259 objects, but there is one with zero instead. Furthermore, shouldn't the backup be located in a different JVM than the primary?

larrychu gravatar imagelarrychu ( 2008-06-27 13:08:28 -0500 )edit

I see what is happening now. The command would run all 4 partitions within the same JVM. What I really wanted was:

JVM1 : primary1, backup of primary2
JVM2 : primary2, backup of primary1

larrychu gravatar imagelarrychu ( 2008-06-27 13:44:42 -0500 )edit


The IntegratedProcessingUnitContainer is used to deploy a PU. As noted previously it can deploy more than one PU. This container is used mainly for during development.

In order to deploy into production scenario, you'll have to start several instances of GSC and at least one instance of GSM. Next use the gs-ui to deploy your packaged processing units into the grid.


nirpaz gravatar imagenirpaz ( 2008-06-27 13:59:49 -0500 )edit

I am interested in deploying two JVMs for testing using the Integrated Processing Unit Container in the aforementioned scenario.

larrychu gravatar imagelarrychu ( 2008-06-27 21:35:13 -0500 )edit

Larry, Can you explain why you can't deploy and test using GSC to run your application? If the issues is debugging , you can use remote debugging. Shay

shay hassidim gravatar imageshay hassidim ( 2008-07-01 11:37:28 -0500 )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


Asked: 2008-06-27 11:25:36 -0500

Seen: 45 times

Last updated: Jun 27 '08