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

Ask Your Question
0

Dynamic Cluster

Hi All,
My question: can I add dynamicly(space not defined at static xml file) space to running cluster(static - defined in xml) ?
How ? Should I change existing xml ?Should I restart running spaces in cluster ?

Thanks,
Michael

This thread was imported from the previous forum.
For your reference, the original is available here

asked 2008-04-09 07:25:35 -0500

mikivin 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
0

In dev - restart the cluster with larger total members value.
In production - have multiple partitions in the same JVM and once you would like to increase the cluster capacity , move one of the partition to an empty GSC. This will increase the cluster capacity in runtime.
If you need more details how to do this ? send me email to shay at gigaspaces dot com

Shay

answered 2008-04-09 10:54:17 -0500

shay hassidim gravatar image
edit flag offensive delete link more

Comments

Hi Shay,
I mean if I want add some space on another computer to existing cluster.
Can I ?

Thanks
Michael

mikivin gravatar imagemikivin ( 2008-04-09 15:12:07 -0500 )edit

You do that by starting a GSC on this new machine and move exiting space member to this new machine.
You should have "extra" spaces running on the existing machine.
Once you define total members for the cluster you cannot have more than this amount of spaces - so a simple solution here is to have a value for the total members , run all the cluster members on one box (you can run all these within the same JVM/GSC if you want) and once you need to expand the cluster size you simply move it to another box.

Shay

shay hassidim gravatar imageshay hassidim ( 2008-04-10 05:45:20 -0500 )edit

Hi Shay, Thank You for answer. My question is : can I add space to cluster with dynamic configuration ? What the purpose of dynamic configuration ? Michael

mikivin gravatar imagemikivin ( 2008-04-14 06:54:27 -0500 )edit

Dynamic cluster configuration means no need to create static cluster config that specifies the cluster members list. This setup was used in old versions of the product to construct a space cluster. Starting with GigaSpaces 5 , you do not need to construct the full cluster config but you use a pre-defined "cluster schema" with total member and member ID settings as part of the URL. When using the service grid to deploy the cluster you do not need even to specify the member ID.

Specifically answering your question - Adding a new member on the fly to existing cluster is supported very easily with replicated space using the following manner: - have total members of the cluster as X and use the async_replicated schema - start first member using the following URL: "/./mySpace?cluster_schema=async_replicated&total_members=10&id=1" - start second member using the following URL: "/./mySpace?cluster_schema=async_replicated&total_members=10&id=2" - start X member using the following URL: "/./mySpace?cluster_schema=async_replicated&total_members=10&id=10"

Please note that once you will start node N of the cluster it will recover from one of the existing members. Each member will accumulate within its redo log the relevant operations to playback once a member is started.

If you are running in WAN based environment make sure the new node have access to the Lookup service that have the other spaces registered into it. The space to recover from determined based on the cluster group name associated with the cluster group.

If your requirements are more advanced (very long disconnection time) or non-symmetrical replicated cluster , you will need to use other approach to construct your cluster.

Shay

Edited by: Shay Hassidim on Apr 15, 2008 10:49 AM

shay hassidim gravatar imageshay hassidim ( 2008-04-15 09:48:58 -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

Stats

Asked: 2008-04-09 07:25:35 -0500

Seen: 27 times

Last updated: Apr 09 '08