A Quick Look at Setting Up Disaster Recovery

Let us consider the most common use case where you create two data grids, create a gridset, and add them to a gridset in the right order.

To know more about gridsets, see "Gridsets" in TIBCO ActiveSpaces® Concepts. The following sequence helps you set up a disaster recovery model.
# Steps References
1 Create a data grid with a name that is planned to be the primary grid (grid1). Defining a Data Grid.
2 Create a data grid with a name that is planned to be a mirror/DR grid (grid2). Defining a Data Grid.
3

Create at least one proxy in each data grid with the appropriate proxy_mirroring_ static_listen_host and proxy_mirroring_static_listen_port values to set the IP address and port for how other data grids communicate with this data grid.

Creating a Proxy.

To configure static mirroring host and port, see Configuring a Proxy with Static Mirroring Host and Port.

4 Create a gridset by using the tibdg tool with the following command:

tibdg gridset create gridset1

Creating a Gridset.
5

Add the first data grid to the gridset (the first data grid added becomes the primary grid) by using the tibdg command:

tibdg gridset add gridset1 grid1 proxy_static_ip:proxy_static_port

Adding Data Grids to a Gridset.
6

Add the second data grid to the gridset (which becomes a mirror grid) by using the tibdg command: .

tibdg gridset add gridset1 grid2 proxy_static_ip:proxy_static_port

Adding Data Grids to a Gridset.
7 Start the data grids and create a checkpoint in the primary grid so that it is mirrored to the mirror grid. Perform the following steps:
  • The primary grid must run a primary realm service
  • A mirror grid must run a satellite realm service, which is achieved by specifying the following configuration file option:

    satelliteof <primary realm URL list>

    For details about realm services, see "Realm Service" in TIBCO FTL® Administration. For details about satellite realm services, see "Server Roles and Relationships in TIBCO FTL® Administration.

To start the data grid processes, see Starting the Data Grid Processes.

To create a checkpoint, see Creating a Checkpoint.

8 In the event of a disaster, make the mirror grid the new primary grid by using the tibdg command: tibdg gridset setPrimary gridset1 grid2 . See Activating the Mirror Grid as the Primary Grid.