Archived
This forum has been archived. Please start a new discussion on GitHub.
Configuring servers in ICE grid
Hello everyone, i´m a newbie in ICE, I think I have already read all the posts in the forum, and manual as well... but I cant successfully configure my distributed system.
If I correctly understand I can´t have more than one node running in the same machine, I tryed already but it doesnt work, I tryed very diferent configurations but I can´t get in on...
can you please show me how to configure this scenario?
2 machines, one having registry and server and another machine with another server.
I can´t get the config files right...
Please help me it´s work for my thesis.
I just need a service with 2 servers in diferent machines to see how make the config files.
Thanks in advance and my appologies for my bad english... low practice.
If I correctly understand I can´t have more than one node running in the same machine, I tryed already but it doesnt work, I tryed very diferent configurations but I can´t get in on...
can you please show me how to configure this scenario?
2 machines, one having registry and server and another machine with another server.
I can´t get the config files right...
Please help me it´s work for my thesis.
I just need a service with 2 servers in diferent machines to see how make the config files.
Thanks in advance and my appologies for my bad english... low practice.
0
Comments
-
Hi,
You can run multiple nodes on the same machine and of course on different machines. See the configuration files in demo/IceGrid/replication for an example which is running multiple nodes (on the same machine). To run nodes on different machines, you need to update the .Endpoints properties and Ice.Default.Locator property to add the appropriate "-h <IP or hostname>" endpoint option. See here in the manual for more information on these properties.
Cheers,
Benoit.0 -
Hello again, Ia have sucessfully get it running with the example you gave me, but now is not that that I want, the example is running two registries but I just want one.
Here is my configuration files for my system, PC1 runns registry and one node and PC2 runns node2 but I have one smal problem, when I try to run node2 I have an error that I dont understand can you please see my configurations and the error and help me understand what´s append?Configuraçao pc2 # # The IceGrid instance name. # IceGrid.InstanceName=DemoIceGrid # # The IceGrid locator proxy. # Ice.Default.Locator=DemoIceGrid/Locator:tcp -h 192.168.1.2 -p 4061 # # IceGrid registry configuration. # # # IceGrid node configuration. # IceGrid.Node.Name=node2 IceGrid.Node.Endpoints=default IceGrid.Node.Data=db/node2 IceGrid.Node.CollocateRegistry=2 #IceGrid.Node.Output=db #IceGrid.Node.RedirectErrToOut=1 # # Trace properties. # IceGrid.Node.Trace.Activator=1 IceGrid.Node.Trace.Adapter=2 IceGrid.Node.Trace.Server=3 # # Dummy username and password for icegridadmin. # IceGridAdmin.Username=foo IceGridAdmin.Password=bar
PC1The IceGrid instance name. # IceGrid.InstanceName=DemoIceGrid # # The IceGrid locator proxy. # Ice.Default.Locator=DemoIceGrid/Locator:default -p 4061 # # IceGrid registry configuration. # IceGrid.Registry.Client.Endpoints=default -p 4061 IceGrid.Registry.Server.Endpoints=default IceGrid.Registry.Internal.Endpoints=default IceGrid.Registry.Data=db/registry IceGrid.Registry.PermissionsVerifier=DemoIceGrid/NullPermissionsVerifier IceGrid.Registry.AdminPermissionsVerifier=DemoIceGrid/NullPermissionsVerifier IceGrid.Registry.SSLPermissionsVerifier=DemoIceGrid/NullSSLPermissionsVerifier IceGrid.Registry.AdminSSLPermissionsVerifier=DemoIceGrid/NullSSLPermissionsVerifier #IceGrid.Registry.DynamicRegistration=1 # # IceGrid node configuration. # IceGrid.Node.Name=node1 IceGrid.Node.Endpoints=default IceGrid.Node.Data=db/node IceGrid.Node.CollocateRegistry=1 #IceGrid.Node.Output=db #IceGrid.Node.RedirectErrToOut=1 # # Trace properties. # IceGrid.Node.Trace.Activator=1 IceGrid.Node.Trace.Adapter=2 IceGrid.Node.Trace.Server=3 # # Dummy username and password for icegridadmin. # IceGridAdmin.Username=foo IceGridAdmin.Password=bar
When I runn node2 the following erro appears:!! 03/26/10 00:16:57.228 icegridnode: error: service caught unhandled exception: FreezeDB.cpp:134: Ice::PluginInitializationException: plug-in initialization failed: property `IceGrid.Registry.Data' is not set
Please help me...
Thanks In advance.0 -
Hi Benjamin,
Where you able to solve this bug y!! 03/26/10 00:16:57.228 icegridnode: error: service caught unhandled exception: FreezeDB.cpp:134: Ice::PluginInitializationException: plug-in initialization failed: property `IceGrid.Registry.Data' is not set
I an experiencing the same and need urgent help.Hello again, Ia have sucessfully get it running with the example you gave me, but now is not that that I want, the example is running two registries but I just want one.
Here is my configuration files for my system, PC1 runns registry and one node and PC2 runns node2 but I have one smal problem, when I try to run node2 I have an error that I dont understand can you please see my configurations and the error and help me understand what´s append?Configuraçao pc2 # # The IceGrid instance name. # IceGrid.InstanceName=DemoIceGrid # # The IceGrid locator proxy. # Ice.Default.Locator=DemoIceGrid/Locator:tcp -h 192.168.1.2 -p 4061 # # IceGrid registry configuration. # # # IceGrid node configuration. # IceGrid.Node.Name=node2 IceGrid.Node.Endpoints=default IceGrid.Node.Data=db/node2 IceGrid.Node.CollocateRegistry=2 #IceGrid.Node.Output=db #IceGrid.Node.RedirectErrToOut=1 # # Trace properties. # IceGrid.Node.Trace.Activator=1 IceGrid.Node.Trace.Adapter=2 IceGrid.Node.Trace.Server=3 # # Dummy username and password for icegridadmin. # IceGridAdmin.Username=foo IceGridAdmin.Password=bar
PC1The IceGrid instance name. # IceGrid.InstanceName=DemoIceGrid # # The IceGrid locator proxy. # Ice.Default.Locator=DemoIceGrid/Locator:default -p 4061 # # IceGrid registry configuration. # IceGrid.Registry.Client.Endpoints=default -p 4061 IceGrid.Registry.Server.Endpoints=default IceGrid.Registry.Internal.Endpoints=default IceGrid.Registry.Data=db/registry IceGrid.Registry.PermissionsVerifier=DemoIceGrid/NullPermissionsVerifier IceGrid.Registry.AdminPermissionsVerifier=DemoIceGrid/NullPermissionsVerifier IceGrid.Registry.SSLPermissionsVerifier=DemoIceGrid/NullSSLPermissionsVerifier IceGrid.Registry.AdminSSLPermissionsVerifier=DemoIceGrid/NullSSLPermissionsVerifier #IceGrid.Registry.DynamicRegistration=1 # # IceGrid node configuration. # IceGrid.Node.Name=node1 IceGrid.Node.Endpoints=default IceGrid.Node.Data=db/node IceGrid.Node.CollocateRegistry=1 #IceGrid.Node.Output=db #IceGrid.Node.RedirectErrToOut=1 # # Trace properties. # IceGrid.Node.Trace.Activator=1 IceGrid.Node.Trace.Adapter=2 IceGrid.Node.Trace.Server=3 # # Dummy username and password for icegridadmin. # IceGridAdmin.Username=foo IceGridAdmin.Password=bar
When I runn node2 the following erro appears:!! 03/26/10 00:16:57.228 icegridnode: error: service caught unhandled exception: FreezeDB.cpp:134: Ice::PluginInitializationException: plug-in initialization failed: property `IceGrid.Registry.Data' is not set
Please help me...
Thanks In advance.0 -
Hi,
Your problem doesn't seem to be related to this thread so it would be better if you create another thread. In any case, you're getting this error because you do not configure the IceGrid.Registry.Data property. I recommend trying out the IceGrid demos and use them as a basis for the configuration of your IceGrid registry and node.
Cheers,
Benoit.0 -
I met the same problem
Hello,
I met exactly the same problem as yours. How did you solve that?
Thank you very much ~Hello again, Ia have sucessfully get it running with the example you gave me, but now is not that that I want, the example is running two registries but I just want one.
Here is my configuration files for my system, PC1 runns registry and one node and PC2 runns node2 but I have one smal problem, when I try to run node2 I have an error that I dont understand can you please see my configurations and the error and help me understand what´s append?Configuraçao pc2 # # The IceGrid instance name. # IceGrid.InstanceName=DemoIceGrid # # The IceGrid locator proxy. # Ice.Default.Locator=DemoIceGrid/Locator:tcp -h 192.168.1.2 -p 4061 # # IceGrid registry configuration. # # # IceGrid node configuration. # IceGrid.Node.Name=node2 IceGrid.Node.Endpoints=default IceGrid.Node.Data=db/node2 IceGrid.Node.CollocateRegistry=2 #IceGrid.Node.Output=db #IceGrid.Node.RedirectErrToOut=1 # # Trace properties. # IceGrid.Node.Trace.Activator=1 IceGrid.Node.Trace.Adapter=2 IceGrid.Node.Trace.Server=3 # # Dummy username and password for icegridadmin. # IceGridAdmin.Username=foo IceGridAdmin.Password=bar
PC1The IceGrid instance name. # IceGrid.InstanceName=DemoIceGrid # # The IceGrid locator proxy. # Ice.Default.Locator=DemoIceGrid/Locator:default -p 4061 # # IceGrid registry configuration. # IceGrid.Registry.Client.Endpoints=default -p 4061 IceGrid.Registry.Server.Endpoints=default IceGrid.Registry.Internal.Endpoints=default IceGrid.Registry.Data=db/registry IceGrid.Registry.PermissionsVerifier=DemoIceGrid/NullPermissionsVerifier IceGrid.Registry.AdminPermissionsVerifier=DemoIceGrid/NullPermissionsVerifier IceGrid.Registry.SSLPermissionsVerifier=DemoIceGrid/NullSSLPermissionsVerifier IceGrid.Registry.AdminSSLPermissionsVerifier=DemoIceGrid/NullSSLPermissionsVerifier #IceGrid.Registry.DynamicRegistration=1 # # IceGrid node configuration. # IceGrid.Node.Name=node1 IceGrid.Node.Endpoints=default IceGrid.Node.Data=db/node IceGrid.Node.CollocateRegistry=1 #IceGrid.Node.Output=db #IceGrid.Node.RedirectErrToOut=1 # # Trace properties. # IceGrid.Node.Trace.Activator=1 IceGrid.Node.Trace.Adapter=2 IceGrid.Node.Trace.Server=3 # # Dummy username and password for icegridadmin. # IceGridAdmin.Username=foo IceGridAdmin.Password=bar
When I runn node2 the following erro appears:!! 03/26/10 00:16:57.228 icegridnode: error: service caught unhandled exception: FreezeDB.cpp:134: Ice::PluginInitializationException: plug-in initialization failed: property `IceGrid.Registry.Data' is not set
Please help me...
Thanks In advance.0