Home Help Center

about icegrid load balance

yuzexuyuzexu Member Gem yuOrganization: University of National DefenceProject: 10000 Clients throught local area network
[COLOR="#0000FF"]  the master icegrid application.xml[/COLOR]

  <node name="localhost">
         <server-instance template="Glacier2Router" instance-name="Glacier2Router" activation="always" index="1" client-endpoints="tcp -p 4062"/>
         <server-instance template="Glacier2Router" instance-name="Glacier2Router" index="2" client-endpoints="tcp -p 14063"/>
         <server-instance template="IceBox.SessionServerTemplate" index="1"/>
          <server-instance template="IceBox.SessionServerTemplate" index="2"/>
         <server-instance template="IceBox.SystemServerTemplate" index="1" description="&#31995;&#32479;&#26381;&#21153;1"/>
         <server-instance template="IceBox.SystemServerTemplate" index="2" description="&#31995;&#32479;&#26381;&#21153;2"/>
      </node>
       <node name="192.168.0.146">
         <server-instance template="Glacier2Router" instance-name="Glacier2Router" activation="always" index="3" client-endpoints="tcp  -p 14064"/>
         <server-instance template="Glacier2Router" instance-name="Glacier2Router" index="4" client-endpoints="tcp -p 14065"/>
         <server-instance template="IceBox.SystemServerTemplate" index="3" description="&#31995;&#32479;&#26381;&#21153;"/>
         <server-instance template="IceBox.SystemServerTemplate" index="4" description="&#31995;&#32479;&#26381;&#21153;"/>
         <server-instance template="IceBox.SessionServerTemplate" index="3"/>
          <server-instance template="IceBox.SessionServerTemplate" index="4"/>
  
      </node>

  [COLOR="#0000FF"]the slave icegrid application.xml[/COLOR]
  
  <node name="localhost">
         <server-instance template="Glacier2Router" instance-name="Glacier2Router" activation="always" index="1_1" client-endpoints="tcp -p 4062"/>
         <server-instance template="Glacier2Router" instance-name="Glacier2Router" index="1_2" client-endpoints="tcp -p 4063"/>

         <server-instance template="IceBox.SessionServerTemplate" index="1" description="&#20250;&#35805;&#26381;&#21153;&#32452;"/>
   
         <server-instance template="IceBox.SessionServerTemplate" index="2" description="&#20250;&#35805;&#26381;&#21153;&#32452;"/>
         <server-instance template="IceBox.SystemServerTemplate" index="1" description="&#31995;&#32479;&#26381;&#21153;&#32452;"/>
         <server-instance template="IceBox.SystemServerTemplate" index="2" description="&#31995;&#32479;&#26381;&#21153;&#32452;"/>

      </node>

 [COLOR="#0000FF"] the master icegrid config.grid[/COLOR]
   
#
# The IceGrid instance name.
#
IceGrid.InstanceName=IceGrid

#
# The IceGrid locator proxy.
#
Ice.Default.Locator=NetSecIceGrid/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.Node.Endpoints=tcp -h localhost
IceGrid.Registry.DynamicRegistration=1
# Enable the admin session manager for use with Glacier2.
#
IceGrid.Registry.AdminSessionManager.Endpoints=default

IceGrid.Registry.Data=db/registry
IceGrid.Registry.PermissionsVerifier=IceGrid/NullPermissionsVerifier
IceGrid.Registry.AdminPermissionsVerifier=IceGrid/NullPermissionsVerifier
IceGrid.Registry.SSLPermissionsVerifier=IceGrid/NullSSLPermissionsVerifier
IceGrid.Registry.AdminSSLPermissionsVerifier=IceGrid/NullSSLPermissionsVerifier

#
# IceGrid node configuration.
#
IceGrid.Node.Name=localhost
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

[COLOR="#0000FF"] the slave icegrid config.grid[/COLOR]
  
#
# The IceGrid instance name.
#
IceGrid.InstanceName=IceGrid

#
# The IceGrid locator proxy.
#
Ice.Default.Locator=NetSecIceGrid/Locator:tcp -h 192.168.0.10 -p 4061

#
# IceGrid registry configuration.
#
IceGrid.Registry.Client.Endpoints=default -p 4061
IceGrid.Registry.Server.Endpoints=default
IceGrid.Registry.Internal.Endpoints=default
IceGrid.Node.Endpoints=tcp -h localhost
IceGrid.Registry.DynamicRegistration=1
# Enable the admin session manager for use with Glacier2.
#
IceGrid.Registry.AdminSessionManager.Endpoints=default

IceGrid.Registry.Data=db/registry
IceGrid.Registry.PermissionsVerifier=IceGrid/NullPermissionsVerifier
IceGrid.Registry.AdminPermissionsVerifier=IceGrid/NullPermissionsVerifier
IceGrid.Registry.SSLPermissionsVerifier=IceGrid/NullSSLPermissionsVerifier
IceGrid.Registry.AdminSSLPermissionsVerifier=IceGrid/NullSSLPermissionsVerifier

#
# IceGrid node configuration.
#
IceGrid.Node.Name=192.168.0.146
IceGrid.Node.Endpoints=default
IceGrid.Node.Data=db/node
IceGrid.Node.CollocateRegistry=0
#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


now i deploy four system manager service the master icegrid two the slave icegrid two

but when i call the system manager service controller although the ice grid load brance but
only two system manager service join the load brance not four system manager service joined
i don't know why??
sorry i bad english
Sign In or Register to comment.