Archived

This forum has been archived. Please start a new discussion on GitHub.

How to config the glacier2 in ice grid

When I use ice grid with glacier2 router, there is a problem for configuration,take ChatDemo for example,pls view the attachment for the deployment.

the configuration of glacier2 router must config the endpoint of ChatSessionManager like this:
Glacier2.SessionManager=ChatSessionManager:tcp -h 127.0.0.1 -p 10001

but in ice grid,the endpoint is uncertain,maybe the node1's ChatServer,maybe the node2's ChatServer.
How do I need to change the configuration?
1.PNG 2.9K

Comments

  • benoit
    benoit Rennes, France
    Hi,

    If you deploy 2 chat servers and want the Glacier2 router to connect to them, you should create a replica group and setup the chat server to join this replica group. You can then configure the Glacier2 router session manager to point to a proxy from this replica group, e.g.: Glacier2.SessionManager=ChatSessionManager@SessionManagerReplicaGroup

    See https://doc.zeroc.com/display/Ice36/IceGrid for more information on replica groups. You can also checkout the cpp/IceGrid/simple/application_with_replication.xml descriptor for an example on how to configure replica groups.

    Cheers,
    Benoit.
  • ok,thank you very much!