The Relay Server for Windows consists of the following executables:
For information about which versions of IIS are supported, see http://www.sybase.com/detail?id=1061806.
Setup scripts for Relay Server on IIS can be found in the %SQLANY12%\RelayServer\IIS directory.
Install the Relay Server components using the SQL Anywhere install. By default all files are installed to %SQLANY12% and are based on the bitness of the machine:
%SQLANY12%\Bin32 and %SQLANY12%\Bin64 are used for DLLs and executables for administration.
%SQLANY12%\RelayServer\IIS\Bin32 and %SQLANY12%\RelayServer\IIS\Bin64 are used for Relay Server specific files under the appropriate folder (for example, Admin, Client, Monitor or Server). The Server folder contains the rshost.exe and rs.config files.
Create the following directories under the Default Web Site in the Microsoft IIS Manager for use by the Relay Server:
Create the Relay Server configuration file rs.config using the following guidelines.
The file should have four sections:
Each section starts with a section tag, made by enclosing a keyword that identifies the section name in square brackets.
Add the appropriate properties to each section. A property is defined by specifying the property name on the left-hand side of an equal sign and its value on the right-hand side of the equal sign. For example, property name = value.
The configuration file should contain only 7-bit ASCII characters.
Create an application pool:
Start Microsoft IIS Manager Console.
Right-click Application Pools and create a new application pool, for example RS_POOL.
Edit the properties for the application pool you created.
Select the Recycling tab and turn off all the recycling options.
Select the Performance tab and do the following:
Turn off Shutdown Worker Processes After Being Idle.
Set the number of worker processes to the total number of processing cores. You can further adjust this number depending on your usage and performance preferences. See the Microsoft IIS performance notes about Web garden size for more information.
Set the Connection timeout property of the Default Web Site to a minimum of 60 seconds. By default this value should be 120 seconds, which is sufficient.
Edit the properties of ias_relay_server and enable the Relay Server web extensions:
Select the Directory tab and do the following:
Set execute permissions to Scripts And Executables.
Click Create under Application Settings. Select the application pool you created in step 3 as the associated application pool.
Select the Directory Security tab and do the following:
Click Edit in Authentication and Access Control.
Enable anonymous access and fill in the user name and password for an account belonging to the Administrators group.
Alternatively, you may leave the setting as the built-in user IUSR_%computername% and execute the following command to grant permission to access the Microsoft IIS metabase.
C:\Windows\Microsoft.Net\Framework\<Version>\aspnet_regiis.exe -ga IUSR_%computername% |
Under Web Server Extensions in the Microsoft IIS manager, add rs_server.dll, rs_client.dll, and rs_monitor.dll as a new Web service extension. The extension name should be ISAPI and the DLLs need to have the extension status set to Allowed.
Deploy the Relay Server configuration file by creating a Relay Server configuration file and copying it to the ias_relay_server\server directory.
Copy the rs.config file to the ias_relay_server\server directory.
Ensure optimum performance by reviewing the performance tips. See Performance tips.
Start the Relay Server State Manager as a service using a command line similar to the following:
dbsvc -as -s auto -t rshost -w RelayServer "%SQLANY12%\RelayServer\IIS\BinXX\Server\rshost.exe" -q -qc -f "%SQLANY12%\RelayServer\IIS\BinXX\Server\rs.config" -o "c:\temp\ias_relay_server.log" |
See:
It is recommended that you start the State Manager as a service. However, it can also be started automatically by the Relay Server. See Relay Server State Manager.
Update the Relay Server configuration for Microsoft IIS 6.0 on Windows:
For each computer that belongs to the Relay Server farm you are updating, copy the updated configuration file to the %SQLANY12%\RelayServer\IIS\BinXX\Server directory under the Relay Server web site home directory. The configuration file must be called rs.config if auto start is used.
From the %SQLANY12%\RelayServer\IIS\BinXX\Server directory, run the following command line to apply the configuration update:
rshost -u -f rs.config |
Repeat the previous steps for each computer in the Relay Server farm that is being updated.
After configuring the Relay Server with IIS, it is recommended that you restart the IIS server or reboot the machine.
Discuss this page in DocCommentXchange.
|
Copyright © 2010, iAnywhere Solutions, Inc. - SQL Anywhere 12.0.0 |