|
|
|
||||||
|
Hi Surya,
There's several ways to tackle this depending on your requirements. Could you detail why you need this create method? If all the servers are already deployed on the IceGrid nodes, why not simply lookup for a server with the registry (i.e.: lookup a Demo::MyServer well-known object)? Cheers, Benoit. |
|
||||||
|
Hi Benoit,
I need create method to instantiate a specific messaging task administrator/coordinator server [administrator server]. Since, there could be many administrator server on the grid, I want each of them to be a independent process. Where, each administrator server uses many other replicated utility servers. I expose these administrator server to the external world, hence I want to keep these processes isolated, just in case if due to some bad data, one of the administrator server breaks, it shall not mess the other administrator server. Moreover, I want to keep each administrator server data structure separate, otherwise, it becomes very complex for managing shared data for multiple administrator server (thread-safe would slow down things and complicates simple operations) I hope, I am not so abstract in defining my problem and need to use create method. And since, I want to create new administrator server on demand, I cannot start fixed number of instances on each node and use well-known object to connect to them, since number of these server demand could be more than number of nodes and this number is unpredictable. Though, I would like to limit number of such servers into overall grid. I believe, using IceGrid::Admin interface would be the optimal solution to start new server instantiating from server template. What you say? Any other simpler interface or do I need to change the way I see my problem? Thanks. Surya |
|
||||||
|
Hi,
You could indeed use the IceGrid::Admin interface to instantiate and deploy a new server instance on a given node. You can find the list of nodes known by the registry with the getAllNodeNames method and instantiate a new server on a given node with the instantiateServer method (provided an application and template name). In the server template you could configure a well-known object that allows you to easily create a server proxy object based on some information provided to the instantiateServer method. You'll also probably need a mechanism to cleanup stale servers. Cheers, Benoit. |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| IceGrid server termination (stopServer) process | spsoni | Help Center | 10 | 05-12-2008 04:33 AM |
| IceGrid server can not start. | Jiangyubao | Help Center | 0 | 05-08-2008 12:39 AM |
| icegridnode failed to start the server | leya | Help Center | 8 | 07-25-2006 10:31 PM |
| ICE PHP5 Server start??? | surfer | Help Center | 5 | 09-06-2005 08:51 AM |
| Forking Process within Ice Server | acbell | Help Center | 1 | 07-25-2005 02:25 PM |