Product Documentation

Replication Manager

Previous Topic

Next Topic

Quick Start

This chapter provides a quick guide to installing and configuring the Replication Manager for experimenting with its many features. When you install in a real-world environment, such as when you roll it out throughout your enterprise, rest assured that Replication Manager provides many installation and configuration options so you can tailor it to your needs.

In This Chapter

Downloading Replication Manager

Configuring Replication Manager

Running Replication Manager

Setting Up Replication - An Overview

Previous Topic

Next Topic

Downloading Replication Manager

The FairCom Replication Manager is distributed in a .zip or .tar package with a name similar to the following:

  • FairCom DB.<platform>.ReplicationManager.<build>

Installation involves simply extracting the package onto your server file system.

The package contains the centralized replication components (the Replication Manager controller, database, and browser‑based graphical tools).

Note: It is possible to install and run Replication Manager on the same system where a FairCom DB, FairCom Edge, or c-treeRTG server is running, but you will need to change the https port in config/cthttpd.json. See Configuration, below.

You will need to edit the config/ctagent.json configuration files on the FairCom DB, FairCom Edge, and/or c-treeRTG server nodes to point to the Replication Manager. See Configuration, below.

You may need to update the licenses on the server nodes to ensure replication is enabled for each database server node.

Note: Your FairCom DB, FairCom Edge, and/or c-treeRTG servers will need to be updated to the latest build: V11.7.0 or later.

After downloading and unzipping the Replication Manager package, you will see a directory structure similar to the following:

  • ReplicationManager – This is the folder containing Replication Manager. The application to launch (memphis, or Memphis.exe on Windows) is contained in this directory.
  • ReplicationManager\web – Browser-based versions of the graphical tools, including Replication Manager as well as FairCom SQL Explorer, FairCom ISAM Explorer, and FairCom Monitor.

 

Previous Topic

Next Topic

Configuring Replication Manager

To enable replication, the following lines should be seen in ctsrvr.cfg:

; Plugins

PLUGIN cthttpd;./web/cthttpd.dll

PLUGIN ctagent;./agent/ctAgent.dll

The lines shown above enable the plug-in that handles web communication (cthttpd) and the agent that performs the replication (ctagent).

Configuration involves these files: config/ctagent.json and config/cthttpd.json.

ctagent.json:

{

"embedded": true,

"log_file": "agentLog.txt",

"memphis_server_name": "MEMPHIS",

"memphis_sql_port": 7000,

"memphis_host": "localhost",

"memphis_database": "MEMPHIS",

"ctree_check_mask": "*.dat;*.idx;*.fdd;*.fsd",

"inactive_timeout": 600

}

cthttpd.json:

{

"listening_http_port": 8080,

"listening_https_port": 8443,

"ssl_certificate": "./web/fccert.pem",

"document_root": "./web/apps",

"applications": [

"ctree;ctREST.dll",

"AceMonitor;ctMonitor.dll",

"SQLExplorer;ctSQLExplorer.dll",

"ISAMExplorer;ctISAMExplorer.dll",

"ReplicationManager;ctReplicationManager.dll"

]

}

Note: If you are running Replication Manager on the same machine as the FairCom Database Engine, you will need to adjust the ports so they do not conflict. Select unused values for "listening_http_port" and "listening_https_port". The ports available on your machine will depend on your environment. A good starting point it to simply add 1 to each of the port numbers listed in the configuration file.

Experimenting in Your Lab: If you want to experiment with replication in your lab, you can set up Replication Manager and two FairCom DB servers on the same machine. In that case, all three servers must use unique ports.

Server Name and Port

If the server has both SERVER_NAME and SERVER_PORT configured, it will always use the SERVER_PORT, so even if it is a local machine connection, it will use TCP-IP instead of shared memory.

Previous Topic

Next Topic

Running Replication Manager

After unzipping Replication Manager into the desired folder and checking the configuration, it is ready to run:

  1. In the ReplicationManager folder, execute memphis (Linux) or Memphis.exe (Windows) to launch Replication Manager.
  2. Bring up your other c-tree Servers (faircom.exe, ctreesql.exe, ctreeEdge.exe, or ctsrvr.exe).

    Note: It is important that the c-tree Server engines are started after the Replication application is running, so the automatic registration is completed. You will know this step did not complete correctly if your c-tree Server does not appear in the Replication Manager.

  3. Open a web browser and enter this URL:

    https://hostname-of-your-server:8440/ReplicationManager/

    For example:

    https://localhost:8440/ReplicationManager/

    Tip: If the localhost domain name does not work, use the IP Address 127.0.0.1.

    If you get a security or certificate error, you will have to click Details and click the link that allows you to continue on to the web page.

  4. You should see the login page for the Replication Manager. The user name and password should be filled in automatically.

    User: "admin"

    Password: "ADMIN"

After you have logged into Replication Manager, you will see the interface described in this document.

 

Previous Topic

Next Topic

Setting Up Replication - An Overview

The rest of this document explains much more about replication. To get a quick idea of the process, you can set up replication using these simple steps:

  1. Hover over the edge of the source server: A chain-link appears. Drag from the source server and drop on the target server.
  2. Click Create New Publication and use the Replication Wizard to create a Publication (the files on the source server to be replicated). Then click Subscribe to make a Subscription (the destination of the replicated files on the target server).
  3. Under Existing Plans, click the arrow next to a plan to Deploy it then click Start to begin replication.

The Replication Manager provides many features for fine-tuning your replication plan, importing existing replication, and monitoring your replication environment. The rest of this document explains these features in detail.

 

TOCIndex