A description of the steps to complete before you configure High Availability features for Sybase CEP Engine.
Before you configure High Availability features for Sybase CEP Engine, complete the following steps:
In the c8-server.conf configuration file of every Sybase CEP Server in your cluster, designate whether you want Sybase CEP Server to act as a Manager, Container, or both Manager and Container. To do this, set the following preferences:
For every Sybase CEP Server in your cluster that you want to designate as a Container, set the "SybaseC8Server/Container/Enabled" preference to true :
<section name="SybaseC8/Server"> ... <section name="Container"> ... <preference name="Enabled" value="true"/>
For every Sybase CEP Server that is enabled as a Container, that you do not also want to enable as a Manager, set the "SybaseC8/Server/Manager/Enabled" preference to false :
<section name="SybaseC8/Server"> ... <section name="Manager"> ... <preference name="Enabled" value="false"/>
For every Sybase CEP Server in your cluster that you want to enable as a Manager, set the "SybaseC8/Server/Manager/Enabled" preference to true :
<section name="SybaseC8/Server"> ... <section name="Manager"> ... <preference name="Enabled" value="true"/>
For every Sybase CEP Server that is enabled as a Manager that you do not also want to enable as a Container, set the "SybaseC8/Server/Container/Enabled" preference to false :
<section name="SybaseC8/Server"> ... <section name="Container"> ... <preference name="Enabled" value="false"/>
Write down the host name and IP address of every Sybase CEP Server in your cluster, and note whether each Sybase CEP Server is enabled as a Manager, Container, or both. For example:
alpha 10.10.10.97 Manager bravo 10.10.10.98 Container ...
For machines that include multiple network cards and have multiple IP addresses, note both addresses.
Check the following preference settings in the c8-server.conf configuration file of every Sybase CEP Server in your cluster. You will find some of these settings already set appropriately by the installation process, but will need to change others manually.
Set the "SybaseC8/Server/Common/Hostname" preference to the host name you wrote down in Step 2. For example:
<section name="SybaseC8/Server"> <section name="Common"> <!-- the server's hostname --> <preference name="Hostname">alpha</preference>
Set the "SybaseC8/Server/Common/ListenTo" preference to the IP address or host name on which you want the Sybase CEP Server to "listen". The default setting for this preference is 0.0.0.0, which indicates that Sybase CEP Server should listen to all available IP addresses:
<section name="SybaseC8/Server"> <section name="Common"> ... <!-- the server's hostname or IP that it would listen to --> <preference name="ListenTo">0.0.0.0</preference>
Some computers have multiple network cards, and, consequently, multiple IP addresses. If you want to limit the addresses to which Sybase CEP Server listens, list the addresses, or their associated host names here, instead of 0.0.0.0. If you are listing multiple addresses or host names, separate the entries by commas, for example:
<section name="SybaseC8/Server"> <section name="Common"> ... <!-- the server's hostname or IP that it would listen to --> <preference name="ListenTo"> 12.13.14.15, 12.13.200.1</preference>
If more than one Sybase CEP Server uses the same host name or IP address, set each Sybase CEP Server to use a different port number, as shown in the next step. However, two Managers that use the same host name or IP address cannot both be part of a High Availability cluster, since all Managers in such a cluster must have the same port number.
Set the "SybaseC8/Server/Common/Port" preference to the port number you want each Sybase CEP Server to use, for example:
<section name="SybaseC8/Server"> <section name="Common"> ... <!-- the server's port number that it would listen to --> <preference name="Port">6789</preference>
If you plan to configure the Manager failover High Availability, set the port for all Managers in your intended cluster to the same port number.