Configuring Integration Services in a Cluster
Clustering Integration Services is not recommended because the Integration Services service is not a clustered or cluster-aware service, and does not support failover from one cluster node to another. Therefore, in a clustered environment, Integration Services should be installed and started as a stand-alone service on each node in the cluster.
Important
Microsoft does not recommend that the Integration Services service be configured as a cluster resource.
Although the Integration Services service is not a clustered service, you can manually configure the service to operate as a cluster resource after you install Integration Services separately on each node of the cluster. For those customers who conclude that the advantages of this configuration outweigh the disadvantages, this topic contains instructions for configuring the service as a cluster resource.
However, if high availability is your goal in establishing a clustered hardware environment, you can achieve this goal without configuring the Integration Services service as a cluster resource. To manage your packages on any node in the cluster from any other node in the cluster, modify the configuration file for the Integration Services service on each node in the cluster. You modify each of these configuration files to point to all available instances of SQL Server on which packages are stored. This solution provides the high availability that most customers need, without the potential problems encountered when the Integration Services service is configured as a cluster resource. For more information about how to change the configuration file, see Configuring the Integration Services (SSIS) Service.
Understanding the Role of the Integration Services Service
Understanding the role of the Integration Services service is critical to making an informed decision about how to configure the service in a clustered environment.
The Integration Services service supports the administrative interface in SQL Server Management Studio for listing, starting, stopping, monitoring, importing, and exporting Integration Services packages. The Integration Services service is not required to design packages. The Integration Services service is also not required to run packages, or to schedule SQL Server Agent jobs that run packages.
These are some of the tasks that you can accomplish even when the Integration Services service is not running:
Design and run packages in Business Intelligence Development Studio.
Run packages by using the dtexec command prompt utility (dtexec.exe), the Execute Package Utility (dtexecui.exe), SQL Server Agent, or the SQL Server Import and Export Wizard.
List packages that are stored in the msdb database by using a Transact-SQL query, and list packages that are stored in the file system by using Windows Explorer.
Create and run SQL Server Agent jobs and maintenance plans.
Understanding the Disadvantages of Configuring Integration Services as a Cluster Resource
Some of the potential disadvantages of configuring the Integration Services service as a cluster resource include the following:
When a failover occurs, running packages do not restart. You can recover from package failures by restarting packages from checkpoints. You can restart from checkpoints without configuring the service as a cluster resource. For more information, see Restarting Failed Packages by Using Checkpoints.
When you configure the Integration Services service in a different resource group from SQL Server, you cannot use Management Studio from client computers to manage packages that are stored in the msdb database. The Integration Services service cannot delegate credentials in this double-hop scenario.
When you have multiple SQL Server resource groups that include the Integration Services service in a cluster, a failover could lead to unexpected results. Consider the following scenario. Group1, which includes the SQL Server service and the Integration Services service, is running on Node A. Group2, which also includes the SQL Server service and the Integration Services service, is running on Node B. Group 2 fails over to Node A. The attempt to start another instance of the Integration Services service on Node A fails because the Integration Services service is a single-instance service. Whether the SQL Server service that is trying to fail over to Node A also fails depends on the configuration of the Integration Services service in Group 2. If the Integration Services service was configured to affect the other services in the resource group, the SQL Server service that is failing over will fail because the Integration Services service failed. If the service was configured not to affect the other services in the resource group, the SQL Server service will be able to fail over to Node A.Unless the Integration Services service in Group 2 was configured not to affect the other services in the resource group, the failure of the Integration Services service that is failing over could cause the SQL Server service that is failing over to fail also.
Configuring the Integration Services Service as a Cluster Resource
For those customers who conclude that the advantages of configuring the Integration Services service as a cluster resource outweigh the disadvantages, this section contains the necessary configuration instructions. However, Microsoft does not recommend that the Integration Services service be configured as a cluster resource.
To configure the Integration Services service as a cluster resource, you have to follow these steps:
Install Integration Services on a cluster.
Configure Integration Services as a cluster resource.
Configure the Integration Services service and package store.
Bring the Integration Services service online as a cluster resource.
Installing Integration Services on a Cluster
To install Integration Services on a cluster, you must install Integration Services on each node in the cluster.
To install Integration Services on a cluster
Install and configure a cluster with one or more nodes.
(Optional) Install clustered services, such as the SQL Server Database Engine.
Install Integration Services on each node of the cluster.
Configuring Integration Services as a Cluster Resource
With Integration Services installed on each node in the cluster, you need to configure Integration Services as a cluster resource. When you configure the Integration Services service as a cluster resource, you can add the service to the same resource group as the SQL Server Database Engine, or to a different group. The following table describes the possible advantages and disadvantages in selecting a resource group.
When Integration Services and SQL Server are in the same resource group |
When Integration Services and SQL Server are in different resource groups |
---|---|
Client computers can use SQL Server Management Studio to manage packages stored in the msdb database because both the SQL Server Database Engine and Integration Services service are running on the same virtual server. This configuration avoids the delegation issues of the double-hop scenario. |
Client computers cannot use SQL Server Management Studio to manage packages stored in the msdb database. The client can connect to the virtual server on which the Integration Services service is running. However, that computer cannot delegate the user's credentials to the virtual server on which SQL Server is running. This is known as a double-hop scenario. |
The Integration Services service competes with other SQL Server services for CPU and other computer resources. |
The Integration Services service does not compete with other SQL Server services for CPU and other computer resources because the different resource groups are configured on different nodes. |
The loading and saving of packages to the msdb database is faster and generates less network traffic because both services are running on the same computer. |
The loading and saving of packages to the msdb database might be slower and generate more network traffic. |
Both services are online or offline at the same time. |
The Integration Services service might be online while the SQL Server Database Engine is offline. Thus, the packages stored in the msdb database of the SQL Server Database Engine are unavailable. |
The Integration Services service cannot be moved quickly to another node if it is required. |
The Integration Services service can be moved more quickly to another node if it is required. |
After you have decided to which resource group you will add Integration Services, you have to configure Integration Services as a cluster resource in that group.
To configure Integration Services as a cluster resource
Open the Cluster Administrator.
In the console tree, select the Groups folder.
In the results pane, select the group to which you plan to add Integration Services:
To add Integrations Services as a cluster resource to the same resource group as SQL Server, select the group to which SQL Server belongs.
To add Integrations Services as a cluster resource to a different group than SQL Server, select a group other than the group to which SQL Server belongs.
On the File menu, point to New, and then click Resource.
On the New Resource page of the Resource Wizard, type a name and select “Generic Service” as the Service Type. Do not change the value of Group. Click Next.
On the Possible Owners page, add or remove the nodes of the cluster as the possible owners of the resource. Click Next.
To add dependencies, on the Dependencies page, select a resource under Available resources, and then click Add. In case of a failover, both SQL Server and the shared disk that stores Integration Services packages should come back online before Integration Services is brought online. After you have selected the dependencies, click Next.
On the Generic Service Parameters page, enter MsDtsServer100 as the name of the service. Click Next.
On the Registry Replication page, click Add to add the registry key that identifies the location of the configuration file for the Integration Services service. This file must be located on a shared disk that is in the same resource group as the Integration Services service.
In the Registry Key dialog box, type SOFTWARE\Microsoft\Microsoft SQL Server\100\SSIS\ServiceConfigFile. Click OK, and then click Finish.
The Integration Services service has now been added as a cluster resource.
Configuring the Integration Services Service and Package Store
Having configured Integration Services as a cluster resource, you must modify the location and the content of the configuration file for the Integration Services service on each node in the cluster. These modifications make both the configuration file and the package store available to all nodes if there is a failover. After you modify the location and content of the configuration file, you have to bring the service online.
To configure the Integration Services Service and Package Store
Locate the configuration file at %ProgramFiles%\Microsoft SQL Server\100\DTS\Binn\MsDtsSrvr.ini.xml. Copy it to the shared disk for the group to which you added the Integration Services service.
On the shared disk, create a new folder named Packages to serve as the package store. Grant List Folders and Write permissions on the new folder to appropriate users and groups.
On the shared disk, open the configuration file in a text or XML editor. Change the value of the ServerName element to the name of the virtual SQL Server that is in the same resource group.
Change the value of the StorePath element to the fully-qualified path of the Packages folder created on the shared disk in a previous step.
Update the value of HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\100\SSIS\ServiceConfigFile in the Registry to the fully-qualified path and file name of the service configuration file on the shared disk.
To bring the Integration Services service online
- In the Cluster Administrator, select the Integration Services service, right-click, and select Bring Online from the popup menu. The Integration Services service is now online as a cluster resource.
Connecting to Integration Services in a Cluster
After configuring the Integration Services service on a cluster, or on any server, you might have to configure DCOM permissions before you can connect to the service from a client computer. For more information, see Connecting to a Remote Integration Services Server.
The Integration Services service cannot delegate credentials. Therefore, you cannot use Management Studio to manage packages stored in the msdb database when the following conditions are true:
The Integration Services service and SQL Server are running on separate servers or virtual servers.
The client that is running SQL Server Management Studio is a third computer.
The client can connect to the virtual server on which the Integration Services service is running. However, that computer cannot delegate the user's credentials to the virtual server on which SQL Server is running. This is known as a double-hop scenario.
|