Monitor Inter Zone Traffic
After setting up Inter-Zone traffic optimization, users can track local network traffic to pinpoint actual Inter-Zone transfers by correlating with the accessed brokers.
Command Tool for Monitoring Cross-AZ Traffic
- Monitor network traffic: On Linux, you can use
iftop
to view the inbound and outbound traffic between your machine and other IPs. The command is as follows:
iftop -t -s 60 -L 100 -n
- Identify node availability zones: Query the cluster nodes of AutoMQ and the zones to which the nodes belong. The command is as follows:
./bin/kafka-broker-api-versions.sh --bootstrap-server $bootstrap_server | grep id
Match both outputs to see if Inter-Zone traffic is generated.
Other
If your application is deployed on AWS, you can also monitor cross-zone traffic using CloudWatch's Network Flow Monitor feature.