Enabling Dynamic Peers
This page provides a guide to using the new Dynamic Peers feature in Platform 8.
Available from: Platform 8
Overview
Dynamic Peers is a new feature in Platform 8 that allows the removal of add-peer
configuration items for incoming peer connections, allowing you to dynamically scale the number of provider peers (commonly adapters) at runtime.
For a more detailed overview, see the Dynamic Peers feature overview.
Converting from static to Dynamic Peers
The steps in this section use the following basic deployment as a worked example:
Follow the steps below:
-
In the Liberator configuration, remove the
add-peer
configuration for the incoming peer connection: -
In the Liberator configuration, edit the data service definition that routes to the peer. Instead of referencing specific peer labels, switch to referencing peer labels by regular expression (
remote-label-regex
): -
In the adapter configuration, declare the adapter a provider of the service 'PricingService', matching the name of the related data service in Liberator:
-
In the adapter configuration, assign the adapter a unique local label, either with the option
add-peer:local-label
or the global itemdatasrc-local-label
. -
Restart the adapter and Liberator