This document will help users who wish to use Apache Kafka in conjunction with z/IRIS. |
Article information
New Article Workflow
Update Workflow
|
Content |
Created
Updated
SummaryThis document will help users who wish to use Apache Kafka in conjunction with z/IRIS. |
Purpose of this documentThis document will assist users who want to:
|
Kafka ClusterArchitectureWe suggest to use an odd number of Zookeeper Instances (at least 3), at least 3 Kafka Brokers with a Replication Factor of 3 which are deployed on (physically) separate machines to exploit the Replication Factor effectively and to ensure High Availability. TopicFor the utilisation of z/IRIS a Kafka Topic is needed to enable producing and consuming of SMF data. For determining a suitable amount of Partitions for the Topic the following should be considered:
Taking these remarks into account we recommend to use around ~15 Partitions for the Topic. Considering all the mentioned aspects a suitable Topic named smf can be created with the help of the Kafka CLI by:
In addition to optionally further reduce the risk of data loss we suggest to use 2 In-Sync Replicas which can be configured on topic-level after creating the Topic smf by:
QuotasWhen z/IRIS is set up on a Kafka Cluster we highly recommend to use Apache Kafka's feature named Quotas to protect against the possibility of monopolizing resources and causing network saturation. In order to do that Kafka needs the capability to identify the z/IRIS IronTap (Kafka Consumer) in the Kafka Cluster. This can be done by setting an unique, logical application name (e.g. smf-consumer) in the file application.conf through the configuration property client.id. Afterwards Apache Kafka's Quotas can be set dynamically via the Kafka CLI. We recommend to limit the network bandwidth to around ~50 MB/s for z/IRIS IronTap:
|
Kafka Producer (z/IRIS z/OS Client)Kafka Mode RequirementsTo stream SMF record via a z/IRIS Kafka Producer on z/OS, the following properties must be configured in the file $APPHOME/lib/ziris.comm.config:
Default Kafka Producer PropertiesThe default configuration file producer.properties for z/IRIS z/OS Clients can be located in the directory $APP_HOME/kafka. This file is used by the z/IRIS z/OS Clients and can be changed by specifying a file path and file name using the kafkaConfig parameter in the configuration file $APP_HOME/lib/ziris.comm.config.
Required z/IRIS Kafka Producer PropertiesThe following properties are required for all z/IRIS z/OS Clients where the Kafka Mode "mode=kafka" is set, thus activated and should be present in all alternate producer.properties configurations used by z/IRIS z/OS Clients. Failure to configure these properties may result in erroneous behaviour, reduced reliability and/or reduced performance:
|
Kafka Producer (z/IRIS z/OS Client)Kafka Mode RequirementsTo stream SMF record via a z/IRIS Kafka Producer on z/OS, the following properties must be configured in the file $APPHOME/lib/ziris.comm.config:
Default Kafka Producer PropertiesThe default configuration file producer.properties for z/IRIS z/OS Clients can be located in the directory $APP_HOME/kafka. This file is used by the z/IRIS z/OS Clients and can be changed by specifying a file path and file name using the kafkaConfig parameter in the configuration file $APP_HOME/lib/ziris.comm.config.
Required z/IRIS Kafka Producer PropertiesThe following properties are required for all z/IRIS z/OS Clients where the Kafka Mode "mode=kafka" is set, thus activated and should be present in all alternate producer.properties configurations used by z/IRIS z/OS Clients. Failure to configure these properties may result in erroneous behaviour, reduced reliability and/or reduced performance:
|