Software AG Products 10.7 | Configuring API Gateway | API Gateway Data Store | Administering API Gateway Data Store | Configuring Data Store Cluster using Template
 
Configuring Data Store Cluster using Template
You can configure the Data Store cluster using the following Command Central template:
sagcc exec templates composite import -i clustering.yaml

sagcc exec templates composite apply sag-apigw-datastore-clustering nodes=local node.name=node_name node.host=node_host node.port=node_port
Sample clustering configuration template:
alias: sag-apigw-datastore-clustering
description: API Gateway Data Store Clustering Configuration

layers:
runtime:
templates:
- apigw-datastore-clustering

templates:
apigw-datastore-clustering:
products:
CEL:
default:
configuration:
CEL:
COMMON-CLUSTER:
COMMON-CLUSTER-default:
Enabled: 'true'
Name: SAG_EventDataStore
Servers:
Server:
ExtendedProperties:
Property:
- '@name': node
$: ${node.name}
- '@name': host
$: ${node.host}
- '@name': port
$: ${node.port}

provision:
default:
runtime: ${nodes}