
Chapter 3 Jaguar Clusters and Synchronization
Configuring a cluster
This section describes the steps required to create, configure,
and manage a cluster using Jaguar Manager.
Creating a cluster fom Jaguar Manager
-
Highlight the Clusters folder.
-
Select File | New Cluster.
-
Enter the name of the new cluster in the New Cluster
dialog box and click Create New Cluster.
The names of all clusters appear on the right side of the
window when you highlight the Clusters folder.
To set the initial context used by servers in a cluster when
they bind their objects into the name servers, set the com.sybase.jaguar.cluster.initialcontext
property
on the All Properties tab in the Cluster Properties dialog. For
example, cluster "US_Cluster" may have
initial context "/US", and cluster "UK_Cluster" may have
initial context "/UK". Then clients can
talk to any name server which is used by either "US_Cluster" or "UK_Cluster",
and by specifying the appropriate initial context, (either "/US" or "/UK")
the clients can be directed to the appropriate servers.
Configuring a server to enable synchronization
Before you can add a server to a cluster, you must
configure each physical server to enable synchronization from the
primary server.
-
Use Jaguar Manager to connect to the physical
server. If necessary, define a server that matches a logical server
name defined in the primary server's repository. In other
words, if the primary server's name is Jaguar_cluster, you
must also assign the name Jaguar_cluster to each participating
server.
-
If necessary, configure the listeners of this server.
You must at least configure an IIOP listener to match the URL that
will be used for cluster synchronization. Each like-named server
in a cluster must also share the same listener name.
-
Configure the account that will be used to synchronize
the cluster.
- If you are using jagadmin, change the
jagadmin password to match that of the primary server.
- If you are using an account other than jagadmin,
add that account's user name or digital ID to the Admin
role.
-
Restart the server so the new network addresses and
security changes take effect.
Adding a server to a cluster
Connect to the primary server with Jaguar Manager
and add each physical server to the cluster definition as follows:
-
Click the Clusters icon.
-
Select the cluster to which you want to add servers.
-
Select File | Cluster Properties. The primary
server (the server to which you are connected) displays in the Primary
Server field of the General tab.
-
Select the Servers tab.
-
Click Add.
-
Enter a valid IIOP address for the server, for example
iiop://myhost:9000. This address is used for inter-server
connections when you synchronize the cluster.
-
Once you have added all the servers that you intend
to add to the cluster, synchronize the cluster. The Synchronize
dialog box appears automatically after you add a server and click
OK. See "Synchronizing a cluster
from Jaguar Manager" for
more information. You can add more servers later, but you must then
again synchronize the cluster.
WARNING! | After you add a non-primary server to a cluster,
Jaguar Manager warns you when you connect directly to that server.
Direct user updates to the server's configuration can be
overwritten when the cluster is synchronized if the new server has
been the target of at least one synchronization before it was added
as a member of the cluster.
|
Adding a name server to
a cluster
-
Click the Clusters icon.
-
Select the cluster to which you want to add name servers.
-
Select File | Cluster Properties.
-
Select the Name Servers tab.
-
Click Add.
-
Enter the server's URL (for example, iiop://myhost:9000). When
you have entered all of the name servers for the cluster, click
OK. The Synchronize dialog box appears automatically after you add
a name server and click OK. You can add more name servers later
but must synchronize the cluster afterwards.
-
Synchronize the cluster.
Name servers can also be "ordinary" members
of a cluster (if they are also listed on the Servers tab in the
Cluster Properties dialog). However, if a name server is used by
more than one cluster, it can be an ordinary member of only one
cluster.
Jaguar requires the cluster's bind password to authorize
name context updates to the cluster's name servers. When
you create a cluster, a random bind password is automatically generated.
In most cases, you do not need to edit the password. However, if
a name server is used by two or more clusters, you must configure
the clusters to use the same bind password.
To change the password, modify the com.sybase.jaguar.cluster.bindpassword
property
on the All Properties tab in the Cluster Properties dialog. Sybase
recommends that you use one of the randomly generated passwords,
as security can be compromised if clients obtain knowledge of a
cluster's bind password.
Removing a server from a cluster
-
Click the Clusters icon.
-
Select the cluster from which to remove the server.
-
Select File | Cluster Properties.
-
Select the Servers tab.
-
Highlight the server you want to delete and click Delete.
-
Connect to the deleted server using Jaguar Manager,
and delete the
com.sybase.jaguar.server.cluster
property
from the Server Properties dialog (this tells the server it is no
longer a member of the cluster):
- Double-click the Servers
folder.
- Highlight the server that has been deleted from
the cluster.
- Select File Server Properties.
- Select the All Properties tab.
- Highlight the
com.sybase.jaguar.server.cluster
property.
- Click Delete.
Synchronize the cluster, and restart the name servers.
Removing a name server from a cluster
-
Click the Clusters icon.
-
Select the cluster from which to remove the name server.
-
Select File | Cluster Properties.
-
Select the Name Servers tab.
-
Highlight the server you want to delete and click Delete.
-
Synchronize the cluster.
Deleting an existing cluster
-
Click the Clusters icon.
-
Select the cluster you want to delete.
-
Select File | Delete Cluster.
A server that was part of the deleted cluster may try to connect
to the cluster. In these cases you see error messages in the srv.log file
indicating that the server is in Admin mode and instructing you
to synchronize the cluster to fix the problem. To do so:
- Highlight the server.
- Select File | Server Properties.
- Select the All Properties tab.
- Delete the
com.sybase.jaguar.server.cluster
property.
Rebinding a cluster
The Rebind option refreshes all of the name servers
within a cluster. If you add a component to a server that is already
part of a cluster and want to make that component available to the
cluster, you need to rebind the cluster. You can also use the rebind
option if a problem occurs when you synchronize the cluster; if for
example, one of the name servers is slow to start.
-
Highlight the name of the cluster.
-
Select File | Rebind.
Heartbeat detection
The name servers in a cluster use heartbeat detection to periodically
verify that member servers are either accepting client connections
or have failed. If a server is not accepting connections, the name
server does not return profile (host:port) information to the client,
and routes requests to other servers in the cluster. The name server
also detects when a failed server is ready to accept connections
again and starts routing client requests to that server.
If a name server using transient storage fails, the cluster
rebinds automatically when you reboot the failed name server. Otherwise,
the cluster provides access to components through the remaining
name servers in the cluster.
If a name server using persistent storage and LDAP support
fails, the cluster does not need to rebind, but LDAP may leave behind
stale profiles resulting in unnecessary client retries and failures.
For this reason, Sybase recommends you use transient storage to
support load balancing and high availability.
To enable hearbeat detection from Jaguar Manager:
-
Select the Servers folder.
-
Highlight the name server for which you are configuring
heartbeat detection.
-
Select File | Server Properties.
-
Open the Naming Service tab.
-
Select the Enable Heartbeat check box.
-
Enter the heartbeat frequency. This number is how often,
in seconds, that the name server checks server availability. As
the frequency period is shortened, server performance decreases.
The default frequency is 120 seconds.
When you synchronize a cluster, the heartbeat settings (whether
or not it is enabled and frequency) of the primary server are distributed
to the other name servers in the cluster.
The property com.sybase.jaguar.cluster.primary
stores
the primary server URL for each cluster. The synchronization process
maintains this automatically; you cannot manually change it using
the All Properties tab. The cluster property com.sybase.jaguar.cluster.version
stores
the version number for each cluster. The synchronization process
maintains this automatically.
To view the load on a cluster from Jaguar Manager:
-
Select the Clusters folder.
-
Highlight the cluster you want to view.
-
Select File | Display Cluster Load.
The load graph is a bar chart. The load of each server is
expressed as a percentage. Load is defined as the ratio of the number
of bytes sent in the last 1/2 second over 10,000, expressed
as a percentage.
The status list contains an entry for each server and tells
whether the server is in Ready or Admin mode. If a server is in
Admin mode, the list tells why.
Cluster start-up options
On start-up, a Jaguar server that is a member of a cluster
uses the com.sybase.jaguar.cluster.startup
cluster
property to determine whether it is "in sync" with
other cluster members. Check or modify this property from the All
Properties tab in the Cluster Properties window. com.sybase.jaguar.cluster.startup
can
have these values:
- check_primary
(default
value)
If any other cluster
member (including the primary) is reachable and has a higher cluster
version number, this server moves to Admin mode since it is not "in
sync".
- If the primary is available and has the same cluster
version number, this server joins the cluster and is ready to accept
client connections.
- If the primary is available and has a different
cluster version number, this server moves to Admin mode since it
is not "in sync".
- If none of the above conditions are met, the server
waits briefly then returns to step a.
- check_servers
If any other cluster
member (including the primary) is reachable and has a higher cluster
version number, this server moves to Admin mode since it is not "in
sync".
- Let M be the number of cluster
members (including the primary), and let N equal M/2
(integer division). If at least N other servers
are available and have the same cluster version number, this server
joins the cluster and is ready to accept client connections.
- If none of the above conditions are met, the server
waits briefly then returns to step a.
- The check_servers option allows a server to join
a cluster even if the primary is not available. This prevents a
single point of failure if the primary server becomes unavailable.
- disable_check
- no
checking is performed. Sybase discourages the use of this option
since it can result in "out-of-sync" cluster members
running together.
If a server is in Admin mode due to a cluster version number
mismatch, then using Set Ready is the manual equivalent of disable_check,
so using Set Ready in this case is also discouraged as it may result
in "out-of-sync" cluster members running together.
Sybase recommends that you synchronize the cluster instead. See "Synchronizing a cluster
from Jaguar Manager" for more information.
A server in Admin mode can be put into ready mode using the
Set Ready option. See "Synchronizing a cluster
from Jaguar Manager" for more information.
Copyright © 2000 Sybase, Inc. All rights reserved.
|
|