Environment Variables

From Genesys Documentation
Jump to: navigation, search
This topic is part of the manual GDL Deployment Guide for version 9.0 of Genesys Data Layer.

Environment variables in GDL

Mandatory Environment Variables

Although all the mandatory configuration parameters are set in the docker-compose files, the following mandatory environment variables can be used to change the configuration of Kafka and Zookeeper in .yml files.

IP addresses of the Zookeeper pod(s)

It should be a comma delimited string used to generate the value of zookeeper.connect. The format of the array is:

{IP Address1}:{port1}[;{IP Address2}:{port2};{IP Address3}:{port3}]

Examples:

KAFKA_ZOOKEEPER_CONNECT=10.64.4.253:2181,10.64.4.10:2181,10.64.4.78:2181

For single host deployment:

KAFKA_ZOOKEEPER_CONNECT=localhost:2181, localhost:2183,localhost:2185

IP addresses of the Kafka pods

The format of the array is given below (if the listeners are more, it should be delimited by a comma):

KAFKA_ADVERTISED_LISTENERS=PLAINTEXT://localhost:9092

Note, the hostname cannot be used other than "localhost" in one case.

Broker ID

KAFKA_BROKER_ID = 1

Zookeeper Environment Variable

ZOOKEEPER_CLIENT_PORT=2181

If it is a multi-Zookeeper cluster, the following Environment variables are also mandatory.

  • ZOOKEEPER_SERVERS
  • ZOOKEEPER_SERVER_ID