Adding Data Grids to a Gridset

The first data grid to be added to a gridset is made the primary grid. Data grids added after the first grid are mirror grids.

Prerequisites

The data grid to be added must already be defined and running before you can add it to a gridset.

For details about gridsets, see the "Gridsets" section of the TIBCO ActiveSpaces® Concepts guide. For details about defining a data grid, see Defining a Data Grid.

Procedure

  • To add a data grid to a gridset, specify the gridset name, the data grid name, and a list of proxies that other data grids can use to contact the data grid. This is required for the primary as well as mirror grids.
    tibdg gridset add gridset1 grid1 10.0.0.1:9001 10.0.0.2:9001 10.0.0.3:9001
    Warning: Do not create tables on data grids that are intended to be mirror grids. With the tibdg tool, you cannot add mirror grids with configured tables in a gridset.

What to do next

After adding a data grid to the gridset, configure at least one proxy that listens on a static mirroring host and port. Some examples of a static mirroring host and port are 10.0.0.1:9001, 10.0.0.2:9001, or 10.0.0.3:9001.The code snippet shown earlier in this topic on adding a data grid to the gridset also has examples of the list of IP addresses and ports. Ensure that other data grids in the gridset can communicate with the newly added data grid at these IP addresses and ports. For details about configuring a proxy with a static host and port, see Configuring a Proxy with Static Mirroring Host and Port.