Before running the Relay Server with IIS 6.0, you need to deploy Relay Server files to each computer in the Relay Server farm.
The Relay Server components are installed as part of the SQL Anywhere 16 installation. The install process automatically deploys all the necessary files on the computer that is going to run the Relay Server.
By default, all files are installed to %SQLANY16% and are based on the bitness of the computer:
%SQLANY16%\Bin64 is used for DLLs and executables for administration.
%SQLANY16%\RelayServer\IIS\Bin64 is 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.
Contexte et remarques
An interactive quick setup feature, rs-setup.bat, is provided as an alternative to this procedure. rs-setup.bat is located in the %SQLANY16%/RelayServer/IIS/quicksetup_iis6 directory and performs the following tasks:
Creates a demo application
Generates a quick reference guide
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 the Relay Server on IIS can be found in the %SQLANY16%\RelayServer\IIS directory.
Create a virtual directory called rs under the Default Web Site in the Microsoft IIS Manager for use by the Relay Server. The physical location of the virtual directory is %SQLANY16%\RelayServer\IIS\Bin64.
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 that encloses 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 side of an equal sign and its value on the right side of the equal sign. For example, propertyname = 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.
Click the Recycling tab and turn off all the recycling options.
Click the Performance tab and:
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. For more information, see the Microsoft IIS performance notes about Web garden size.
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 rs and enable the Relay Server web extensions using the IIS Manager Console:
Click 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.
Click 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 run 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 %SQLANY16%\RelayServer\IIS\BinXX\server directory.
Ensure optimum performance by reviewing the performance tips.
Define a service that automatically starts the Relay Server State Manager when the computer is started using a command line similar to the following:
dbsvc -as -t rshost -w RelayServer "%SQLANY16%\RelayServer\IIS\BinXX\Server\rshost.exe" -q -qc -f "%SQLANY16%\RelayServer\IIS\BinXX\Server\rs.config" -o "c:\temp\ias_relay_server.log"
It is recommended that you start the State Manager as a service. However, it can also be started automatically by the Relay Server.
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 %SQLANY16%\RelayServer\IIS\BinXX\Server directory under the Relay Server web site home directory.
From the %SQLANY16%\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 the computer.
Discuter à propos de cette page dans DocCommentXchange.
|Copyright © 2013, SAP AG ou société affiliée SAP - SAP Sybase SQL Anywhere 16.0|