DevPortal

How do I Direct Requests From IIS to Multiple Pramati Servers?


By modifying the iisplugin.props file, you can make WebGate for IIS redirect requests to more than one Pramati Server, based on the context root in the request URL. Here’s an example:

[node-info-begin]
  WebGateHost localhost:8181
  SecureConnection true
  ServerAuthRequired true
  TrustedCAFile C:/IISPlugin/defaultCAStore/default.pem
  MaxSockPool 20
  Context admin Administrator
  CacheContentType .jpg,.gif,.bmp,.htm,.css
  ErrorPage C:/PServer/add_ons/webgate/iis/error.htm
[node-info-end]

The requests under specified context roots will then be redirected to the specified WebGate host.

WebGate Failover for Pramati Server

When WebGate is loaded, it tries to create a pool of connections to a node that is specified first in the comma-separated list of nodes. If it successfully creates the connection, it serves the request using the pool. Here is a sample entry of Pramati Server Cluster Nodes in iisplugin-props:

[node-info-begin]
  WebGateHost localhost:8181, johnsmith:8381, joe:8182
  SecureConnection true
  ServerAuthRequired true
  TrustedCAFile C:/IISPlugin/defaultCAStore/default.pem
  MaxSockPool 20
  Context readtest bankWeb Administrator
  MaxSockPool 10
  #The following content types separated with a comma will be cached.
  CacheContentType .jpg,.gif,.bmp,.htm,.html
  ErrorPage C:/PServer/add_ons/webgate/iis/error.htm
[node-info-end]

If the localhost fails, the plugin performs a failover routine and attempts to create a connection pool for johnsmith, the next node in sequence. If all connections fail, or no node responds, an error message is generated.


Related Topics:

© Pramati Technologies 2007 Runs on Pramati Server | Feedback | Legal