Results 1 to 3 of 3

Thread: IceGrid configuration

  1. #1
    Matthieu is offline Registered User
    Name: Mat Rei
    Organization: 4sxs Consulting
    Project: communication
    Join Date
    Oct 2008
    Posts
    14

    IceGrid configuration

    Hello,

    I would like to configure several servers with IceGrid. Each server offer various objects (affcarre, affpoint, polynom...). These object are defined in one replica-group (RadapterGen).
    One server hasn't always all the objects (one server implements affcarre and addpoint, an other one implements only polynom, a third affcarre and polynom,...).

    So I created a server-template, with the adapter "RadapterGen", than several server-instance...

    Here the XML file:

    <icegrid>
    <application name="Simple">

    <replica-group id="RadapterGen">
    <load-balancing type="round-robin"/>
    <object identity="affcarre" type=":emo::Caracteristique"/>
    <object identity="affpoint" type=":emo::Caracteristique"/>
    <object identity="polynom" type=":emo::Caracteristique"/>
    <object identity="courbep" type=":emo::Caracteristique"/>
    <object identity="carre" type=":emo::Caracteristique"/>
    <object identity="moyenne" type=":emo::Caracteristique"/>
    <object identity="name" type=":emo::Caracteristique"/>
    </replica-group>


    <server-template id="servTemplate">
    <parameter name="index"/>
    <parameter name="exepath" default="java"/>
    <server id="servTemplate${index}" exe="${exepath}" activation="on-demand">
    <property name="Ice.MessageSizeMax" value="1000000000"/>
    <adapter name="AadapterGen" endpoints="tcp" register-process="true" replica-group="RadapterGen"/>
    </server>
    </server-template>

    <node name="node1">
    <server-instance template="servTemplate" index="1"/>
    </node>

    <node name="node2">
    <server-instance template="servTemplate" index="2"/>
    </node>

    <node name="node3">
    <server-instance template="servTemplate" index="3"/>
    </node>

    <node name="node5">
    <server-instance template="servTemplate" index="4" exepath="./executables/Serv_Ex_2_Icar"/>
    </node>

    </application>
    </icegrid>



    It is correct like this ?? Is there a problem if most of the objects, defined in the replica, are not implements by the servers ?

    I had first various replica-group for each object, and real "server" (not with template) binded to these replicas... but I tried now to reduce the length of the XML code. And especially to reduce the modifications that I would have to do if a new server appeared.
    Will load-balancing and replication work with this configuration ?

    Thank you !

    Cheers,
    Matthieu

  2. #2
    benoit's Avatar
    benoit is offline ZeroC Staff
    Name: Benoit Foucher
    Organization: ZeroC, Inc.
    Project: Ice
    Join Date
    Feb 2003
    Location
    Rennes, France
    Posts
    2,196
    Hi Matthieu,

    I'm afraid this won't work. Servers member of a same replica group must provide the same Ice objects. You will otherwise end up getting Ice::ObjectNotExistException exceptions if your client talks to the wrong server.

    You need to define multiple replica groups for the different objects instead.

    Cheers,
    Benoit.

  3. #3
    Matthieu is offline Registered User
    Name: Mat Rei
    Organization: 4sxs Consulting
    Project: communication
    Join Date
    Oct 2008
    Posts
    14
    Hello Benoit, thank you !

    But if I want to do one server with two objects (obj1 and obj2) and a second server with just the obj1. And I want to do replication between obj1 of both servers.
    I did two replica for each server, but icegrid said "duplicate object obj1". That's normal ! What can I do ??


    Cheers,
    Matthieu

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 1
    Last Post: 04-06-2010, 07:04 PM
  2. Udpate an IceGrid configuration
    By Matthieu in forum Help Center
    Replies: 4
    Last Post: 11-27-2008, 04:06 PM
  3. PHP Configuration
    By sayotte in forum Help Center
    Replies: 1
    Last Post: 04-15-2007, 08:31 PM
  4. Plugin configuration
    By kwaclaw in forum Comments
    Replies: 9
    Last Post: 09-29-2005, 07:07 PM
  5. IceStorm example - configuration
    By Bruce in forum Help Center
    Replies: 1
    Last Post: 03-18-2004, 11:57 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •