a9s Router Configuration
This document describes the special configuration necessary for an a9s Router deployment.
Description
The a9s Router is a basic HAProxy 3 noded cluster with a a9s Route Registry. New instances announces its new routes to the a9s Route Registry, which uses the Dataplane API to add the new routes to the HAProxy cluster.
IaaS Variables
Here are the variables you need to declare on your IaaS variable files in order to have the a9s Router deployed with success.
IaaS Variable | Type | Description |
---|---|---|
iaas.a9s_router.router_ips | Array of String | Array of static IPs to be used for HAProxy cluster. |
iaas.a9s_router.registry.network | String | Network to be used by the registry instance. |
Besides these variables, you will also need the ones used to configure your Consul cluster.
BOSH Properties
Here are the BOSH Properties you can use to configure a9s Router instances:
BOSH Property | Type | Description |
---|---|---|
ha_proxy.https_redirect_all | Boolean | Force redirect of http traffic to https (enabled by default) |
a9s-route-registry.open_files_limit * | Integer | The number of files this process is allowed to have open at any one time. |
a9s-route-registry.timeoutread | Integer | The number of seconds before the HTTP server timeouts a read connection. Default: 5 seconds. |
a9s-route-registry.timeoutwrite | Integer | The number of seconds before the HTTP server timeouts a write connection. Default: 10 seconds. |
* It can happen that the a9s-route-registry
is not able to create new routes and errors with too many open files
. To solve this issue you can increase the open_files_limit
.