SAS® Event Stream Processing XML server network port usage


The SAS Event Stream Processing (ESP) XML server can use multiple TCP ports. The XML server does not have any well-known ports or default ports defined. The ports that are used are based on the configuration of the XML server. If the XML server is behind a firewall, the ports need to be configured in the firewall to allow outside clients to connect. The following ports can be configured:

PortDescriptionConfiguration
Publish/Subscribe (pubsub) portThis port is used to accept pubsub connections.
  • This port is configured on the -pubsub option when starting the XML server.
     
dfesp_xml_server -pubsub 39095

 

  • If -pubsub is not configured and the XML server is started with the -model option, the port attribute specified on the engine element is used.

 

<engine port="39095" name="DemoEngine">
Publish/Subscribe project portBy default, the pubsub API uses an ephemeral port that is discovered by the pubsub client. The pubsub client uses this port for sending and receiving event data. Each project that is loaded to the XML server uses a unique port.

To force the project to use a specific port, configure the port attribute on the project element:

 

<project name="DemoProject1" pubsub="manual" port="29095">
HTTP Publish/Subscribe portThis port receives HTTP requests for pubsub services. It is used by the streamviewer and ESP studio.To configure this port:
  • Specify the -http-pubsub option when starting the XML server:

 

dfesp_xml_server -http-pubsub 49095

 

  • When the XML server is started with the -model option, specify the port attribute on the http-pubsub-server element:
     

 

<http-servers>

 

<http-pubsub-server port="49095"/>

 

</http-servers>

HTTP admin portThis port receives HTTP administration requests, such as loading a project.To configure this port:
  • Specify the -http-admin option when starting the XML server:

 

dfesp_xml_server -http-admin 59095

 

  • When the XML server is started with the -model option, specify the port attribute on the http-admin-server element:

 

<http-servers>
 
 <http-admin-server port="59095"/>

 

</http-servers>