Cluster partitions

A cluster partition allows you to define a subset of a cluster consisting of primary and backup servers. You can configure individual components, message queues, and topics to be serviced only by the servers in a specific partition. Each server can be assigned to multiple partitions.

A cluster can contain one or more partitions, and each partition identifies preferred servers and alternate servers. Cluster partitions provide an effective way to perform load balancing without sacrificing high availability. Client requests are handled by one or more of the preferred servers in a partition, unless there are none available, in which case, the alternate servers handle the requests.

You can implement “hot standby” by creating a cluster partition with two members, a preferred server and an alternate server.

To facilitate cluster synchronization, Sybase recommends that you do not assign a cluster’s primary server to a cluster partition.

StepsCreating a cluster partition

  1. In the Management Console, highlight the Cluster Partitions icon, right-click, and select Add.

  2. Complete the wizard, and select Finish.

  3. Add servers to the cluster partition.

StepsConfiguring a cluster partition

  1. Expand the Cluster Partitions folder, and select the cluster partition to configure.

  2. On the General tab, enter:

StepsAssigning an EJB component to a cluster partition using the Management Console

  1. In the Management Console, expand the EJB Modules folder, and select the EJB to configure.

  2. On the Advanced tab, enter the name of the cluster partition, then click Apply.

  3. Select Synchronize to update the value of the cluster partition in the Ant configuration file that defines the EJB.

StepsAssigning a message queue or topic to a cluster partition using the Management Console

  1. In the Management Console, expand the Resources folder and either the JMS Message Queues or JMS Message Topics folder.

  2. Select the message queue or topic to configure.

  3. On the General tab, select the cluster partition from the list. Click Apply.

StepsAssigning an EJB component to a cluster partition by editing the Ant configuration file

  1. In the Ant configuration file that defines the EJB component, enter the following property definition, where myPartition is the name of the cluster partition:

    <clusterPartition partition_name = “myPartition”/>