Transports
The Transports
element configures how AMPS communicates with publishers and subscribers, as well as how AMPS accepts connections for replication. The Transports element is a container for one or more Transport
elements. Each Transport
is a combination of a network transport, an AMPS header protocol, and a message type.
A Transport
also specifies the Authentication
used to validate the users that connect, and the Entitlement
used to enforce permissions for users that connect over that transport.
AMPS supports a variety of network transports, header protocols and message formats for communication between publishers and subscribers. This section describes how to configure a Transport
.
For more information on Transports, see the Transports section of the AMPS User Guide.
Element | Description |
| `The name to use for this Transport. This name appears in the AMPS log for messages related to the transport. There is no default for this value. When the |
| This element defines the protocol to use for sending and receiving messages. The protocol is typically AMPS provides support for the following protocols:
AMPS accepts
AMPS also loads the following legacy protocols. These protocols are supported for backward compatibility. They will not be enhanced with new functionality, and do not provide all of the features of the above protocols.
60East recommends using the Older versions of AMPS used message headers in the same format as the message type: if your instance supports applications that expect to use a specific message type protocol, use that protocol in your |
| The type of Transport. Valid values include:
|
| The port on which AMPS will listen for this transport. This element can also specify an IP address, in which case AMPS listens only on that address. If no IP address is specified, AMPS listens on all available addresses. Starting with version 5.3.3, both IPv4 and IPv6 IP address formats are fully supported for use with specifying the network address of a transport. If no address is specified and the host supports IPv6, AMPS will listen for incoming connections on both IPv4 and IPv6 protocols. If you wish to limit AMPS to listen for addresses of only a specific IP protocol you may specify the For example:
This element is not required for transports of the |
| Restricts a transport to a single message type.
When provided, AMPS assumes that all connections to this transport use the specified
When the
When present, this is a reference to the name of a specific message type defined in the In this release, AMPS loads the following message types by default: A Important: A Default: When the |
| Defines whether, when AMPS starts, the transport is enabled or disabled. When the transport is disabled, AMPS does not listen for or accept connections on the transport.
When This configuration option can be useful for defining a transport that is only available when certain conditions are true: for example, an instance might start with the connection used by clients disabled and let an external monitoring system enable the connection during business hours and disable the connection outside of business hours. Default: |
| Specifies the entitlement module to use for this transport. If no entitlement module is provided, the transport uses the default entitlement module for the instance.
This element must contain a
Default: The module specified in the |
| Specifies the authentication module to use for this transport. If no authentication module is provided, the transport uses the authentication module for the instance.
This element must contain a
Default: The module specified in the |
| The total amount of memory to allocate to messages before offlining clients for this transport. If this value is specified for the transport, AMPS will allow the specified amount of memory for connections to this transport, independent of the limits set for any other transports or the instance as a whole. Default: The setting configured at the instance level. If this option is not specifically set at the instance level, the instance defaults to 10% of total host memory or 10% of the amount of host memory AMPS is allowed to consume (as reported by
This option is specified in bytes, and accepts the standard AMPS notation (for example, |
| The total amount of disk space to allocate to messages before disconnecting clients. If this value is specified for the transport, AMPS will allow the specified amount of memory for connections to this transport, independent of the limits set for any other transports or the instance as a whole. Default: The setting configured at the instance level. If this option is not specifically set at the instance level, the instance defaults to This option is specified in bytes, and accepts the standard AMPS notation (for example, |
| The path to use to write offline files. Default: |
| A transport filter to use for the transport. When specified, each command received over this transport is provided to the filter. This element requires a A transport can specify multiple filters. When multiple filters are specified, AMPS provides the command to each specified filter, in the order in which the filters appear in the transaction log. There is no default for this element. If no |
| The maximum amount of time for the client to lag behind. If a message for the client has been held longer than this time, the client will be disconnected. This parameter is an AMPS time interval (for example, Default: No age limit, or the setting configured at the instance level |
| The amount of available capacity a single client can consume. Before a client is offlined, this limit applies to the Default: |
Starting with 5.1, AMPS supports encrypting client connections using the SSL (Secure Sockets Layer) network protocol. The following parameters apply to transports that use SSL. While AMPS performs additional configuration validation if the transport is configured with a Type
of tcps
, if a Certificate
and PrivateKey
are specified for a Transport
of tcp
type, AMPS will use SSL for that Transport
. These options also apply to transports of type amps-replication-secure
.
Element | Description |
| The certificate file to use for the server. Default: There is no default for this option. |
| The private key to use for the server. Default: There is no default for this option. |
| The cipher list to use for this transport. The cipher list is passed to the OpenSSL implementation without being interpreted by the AMPS server. Default: There is no default for this option. For OpenSSL, details on the format of the cipher list are available at: https://www.openssl.org/docs/man1.1.1/man1/ciphers.html |
| The SSL/TLS protocols accepted by this Transport. This parameter accepts a space delimited list of values from the following list: Default: NOTE: 60East recommends using the default protocols unless there is a specific reason to enable earlier versions of the protocol and the security implications of the earlier protocols are well understood. |
| Specifies whether the client is required to provide a certificate to be verified by the server. When this parameter set to Default: False |
| Specifies a There is no default for this parameter. |
| Specifies a path to a directory containing There is no default for this parameter. |
For protocols of Type
amps-unix
, AMPS requires the following additional configuration option:
Element | Description |
| Specifies the location on the filesystem where the Unix-domain socket will be created. This location is the path that will be provided to clients that need to connect using this transport. This element is required for transports of type There is no default. |
| Specifies the file mask to use when creating the Unix-domain socket. The value of the mask is an octal number (by convention, four digits) in the same format as the standard umask command, and AMPS applies this mask exactly as the umask command would. The file is created with the user and group that the AMPS server process runs under.
|
For protocols of Type
websocket
, AMPS supports the following additional configuration option:
Element | Description |
| Controls per-message deflation for websocket connections. When this value is Per-message deflation is normally negotiated between an application and AMPS during the opening handshake of a websocket connection. 60East recommends leaving this option enabled unless you have a specific reason for disabling it. Default: |
| Specifies a header to be returned during the websocket handshake. This element can be specified any number of times. Every specified header will be returned. There is no default for this element. |
Transports Example with Slow Client Management
Transports Example with Transport Filter
TLS/SSL Transport Example
Last updated