IBM®
Skip to main content
    Country/region [select]      Terms of use
 
 
    
     Home      Products      Services & solutions      Support & downloads      My account     
 
developerworks > My developerWorks >  Dashboard > WebSphere eXtreme Scale V6.1 User Guide > ... > Distributed ObjectGrid configuration > Configuring for deployment into a static topology
developerWorks
Log In   View a printable version of the current page.
Overview Connect Spaces Forums Wikis
Configuring for deployment into a static topology
Added by vandersn, last edited by CarrieMiller on May 29, 2007  (view change)
Labels: 

Getting Started Examples Reference API documentation

See the WebSphere eXtreme Scale Wiki for links to eXtreme Scale Version 7.0 documentation.
If you log in with your developerWorks ID, you can leave comments and feedback for the development team.

Configure a static ObjectGrid deployment topology by using a cluster descriptor XML file.

To deploy an ObjectGrid into a static environment, you must use a cluster descriptor XML file in addition to your ObjectGrid descriptor XML file. The endpoints for each ObjectGrid server must be defined in the cluster XML file. The cluster XML file is also used to set up partitioning and replication. Each partition is mapped to a replication group, and each replication group contains a set of predefined servers.

For details on how to construct an ObjectGrid XML file, see Introduction to ObjectGrid configuration. The companyGrid.xml file is used as the ObjectGrid XML on which to build the cluster XML files in this example.

The following companyGridCluster.xml file is a very basic cluster XML file that excludes any optional XML attributes. This file is used as a starting point for detailing the elements and attributes of the cluster XML file, as well as building other examples. This file is compatible with the companyGrid.xml file.

companyGridCluster.xml
<?xml version="1.0" encoding="UTF-8"?>
<clusterConfig xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://ibm.com/ws/objectgrid/config/cluster 
        ../objectGridCluster.xsd"
    xmlns="http://ibm.com/ws/objectgrid/config/cluster">

    <cluster name="companyGridCluster">
        <serverDefinition name="server1" host="MyServer1.company.com"
            clientAccessPort="6601" peerAccessPort="6602" />
    </cluster>

    <objectgridBinding ref="CompanyGrid">
        <mapSet name="mapSet1" partitionSetRef="partitionSet1">
            <map ref="Customer" />
            <map ref="Item" />
            <map ref="OrderLine" />
            <map ref="Order" />
        </mapSet>
    </objectgridBinding>

    <partitionSet name="partitionSet1">
        <partition name="partition1"
            replicationGroupRef="replicationGroup1" />
    </partitionSet>

    <replicationGroup name="replicationGroup1">
        <replicationGroupMember serverRef="server1" priority="1" />
    </replicationGroup>
</clusterConfig>

The companyGridCluster.xml file places all of the CompanyGrid backingMaps into a single mapSet. This mapSet has only one partition. This partition is hosted on only one server. This mapSet is not partitioned nor replicated. For a complete description of the cluster descriptor XML file, see Cluster configuration reference.

Wiki Disclaimer and License
© Copyright IBM Corporation 2007,2009. All Rights Reserved.
Docs Cluster configuration reference (WebSphere eXtreme Scale V6.1 User Guide)
Docs ObjectGrid cluster XML schema (WebSphere eXtreme Scale V6.1 User Guide)


 
    About IBM Privacy Contact