http://support.citrix.com/proddocs/topic/xenapp65-planning/ps-planning-datastore-intro-v2.html?_ga=1.50490985.1747981757.1428398346
When you deploy your server farm, it must have an associated data store. When servers in a farm come online, they query the data store for configuration information. The data store provides a repository of persistent information, including:
- Farm configuration information
- Published application configurations
- Server configurations
- Citrix administrator accounts
- Printer configurations
The System Requirements lists the databases you can use for the farm data store. For information about supported database versions, see http://support.citrix.com/article/CTX114501.
Choosing a Database
Consider these factors before deciding which database product to use:
- The number of servers you currently plan to have in the farm, and whether or not you plan to expand that number
- Whether or not you have a database administrator with the expertise to configure and manage a data store running on SQL Server or Oracle
- Whether or not you foresee the enterprise expanding, which would result in expanding the size and maintenance of the database
- Any database maintenance requirements, such as backup, redundancy, and replication
General recommendations are listed below, based on the following size table.
|
Small |
Medium |
Large |
Enterprise |
Servers |
1-50 |
25-100 |
50-100 |
100 or more |
Named Users |
< 150 |
< 3000 |
< 5000 |
> 3000 |
Applications |
< 100 |
< 100 |
< 500 |
< 2000 |
See the database product documentation for hardware requirements for the database server.
Important: Ensure that the data store is backed up regularly. If the data store database is lost, you must recreate the farm. You cannot recreate the data store from an existing farm.
Database Server Hardware Performance Considerations
Increasing the CPU power and speed of the database server can improve the response time of queries made to the data store when:
- Starting the Citrix IMA Service on multiple servers simultaneously
- Adding a server to the farm
- Removing a server from the farm
The response time of other events (such as starting the IMA Service on a single server, recreating the local host cache, or replicating printer drivers to all servers in the farm) is affected more by the farm size than by the data store response time.
Adding processors to the server hosting the data store can improve response time when executing multiple simultaneous queries. In environments with large numbers of servers coming online simultaneously and at frequent intervals, additional processors can service requests faster.
The capabilities of the processor on the database server affect management console performance, how long it takes to add (configure) and remove a server from the farm, and how long it takes to start multiple servers simultaneously.
In the following chart, five sample farm configurations (A through E) are listed, with measurements of various metrics in the farm.
Configuration |
A |
B |
C |
D |
E |
Number of servers in farm |
50 |
100 |
250 |
500 |
1000 |
Number of applications published to all servers |
50 |
50 |
50 |
50 |
50 |
Number of user policies |
25 |
25 |
25 |
25 |
25 |
Printers per server |
5 |
5 |
5 |
5 |
5 |
Printer drivers installed per server |
25 |
25 |
25 |
25 |
25 |
Network print servers with printers |
5 |
5 |
5 |
5 |
5 |
Number of Load Manager load evaluators |
10 |
10 |
10 |
10 |
10 |
Number of application folders in management console |
10 |
10 |
10 |
10 |
10 |
Number of server folders in management console |
8 |
16 |
25 |
50 |
50 |
Number of Application Isolation Environments |
10 |
10 |
10 |
10 |
10 |
Number of Citrix administrators |
10 |
10 |
10 |
10 |
10 |
Size of data store database in megabytes |
32 |
51 |
76 |
125 |
211 |
The following table lists suggested hardware for the server hosting the data store, for each configuration in the previous table.
Configuration |
A |
B |
C |
D |
E |
Dual Pentium 4/1.6GHz with 2GB RAM |
X |
X |
X |
|
|
Dual Pentium 4/3.0GHz with 4GB RAM |
X |
X |
X |
X |
|
Quad Pentium 4/3.0GHz with 4GB RAM |
X |
X |
X |
X |
X |
The actual performance of a farm’s data store varies depending on the database engine and the level of performance tuning achieved.
Replication Considerations
When you join a new server to a XenApp farm, a significant amount of time can be spent waiting for the server’s Citrix Independent Management Architecture (IMA) service to start and come online. As a result, you might choose to configure SQL data store replication at each remote site, to allow member servers to point to their local SQL subscriber and avoid the slowness of traversing the WAN. However, as your farm expands geographically, the overhead of administering SQL subscribers at each of your sites becomes a burden.
In XenApp 6.5, you can configure servers in session-host mode (also known as session-only mode). This server mode allows XenApp servers to join a farm in significantly less time with substantial bandwidth savings.
When a XenApp server joins a farm, it performs numerous read and write operations to the IMA data store as well as a download of the farm data to its Local Host Cache (LHC). In previous releases of XenApp, all member servers of the farm were required to download all farm data to their LHC during a join, resulting in a large amount of data store transactions and bandwidth consumption. In XenApp 6.5, you can dedicate a select few servers as XenApp controllers which are responsible for farm management tasks, while the remaining member servers are session-only servers whose sole task is to host user sessions. XenApp controllers must synchronize all of the farm data, while session-only servers must synchronize only a subset of the information to their LHC. These changes result in fewer database transactions, less bandwidth consumption, and faster IMA startup performance.
While session-only XenApp servers can host XenApp user sessions, they cannot perform the role of data collectors, nor can they participate in or trigger a data collector zone election. The XML service does not run on session-only XenApp servers; therefore, the Web Interface cannot use them to perform application enumerations. Additionally, management tasks such as AppCenter discovery or PowerShell tasks cannot be run directly on a session-only server. However, with proper planning and placement of XenApp controller servers, leveraging the session-only model can optimize your farm performance and reduce IMA bandwidth and server provisioning time.
You specify the XenApp server mode through the Server Role Manager when you configure the XenApp role to join a farm. For more information, see the XenApp Server Mode section in Before Configuring XenApp.
If you used data store replication in previous XenApp deployments, note that in XenApp 6.5:
- Replication is no longer required because IMA architectural changes have significantly improved WAN performance.
- Future versions of Microsoft SQL Server may not support the replication model that XenApp supports (transactional replication with immediate updating subscribers).
Therefore, although you can replicate a XenApp 6.5 data store on SQL Server 2008 R2 and earlier versions, you do not need to, and you may not be able to with later SQL Server versions.
Planning for Configuration Logging and IMA Encryption
The IMA encryption feature provides a robust AES encryption algorithm to protect sensitive data in the IMA data store. Enabling IMA encryption provides an additional layer of security for the data preserved by the Configuration Logging feature.
If you do not enable IMA encryption, XenApp uses the standard encryption used in previous versions of XenApp. The Securing Server Farms documentation contains more information about IMA encryption, Configuration Logging, and when to enable these features.
To enable IMA encryption, you specify a key which is used for all the servers in your farm. To generate the key, use CTXKEYTOOL, which is available on the installation media.
For custom installations or provisioning servers in large environments, consider:
- Deploying XenApp by using images, and including the key file as part of the server image
- Generating a key, putting the key in a folder on your network, using a UNC path to specify the location, and performing an unattended installation
If you have multiple farms in your environment, Citrix recommends you generate separate keys for each farm.