High Availability Samples

Overview

The samples in this part demonstrate best practices for implementing highly available clusters of StreamBase Servers. They show how to separate the high availability logic from the rest of the application logic, as well as design patterns that you can use to address specific high availability requirements.

  • High Availability Sample — This sample shows two StreamBase Server instances running together in an active-active high availability cluster. The sample runs the same simple application in two servers, one designated primary and the other designated secondary. The servers coordinate their behavior through the HA Heartbeat adapter to provide highly available access to the output of the application.

  • High Availability Sample 2: Shared Disk Access — This sample shows a design pattern different from the HA sample. For instance it does not use an HA HeartBeat adapter. The HA2 sample shows:

    • How to ensure that an application is running on one or the other of two servers, where the application requires access to a disk-based query table. (This feature requires StreamBase Enterprise Edition.)

    • How to test for the presence of an application in another container and start the application if it is not found.

    • How to use the External Process Command Line operator to run commands specific to high availability design patterns.

    The HA2 sample requires a StreamBase license that enables the use of disk query tables.