|
|
|
|||||
|
IceGrid Activate Timeout
I am studying to use IceGrid and I do configure right to one node condition. The service in the node can be invoked and activate remotely by using IceGridAdmin. But when I configured for two nodes for a application, neither services in those nodes can be activated. I do see the invocation of the program but hanging in the activate() method, and getting back a activationTimeOut exception after few seconds.
Below is my deploy configuration: For one node: <icegrid> <application name="IceTest"> <node name="Node1"> <server id="MessageServer1" exe="./startserver" activation="on-demand"> <adapter name="MessageAdapter" id="MessageAdapter" register-process="true" endpoints="tcp"/> </server> </node> </application> </icegrid> For two nodes: <icegrid> <application name="IceTest"> <node name="Node1"> <server id="MessageServer1" exe="./startserver" activation="on-demand"> <adapter name="MessageAdapter" register-process="true" endpoints="tcp"/> </server> </node> <node name="Node2"> <server id="MessageServer2" exe="./startserver" activation="on-demand"> <adapter name="MessageAdapter" register-process="true" endpoints="tcp"/> </server> </node> </application> </icegrid> I think the only different between these two configuration is that I need to remove adapter id from the file. If I add adapter ID to the two-nodes one, the service adding the adpater ID do can be activated. But I see the manual, it is not good to name the same service in the different node using different name. Do I miss something? |
|
|||||
|
By the way, I didn't set the register and node in the same process. So I have one register configuration file and two nodes configuration file.
Register configuration: IceGrid.Registry.Client.Endpoints=tcp -h 192.168.64.183 -p 10000 IceGrid.Registry.Server.Endpoints=tcp -h 192.168.64.183 IceGrid.Registry.Internal.Endpoints=tcp -h 192.168.64.183 IceGrid.Registry.AdminPermissionsVerifier=IceGrid/NullPermissionsVerifier IceGrid.Registry.Data=./registry Node1 configuration: IceGrid.Node.Endpoints=tcp -h 192.168.64.214 IceGrid.Node.Name=Node1 IceGrid.Node.Data=./node Ice.Default.Locator=IceGrid/Locator:tcp -h 192.168.64.183 -p 10000 Node2 configuration: NodeIceGrid.Node.Endpoints=tcp -h 192.168.64.183 IceGrid.Node.Name=Node2 IceGrid.Node.Data=./node Ice.Default.Locator=IceGrid/Locator:tcp -h 192.168.64.183 -p 10000 Server configuration: Ice.ServerId=MessageServer1 Ice.ProgramName=IceTest MessageAdapter.AdapterId=MessageAdapter MessageAdapter.Endpoints=tcp -h 192.168.64.214 -p 10001 MessageAdapter.Locator=IceGrid/Locator:tcp -h 192.168.64.183 -p 10000 MessageAdapter.RegisterProcess=1 Ice.ThreadPool.Server.Size=30 Ice.ThreadPool.Client.Size=30 Ice.ThreadPool.Client.SizeWarn=10 |
|
||||||
|
Hi,
You can add configuration properties to your server's XML descriptor. The Ice manual provides an example of this here (see section 39.16.16). Take care, Mark |
![]() |
| 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 |
| AMI and timeout | fanson | Help Center | 7 | 01-10-2008 05:16 AM |
| Hang in activate() on Linux | walls1500 | Help Center | 8 | 03-01-2007 12:59 PM |
| is there a timeout during checkedCast? | leya | Help Center | 9 | 09-05-2006 08:45 AM |
| object registration with activate() | n2503v | Help Center | 2 | 05-19-2006 12:11 PM |
| timeout | nsns | Help Center | 4 | 10-08-2004 10:18 AM |