Configure routing to ESP destinations
This page describes how to configure the routing
section of the /etc/aerospike-esp-outbound/aerospike-esp-outbound.yml
which controls
how Aerospike records are routed to an ESP destination that was configured in the destinations section.
The following routing modes are available.
- static-multi-destination List of destinations to route to.
- skip Skip dispatch of record to the destination and ack success to XDR.
- custom Route with custom code.
Static Multi Destination Routing
This routing sends the same change notification record to multiple destinations.
For static-multi-destination
routing, the configuration options are:
Option | Required | Default | Description |
---|---|---|---|
mode | yes | Use static-multi-destination . | |
destinations | yes | List of destination names configured the destinations section. |
Example
routing: mode: static-multi-destination destinations: - "xdr-proxy1" - "xdr-proxy2"
Skip routing
For skip
routing, the configuration options are:
Option | Required | Expected value | Description |
---|---|---|---|
mode | yes | skip | Skip dispatch of record to the destination and ack success to XDR. |
Example
routing: mode: skip
Custom Routing
Record can be also be routed with custom code. See Routing Transform.
Example
routing: mode: custom class: com.aerospike.connect.outbound.example.GenerationRouter