How to config the glacier2 in ice grid

westhodwesthod Member Edward ChuOrganization: tclProject: A IoT platform
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

  • benoitbenoit Rennes, FranceAdministrators, ZeroC Staff Benoit FoucherOrganization: ZeroC, Inc.Project: Ice ZeroC Staff
    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.: [email protected]Group

    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.
  • westhodwesthod Member Edward ChuOrganization: tclProject: A IoT platform
    ok,thank you very much!
Sign In or Register to comment.