Go Back   ZeroC Forums > Help Center

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 03-28-2004
rstolle rstolle is offline
Registered User
 
 
Join Date: Mar 2004
Posts: 2
Object Replication?

Great product!

One question...

Object replication and federated servers are only mentioned briefly on page 56 of the manual/book. The IceStorm section discusses federated topics but I'm assuming it's different. Did I miss something or is this something we have to implement ourselves and not a configuration setting?

Thanks

Last edited by rstolle : 03-28-2004 at 09:04 PM.
Reply With Quote
  #2 (permalink)  
Old 03-29-2004
mes's Avatar
mes mes is offline
ZeroC Staff
 
Name: Mark Spruiell
Organization: ZeroC, Inc.
Project: Ice Developer
 
Join Date: Feb 2003
Location: California
Posts: 971
Re: Object Replication?

Quote:
Originally posted by rstolle
Great product!
Thanks!
Quote:
One question...

Object replication and federated servers are only mentioned briefly on page 56 of the manual/book. The IceStorm section discusses federated topics but I'm assuming it's different. Did I miss something or is this something we have to implement ourselves and not a configuration setting?
The only form of replication currently supported by Ice involves the use of multiple endpoints in a proxy. For example:

ReplicatedObject:tcp -h host1 -p 10000:tcp -h host2 -p 10000

When a connection is established using such a proxy, Ice selects one of the endpoints at random, and tries each one in the case of an error. It is up to you to ensure your servers are configured appropriately.

Ice currently does not support replication using indirect binding (see the IcePack chapter), but that is something we will probably add.

Take care,
- Mark
Reply With Quote
  #3 (permalink)  
Old 03-29-2004
rstolle rstolle is offline
Registered User
 
 
Join Date: Mar 2004
Posts: 2
Re: Re: Object Replication?

Quote:
Originally posted by mes
Thanks!

The only form of replication currently supported by Ice involves the use of multiple endpoints in a proxy. For example:

ReplicatedObject:tcp -h host1 -p 10000:tcp -h host2 -p 10000

When a connection is established using such a proxy, Ice selects one of the endpoints at random, and tries each one in the case of an error. It is up to you to ensure your servers are configured appropriately.

Ice currently does not support replication using indirect binding (see the IcePack chapter), but that is something we will probably add.

Take care,
- Mark
I have a testing environment setup with a registry, 2 nodes (node1, node2) all on the same machine. Both nodes are running an IceBox with HelloServiceI as a service. When I deploy the application to all the nodes, node2 comes back with an ObjectExistsException on the 'Hello' object. From what you just told me I should get this error. I was thinking I could register the same object twice but at different endpoints and let the locator do the rest.

So if I want to use the flexibility of IceBox services and have the same implementation across multiple services/servers to share the load, I'll just have to run each service's object with a different name like "::Hello1", "::Hello2", etc. I could then have a well known HelloManager object that returns a proxy to "::Hello1-n" at random.

I hope that makes sense I still learning the terminology.

Thanks

-Ryan
Reply With Quote
  #4 (permalink)  
Old 03-29-2004
mes's Avatar
mes mes is offline
ZeroC Staff
 
Name: Mark Spruiell
Organization: ZeroC, Inc.
Project: Ice Developer
 
Join Date: Feb 2003
Location: California
Posts: 971
Re: Re: Re: Object Replication?

Quote:
Originally posted by rstolle
I have a testing environment setup with a registry, 2 nodes (node1, node2) all on the same machine. Both nodes are running an IceBox with HelloServiceI as a service. When I deploy the application to all the nodes, node2 comes back with an ObjectExistsException on the 'Hello' object. From what you just told me I should get this error. I was thinking I could register the same object twice but at different endpoints and let the locator do the rest.
Right, that's not currently possible.

Quote:
So if I want to use the flexibility of IceBox services and have the same implementation across multiple services/servers to share the load, I'll just have to run each service's object with a different name like "::Hello1", "::Hello2", etc. I could then have a well known HelloManager object that returns a proxy to "::Hello1-n" at random.
Yes, that's a reasonable approach given the current functionality. Unfortunately, you lose the automatic retry/failover behavior in this situation, because each replicated server is represented by a different proxy, whereas in the sample proxy I mentioned above each server is an endpoint in a single proxy. Of course, it's not easy to create one of these proxies when you're using IcePack, since servers are likely using transient ports.

What we would like to do in a future release is add the capability to IcePack to support replication. For example, it might be possible to configure a replicated object adapter, in which case the endpoints for all of the replicated adapters with the same name are combined by the locator.

Take care,
- Mark
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with replication in IceGrid davidcr1983 Help Center 3 12-15-2006 08:02 AM
Patch #4 for Ice 3.1.0: IceGrid replication bug benoit Patches 0 07-20-2006 05:08 PM
Replication Documentation Ken Carpenter Help Center 3 10-29-2004 05:54 AM
Object Factories and object initialisation Nis Baggesen Help Center 1 09-30-2004 08:40 AM
Freeze and replication? rhochmuth Help Center 1 05-08-2004 04:24 PM


All times are GMT -4. The time now is 10:29 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0
(c) 2008 ZeroC, Inc.