Results 1 to 5 of 5

Thread: Multiple Nodes on the same machine with a single registry

  1. #1
    tkunnumpurath is offline Registered User
    Name: Thomas Kunnumpurath
    Organization: DB
    Project: Analytics compute grid
    Join Date
    Dec 2011
    Posts
    3

    Multiple Nodes on the same machine with a single registry

    All,

    I'm trying to build an application that has a single registry but with multiple nodes. I am able to create multiple nodes on the same machine, but I don't know how to associate a server with a particular node. When I start a server, it always associates itself with the default node.

    Is there any way around this?

    Thanks,
    Thomas

  2. #2
    bernard's Avatar
    bernard is online now ZeroC Staff
    Name: Bernard Normier
    Organization: ZeroC, Inc.
    Project: Ice
    Join Date
    Feb 2003
    Location
    Palm Beach Gardens, FL
    Posts
    1,294
    Hi Thomas,

    Welcome to our forums!

    Each of your IceGrid nodes needs a unique name, set using the property IceGrid.Node.Name, e.g.

    Code:
    IceGrid.Node.Name=Node1
    Then, in IceGrid (with the GUI or XML file), you describe servers on nodes--and make sure the node names you use match these IceGrid.Node.Names.

    And finally, you start these servers on these nodes using IceGrid (icegridadmin, the IceGrid Admin GUI, or possibly programmaticaly).

    These IceGrid Nodes may be on different computers (the most common) or, if you like, on the same computer (useful for testing).

    Best regards,
    Bernard
    Bernard Normier
    ZeroC, Inc.

  3. #3
    tkunnumpurath is offline Registered User
    Name: Thomas Kunnumpurath
    Organization: DB
    Project: Analytics compute grid
    Join Date
    Dec 2011
    Posts
    3
    Hi Bernard,
    Thank you for the welcome!

    I have a another problem, when attempting to start the server via IceGridAdmin, I receive the following error:

    path = C:\program files\Java\jdk1.6.0_18\bin\java.exe server.Server
    pwd = C:\ZeroC\analyticsFarm\IceGrid
    envs = CLASSPATH="..." --Ice.Config=C:\ZeroC\analyticsFarm\IceGrid/Node1/servers/analyticsWrapperServer1/config/config

    -- 12/28/11 16:30:47.941 icegridnode: Adapter: server `analyticsWrapperServer1' adapt
    er `analyticsWrapperServer1.analyticsWrapperAdapter' activation failed: The system cannot
    find the file specified.


    I'm assuming the Error message is referring to this file:
    --Ice.Config=C:\ZeroC\analyticsFarm\IceGrid/Node1/servers/analyticsWrapperServer1/config/config
    which really should be:
    --Ice.Config=C:\ZeroC\analyticsFarm\IceGrid\server.c fg

    However, I'm unsure of how to change it? Any ideas?




    My deployment descriptor xml is as follows:


    <icegrid>
    <application name="anlayticsFarm">

    <replica-group id="anlayticsWrapperAdapters">
    <load-balancing type="adaptive"/>
    <object identity="anlayticsWrapper" type="server.anlayticsWrapperI" />
    </replica-group>

    <server-template id="anlayticsWrapperServerTemplate">
    <parameter name="index"/>
    <parameter name="exepath" default="C:\program files\Java\jdk1.6.0_18\bin\java.exe server.Server"/>
    <server id="anlayticsWrapperServer${index}" exe="${exepath}" activation="on-demand">
    <option>-Djava.library.path=C:\\dbPricing\\anlaytics\\v120</option>
    <env>CLASSPATH="..."</env>
    <adapter name="anlayticsWrapperAdapter" replica-group="anlayticsWrapperAdapters"
    endpoints="tcp">

    </adapter>
    </server>
    </server-template>

    <node name="Node1">
    <server-instance template="anlayticsWrapperServerTemplate" index="1"/>
    </node>
    <node name="Node2">
    <server-instance template="anlayticsWrapperServerTemplate" index="2"/>
    </node>

    </application>
    </icegrid>
    Last edited by tkunnumpurath; 12-28-2011 at 04:55 PM.

  4. #4
    bernard's Avatar
    bernard is online now ZeroC Staff
    Name: Bernard Normier
    Organization: ZeroC, Inc.
    Project: Ice
    Join Date
    Feb 2003
    Location
    Palm Beach Gardens, FL
    Posts
    1,294
    Hi Thomas,

    When you use IceGrid, IceGrid generates a configuration file for each of your servers, and you should always start these servers (through IceGrid) using this generated configuration file.

    The generated file for your config file for your DbaxWrapperServer1 server is:
    Code:
    C:\ZeroC\DbaxFarm\IceGrid/Node1/servers/DbaxWrapperServer1/config/config
    I suspect the file-not-found error refers to the executable; I would pass "server.Server" as an option and not as part of the exe attribute.

    Best regards,
    Bernard
    Bernard Normier
    ZeroC, Inc.

  5. #5
    tkunnumpurath is offline Registered User
    Name: Thomas Kunnumpurath
    Organization: DB
    Project: Analytics compute grid
    Join Date
    Dec 2011
    Posts
    3
    Thanks!

    Everything is working now.

    Another question, is there anyway to dynamically create a node via IceGridAdmin or do you have to go through the setup process (adding entries in xml, creating node config/directories, starting icegridnode, updating the registry etc etc.)?

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Single node registered against multiple Grids
    By himanshu in forum Help Center
    Replies: 1
    Last Post: 12-02-2011, 04:01 AM
  2. Replies: 2
    Last Post: 10-11-2006, 09:31 AM
  3. Replies: 3
    Last Post: 04-03-2006, 01:35 PM
  4. Replies: 1
    Last Post: 01-16-2006, 06:05 AM
  5. Multiple IceBoxes running on same machine?
    By brian in forum Help Center
    Replies: 2
    Last Post: 10-28-2003, 02:35 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
  •