evenly distributes scheduled jobs. Your jobs are run either through the Admin console or the REST API, depending on which instance of you are connected to at the time.
Understanding Clustering
To take advantage of the failover features that are supported in , you should install the application on multiple systems within the same server farm (the same cluster). When they are configured for clustering, each installation in the server farm uses the same application configuration and distributes job executions between each server. As a result, multiple instances of the application behave like a single instance, and any particular instance can fail without jeopardizing the performance of the cluster. The overall steps to set clustering are as follows:- Set the application directory.
- Set the application database.
- Set the Enable Cluster mode option to True in (Settings > Advanced).
- Restart .
Configuring for Clustering
After you install on each node within a cluster, you need to configure your application directory and application database. Then, you need to configure each installation to use the same application directory and application database.For jobs to be distributed across nodes properly, ensure that all nodes are in the same time zone and synchronize the node clock at least to second-level precision.
Configuring the Application Directory
stores all configuration data and application data in a directory (folder) on the disk. When you use clustering, you should configure each instance of to use the same application directory. This configuration ensures that all instances of the application process the same files and use the same configuration. To configure the application directory:-
Set up your application directory as follows, dependent on which server you use.
Cross-Platform Edition with the Embedded Jetty Server:
-
Open the sync.properties file that resides in
InstallationDirectory. For details about how to generate this file, see Generating the sync.properties File. -
Set the
AppDirectoryenvironment variable to the directory path that you want to use, as shown in this example:If can locate the path and it has the appropriate permissions to read and write at that location, it creates the data folder within the specified directory.
AppDirectoryenvironment variable to the directory path that you want. If can locate the path and it has the appropriate permissions to read and write at that location, it creates the data folder within the specified directory. -
Open the sync.properties file that resides in
- Configure each installation to use the same application directory.
Configuring the Application Database
uses a database to store the application data (jobs, connections, and so on) and logging information. You should configure each instance of to use the same application database. Doing so ensures that each instance can access all the job information. To configure the application data directory:-
Set up your application database as follows, dependent on which server you use.
Cross-Platform Edition with the Embedded Jetty Server:
-
Open the sync.properties file that resides in
InstallationDirectory. For details about how to generate this file, see Generating the sync.properties File. -
Set the
APP_DBenvironment variable to a Java Database Connectivity (JDBC) connection string that contains the appropriate connection parameters for the database that you want to use, as shown in the following examples: MySQLPostgreSQLSQL ServerIf can establish a connection successfully with thecdata.app.dbconnection string, it uses that database as the application database.
- Define a Java Naming and Directory Interface (JNDI) data source to include the connection properties for the target database.
-
Set the
APP_DBenvironment variable to a JDBC connection string.
APP_DBconnection string to connect to a database, it uses that database as the application database. -
Open the sync.properties file that resides in
- Configure each installation to use the same application database.