Results 1 to 3 of 3

Thread: how to make the registry not to distribute faulty nodes to the client.

  1. #1
    russule is offline Registered User
    Name: Lei Chun
    Organization: www.channelsoft.com.cn
    Project: Conf
    Join Date
    Oct 2006
    Posts
    32

    how to make the registry not to distribute faulty nodes to the client.

    Hi:
    I did a test by Ice-3.1.0 .
    The IceGrid registry and node1 are running on the host PC1, while IceGrid node2 is running on the host PC2 . In this application, one server has been assigned to each node.
    -----------------------------------------------
    <icegrid>

    <application name="Conf">

    <server-template id="SimpleServer">
    <parameter name="index"/>
    <server id="SimpleServer-${index}" exe="./conf.exe" activation="on-demand">
    <adapter name="Conf" endpoints="tcp" register-process="true">
    <object identity="conf-${index}" type=":emo::Conf"/>
    </adapter>
    <property name="Identity" value="conf-${index}"/>
    </server>
    </server-template>

    <node name="node1">
    <server-instance template="SimpleServer" index="1"/>
    </node>
    <node name="node2">
    <server-instance template="SimpleServer" index="2"/>
    </node>

    </application>

    </icegrid>
    -----------------------------------------------------
    If PC2 is closed, the registry still distribute node2 to the client.
    The client throw the exception:
    -------------------
    client: E:\Item\ICE\Ice-3.1.0\src\ice\Reference.cpp:1109: Ice::NoEndpointException:
    no suitable endpoint available for proxy `conf-2 -t @ SimpleServer-2.Conf'
    -------------------


    If I use the following application:
    ----------------------------------------------
    <icegrid>
    <application name="Conf">

    <replica-group id="ReplicatedConfAdapter">
    <load-balancing type="round-robin" />
    <object identity="conf" type=":emo::Conf"/>
    </replica-group>


    <server-template id="SimpleServer">
    <parameter name="index"/>
    <server id="SimpleServer-${index}" exe="./conf" activation="on-demand">
    <adapter name="Conf" endpoints="tcp" register-process="true" replica-group="ReplicatedConfAdapter"/>
    <property name="Identity" value="conf"/>
    </server>
    </server-template>


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

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

    </application>
    -------------------------------------------------
    If PC2 is closed,the registry can't distribute any node to the client.
    The client throw the exception:
    --------------------------------------------------
    client: E:\Item\ICE\Ice-3.1.0\src\ice\Reference.cpp:1109: Ice::NoEndpointException:
    no suitable endpoint available for proxy `conf -t'
    -----------------------------------------------
    I want to know how the registry know the nodes'states and how to make the registry not to distribute fault nodes to the client.


    Russule.

  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 Russule,

    Before we answer your question, could you please set your signature? See this thread for more information on how to set it.

    Cheers,
    Benoit.

  3. #3
    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
    Thanks for setting your signature.

    I believe this is a known IceGrid bug. Please try to apply the patch from this thread, this should fix your issue.

    Cheers,
    Benoit.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Synchronize object on nodes
    By Diabllos in forum Help Center
    Replies: 1
    Last Post: 02-25-2011, 11:52 AM
  2. [IceGrid] Way to do log-rolling for nodes?
    By GuillaumeBailey in forum Help Center
    Replies: 1
    Last Post: 04-15-2008, 01:06 PM
  3. How to make ICE Client as a Win32 Service
    By JaneShang in forum Help Center
    Replies: 1
    Last Post: 12-20-2007, 03:38 AM
  4. how can i make server send string to client
    By jerry_cym in forum Help Center
    Replies: 2
    Last Post: 02-07-2006, 04:46 AM
  5. have any improve in distribute deployment?
    By soloman817 in forum Comments
    Replies: 2
    Last Post: 01-05-2005, 11:07 PM

Posting Permissions

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