Configuring Containers for High Availability

A description of the steps you must complete for all individual Sybase CEP Servers acting as Containers in your cluster when configuring Container High Availability.

Some values have already been set appropriately by the installation program, but other preferences will need to be set manually. Refer to the information from "Preparing to Configure High Availability Features" while you work on this section.

  1. Set the "SybaseC8/Server/Common/ManagerURI" preference in the c8-server.conf configuration file of every Container, to the same setting specified for Manager(s) in Step 1 of "Configuring Managers for Manager or Container High Availability".

    If the cluster includes multiple Managers, this preference is the DNS URI alias. Otherwise, if the cluster includes only one Manager, with no Manager failover features, this setting is the local address of the Manager.

  2. In the "Container" section of each Container's c8-server.conf configuration file, set the "HeartbeatFrequencySeconds" preference to the rate at which you want the Container to send heartbeats to the Manager, for example:
    <section name="Container">
       ...
        <!-- the frequency with which container sends
          SOAP heartbeat messages to the manager -->
       <preference name="HeartbeatFrequencySeconds">5</preference>
    

    The default setting for this preference is five (5). A setting of zero (0) disables heartbeats. Make sure that this setting is not disabled when configuring High Availability.

  3. Set the "SybaseC8/Server/Common/StoragePath" preference in the c8-server.conf configuration file for all the Containers in your cluster to the directory designated in Step 6 of "Configuring Managers for Manager or Container High Availability".

    If preventing query data or state information loss during failover is important to you, set the "StoragePath" to the same shared directory for all Containers. If Persistence is enabled for your query module, the "StoragePath" preference for all Containers must be set to the same location.

    Make sure to specify the complete directory path and file name for the "StoragePath". For example:

    <section name="SybaseC8/Server">
       <section name="Common">
          ...
          <!-- the path on disk, under which the server 
            components
          (directory, workspace mgr, qp state, etc) should   
            persist -->
          <preference name="StoragePath"
            value=C:\Program Files\SybaseC8\Server\storage/>
    
  4. If you are using file-based adapters, such as the CSV, Binary or XML input or output adapters, set the "SybaseC8/Adapters/ReadWriteBaseFolder" preference for all the Containers to the same shared directory, located on one machine and accessible to all the Containers in your cluster.

    This preference sets all the Containers in your Sybase CEP Server cluster to share read and write access.

    This directory is initially set in the adapters base folder setting during installation. By default, every Sybase CEP Server has its own unique adapters base folder. If the "SybaseC8/Adapters/ReadWriteBaseFolder" default settings are not changed for the Containers in your cluster, then you must copy the .csv, binary or .xml data files for your adapters to every adapters base folder included in your Cluster.