Configuring HyperServer Applications
Adding a new application to HyperServer is done by adding a section to the CFG file of your HyperServer instance.
Here is a typical configuration section for a HyperServer application:
[application-0]
enabled=1
alias=fishfacts
binary_name=fishfacts.exe
max_nodes=4
persistent_node=0alias
The alias identifies the application when accessed from a URL. It must be unique among all configured applications in the cluster. Examples: accounting, stock, orders.
These aliases are used to access the application in the URL. Examples:
http://mywebserver.com/accounting
http://accounting.mywebserver.com/
max_nodes
Determines the maximum number of Nodes reserved for this application.
max_nodes=0— HyperServer will automatically calculate the maximum number of Nodes for the application based on the HyperServer rootmax_nodesand the total number of applications.If all applications have
max_nodes=0, HyperServer distributes Nodes evenly among applications (including the default application).
Example: If HyperServer max_nodes = 32 and you have 3 configured applications plus the default application, then: Maximum number of Nodes reserved for each app = 32 / (3 + 1) = 8
You can set explicit values for max_nodes to prevent even distribution and allocate more Nodes to frequently used applications or limit Nodes for rarely used applications (e.g., 1 or 2).
In a HyperServer cluster, persistent_node for a given application must be enabled on only one HyperServer instance. Enabling it on multiple instances will result in multiple Persistent Nodes running simultaneously for the same application.