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

Ask Your Question
0

Lease renewal in a cluster

If I have a cluster and I want to write an Entry to the space with a brief lease (say, 30 seconds) but then I want to renew the lease for that Entry, will the Entry/Lease be replicated on other servers in the cluster? If not, what is the recommended way to renew a lease so that it shows up across all servers in a cluster?

thanks,

-dave

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

asked 2008-05-05 13:30:07 -0500

jazzbutcher 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

renew and cancel lease is replicated where the lease object is cluster aware.

Another way to control the Entry lease in case you don't have its Lease object is to use the update method. This includes the lease parameter. ZERO as a value means use the exiting lease.

Shay

answered 2008-05-05 13:38:00 -0500

shay hassidim gravatar image
edit flag offensive delete link more

Comments

I'm not sure what you mean by a lease object that is cluster aware. Where can I read about this?

I'm aware of the use of update() to control the lease.

Are there certain cluster configurations or replication strategies that do not support the renewal of leases across all cluster members?

thanks,

-dave

jazzbutcher gravatar imagejazzbutcher ( 2008-05-05 15:43:18 -0500 )edit

Lease is "cluster aware" means that if the client holds an entry lease and the primary space fails , you may renew/cancel after the fail over - i.e. the backup that turned to be a primary will honor the lease operations.

This was not supported with old versions of the product.

Beyond the above you should make sure that in case you use async replication and you have a short lease (less than the replication interval time) , the replica/backup might not be able to replicate relevant entry operations since the entry already been expired - you will get "Wrong clustered space usage" errors. This means the entry life cycle is managed in autonomic manner. Each space expire its own entries and DOES not replicate the "expired entry event" to the replica spaces.

If there was a disconnection with the replication and the entry expired you might again the "Wrong clustered space usage" error.

More about replication and lease operations at: http://www.gigaspaces.com/wiki/displa...

Shay

shay hassidim gravatar imageshay hassidim ( 2008-05-05 19:00:22 -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-05-05 13:30:07 -0500

Seen: 27 times

Last updated: May 05 '08