4.5 Connecting to a remote Kafka server
MDS feature establishes a connection to remote Kafka server to send statistics data of the all user enabled measurements. To establish a connection to Kafka, it takes user configured primary Kafka server IP address and backup Kafka server IP address from the MeasStrmConfig table. Connectivity with primary and secondary Kafka server is described in the following table:
Table 4-2 Kafka Server Types
Server Type | Description |
---|---|
Primary | This is the main remote server and it is the first option where statistics data will be transferred. |
Backup | An additional option is given to connect to an alternative server in case the primary is not available. At each interval, connection with both primary and backup node will be attempted. |
The process of connecting to a remote Kafka server:
- MDS tries connecting to the primary server.
- It checks if connection is established or not.
- If connection establishes, send data to the primary server.
- If connection does not establish, it keeps trying upto three attempts.
- If connection does not establish to the primary (even after max attempts), it tries connecting with the backup server.
- It checks if connection is established or not.
- If connection is established, send messages to the backup server.
- If connection does not establish, it tries sending messages upto three attempts.
- If connection does not establish with the backup server (even after max attempts), it raises an alarm in the DSR system.