Go Back   ZeroC Forums > Help Center

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 03-10-2008
zaoliu zaoliu is offline
Registered User
 
Name: Zao Liu
Organization: HI5
Project: Performance test
 
Join Date: Mar 2008
Posts: 14
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?
Reply With Quote
  #2 (permalink)  
Old 03-10-2008
zaoliu zaoliu is offline
Registered User
 
Name: Zao Liu
Organization: HI5
Project: Performance test
 
Join Date: Mar 2008
Posts: 14
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
Reply With Quote
  #3 (permalink)  
Old 03-10-2008
benoit's Avatar
benoit benoit is online now
ZeroC Staff
 
Name: Benoit Foucher
Organization: ZeroC, Inc.
Project: Ice
 
Join Date: Feb 2003
Location: Rennes, France
Posts: 1,541
Hi,

Is your server explicitly loading the server configuration file mentioned above? If that's the case, it's most likely the reason why your server can't be activated.

You shouldn't use a configuration file when deploying a server with an XML descriptor. Instead, you should set the properties in the XML descriptor and let IceGrid generate the configuration file (the configuration file is generated in the IceGrid node data directory, see ./node/servers/MessageServer1/config/config).

See also the IceGrid demos for some XML descriptor examples.

Cheers,
Benoit.
Reply With Quote
  #4 (permalink)  
Old 03-10-2008
zaoliu zaoliu is offline
Registered User
 
Name: Zao Liu
Organization: HI5
Project: Performance test
 
Join Date: Mar 2008
Posts: 14
Thanks, benoit.

Yeah, it worked. Then , is it possible for me to set threadpool for server in XML?
Reply With Quote
  #5 (permalink)  
Old 03-10-2008
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
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
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
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


All times are GMT -4. The time now is 08:40 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.