sp_cluster logical, set

Description

Sets logical cluster rules: the open logical cluster, the failover mode, the system view, the start-up mode, and the load profile.

Syntax

sp_cluster logical, "set", lc_name, {
	open | 
	failover, failover_mode |
	system_view, view_mode |
	startup, { automatic | manual } | 
	load_profile, profile_name }
        login_distribution, { affinity | "round-robin" }

Parameters

lc_name – is the name of a logical cluster.

open – sets the open logical cluster. Unrouted connections are sent to the open logical cluster.

failover failover_mode – sets the failover mode of the logical cluster. Values for failover_mode are:

system_view view_mode – sets the default system view for tasks running in the logical cluster. Values for view_mode are:

startup { automatic | manual }– sets the start-up mode of the logical cluster.

load_profile profile_name – specifies the load profile used to compute load scores for the logical cluster. Values for profile_name are:

login_distribution – specifies how the Cluster Edition distributes connections when a logical cluster spans multiple instances.

Examples

Example 33

Example 1 Sets the load profile for the “SalesLC” logical cluster to the Sybase profile sybase_profile_oltp.

sp_cluster logical, "set", SalesLC, load_profile, sybase_profile_oltp

Example 34

Example 2 Sets the default system view to cluster.

sp_cluster logical, "set", SalesLC, system_view, cluster

Usage