Creating and configuring clusters

This section describes how to use the Management Console to create, configure, and manage a cluster.

StepsCreating a cluster

  1. Highlight the Clusters folder, right-click, and select Add.

  2. In the New Cluster wizard, enter a name for the cluster.

  3. Select the primary server. The default selection is the server to which the Management Console is connected.

    When you synchronize the cluster, the primary server’s properties are distributed to the participating servers.

  4. Select the participating servers. A server is available to add to the cluster only if it is not a member of another cluster.

    If no servers are available to add to the cluster, you can create a new server by entering the following values, then selecting Add New Server:

    • Server Name – a name for the new server.

    • Host Name – the name of the machine that hosts the new server. If the name of the server is different than the name of the machine, enter the fully-qualified machine name; for example, mach1.sybase.com.

    • IIOP Port Number – the server’s IIOP port number.

    • HTTP Port Number – the server’s HTTP port number.

    A new server is created with an IIOP listener and an HTTP listener. The listeners are named serverName_iiop and serverName_http, where serverName is the name of the new server. After you create a new server, the server displays in the Participating Servers list, and it is selected as a member of the cluster.

    To add another server, repeat this step.

  5. On the Summary page, verify the cluster configuration. Select Back to return to a previous page, or select Finish to create the cluster.

    When you create a cluster, these export configuration files are generated automatically:

    • sync-clusterName, which you can use to synchronize the cluster. clusterName represents the name of the cluster.

    • sync-clusterName-security, which you can use to synchronize security changes, such as new users, roles, and role assignments.

    See “Creating export configurations”.

NoteCluster members must all have the same administrative password All servers in a cluster must have the same password for the admin@system user. This password is used to establish a trust relationship between the servers. Load balancing relies on trusted interserver communication, as does JMS clustering.

StepsAdding servers to a cluster

If all the servers in a cluster run on separate machines, all the servers can use the same listener ports. If multiple servers in a cluster run on the same machine, they must use different listener ports.

Use the Management Console to connect to the primary server, and add participating servers to the cluster.

  1. Expand the Clusters icon.

  2. Highlight the cluster to which you want to add servers.

  3. On the General tab, enter the following information, then click Apply:

  4. After you add servers to the cluster, configure and build the cluster’s export configuration to enable synchronization—see “Defining the components of an export configuration”. When you configure the export configuration, select Restart Servers After Synchronizing to ensure that all the servers in the cluster use the same security-key information for interserver configuration.

    If you add more servers later, you must synchronize the cluster again.

WARNING! After you add a nonprimary server to a cluster, the Management Console warns you when you connect directly to that server. If the new server has been the target of at least one synchronization before it was added as a cluster member, direct user updates to the server’s configuration may be overwritten when the cluster is synchronized.

Sample cluster

This example illustrates how to create a new server and a cluster that contains the default server and the new server.

StepsCreating a new server and a cluster

  1. While connected to the default server, create a new server:

    1. In the Management Console, highlight Servers, right-click, and select Add.

    2. Enter the following, then select Next:

      • Server Name – the name of the server.

      • Server Host Name – the name of the machine on which the server runs; for example, machine2.sybase.com.

        If the server and the machine on which it runs have the same name, you need not enter the domain.

    3. Add an IIOP listener by selecting Create a New Listener, clicking Add Listener, then entering:

      • Listener Name – a name for the IIOP listener.

      • Listener URL – select IIOP, then enter the machine name and the IIOP port number.

    4. Add an HTTP listener by clicking Add Listener, then entering:

      • Listener Name – a name for the HTTP listener.

      • Listener URL – select HTTP, then enter the machine name and the HTTP port number.

    5. Select Finish.

  2. Create a cluster that includes the default server and the new server:

    1. Select the Clusters node, right-click, and choose Add.

    2. In the wizard, enter a name for the cluster, and select Finish.

    3. In the left pane, highlight the cluster, then on the General tab:

      • Primary Server – select the server to which you are connected.

      • Participating Servers – choose Select, then choose the server you just created.

    4. Click Apply.

StepsRemoving a server from a cluster

  1. Expand the Clusters icon, and select the cluster from which to remove the server.

  2. On the General tab, unselect the server from the list of participating servers. To remove all the servers from the cluster, select None.

  3. Click Apply.

  4. Re-create the cluster’s export configuration, and synchronize the cluster—select Restart Servers After Synchronizing to restart the participating servers.

StepsDeleting an existing cluster

  1. Expand the Clusters icon, and select the cluster to delete.

  2. Right-click, and select Delete. In the Delete wizard, confirm that you want to delete the cluster.