ALM-38020 Abnormal Kafka Production Traffic
Alarm Description
If you have configured the rule for reporting the alarm indicating abnormal production traffic using a script (no rule by default), the system checks all configured topics every minute (configurable). This alarm is generated when the production traffic of the configured topics is not within the threshold (unit: number of produced messages per second) for five (configurable) consecutive times.
This alarm is cleared when the production traffic of the configured topics is within the threshold for five consecutive times (configurable). If you perform operations that will stop services, you are advised to mask this alarm.
This section applies to MRS 3.6.0-LTS.1 and later versions.
Alarm Attributes
| Alarm ID | Alarm Severity | Auto Cleared |
|---|---|---|
| 38020 | Major (customized threshold) Critical (customized threshold) | Yes |
Alarm Parameters
| Type | Parameter | Description |
|---|---|---|
| Location Information | Source | Specifies the cluster for which the alarm was generated. |
| ServiceName | Specifies the service for which the alarm was generated. | |
| TopicName | Specifies the topic for which the alarm was generated. | |
| Alarm rule ID | Specifies the ID of the rule corresponding to the alarm. | |
| Additional Information | Trigger Condition | Specifies whether the alarm is generated due to low or high traffic. |
| Info | Specifies the actual production traffic and threshold. |
Impact on the System
If the production traffic of the topics exceeds the threshold, the read and write functions of the Broker process are affected.
Possible Causes
The service traffic changes, messages are sent cyclically or repeatedly, or an abnormal branch is frequently triggered, resulting in a large number of meaningless messages or service interruption.
Handling Procedure
- Log in to MRS Manager, choose O&M > Alarm > Alarms, and check details about the current alarm in the alarm list. Check the topic name of the instance for which the alarm is generated in Location.
- Choose Cluster > Services > Kafka > KafkaTopic Monitor > Topic name with the abnormal production traffic, view the input traffic trend of the topic, and record the time segment when the production traffic changes greatly.
- Check whether the traffic change is caused by actual service fluctuations or exceptions.
- If the production traffic exceeds the upper limit of the threshold, determine whether to limit the production traffic of the topic based on the site requirements.
- Limit the production traffic of the topic by using a traffic control script.
- Log in to the node where the Kafka client is installed as the client installation user.
- Switch to the Kafka client installation directory, for example, /opt/hadoopclient.
cd /opt/hadoopclient
- Configure environment variables.
- Authenticate the user (skip this step for normal clusters).
- Switch to the Kafka client installation directory.
- Use kafka-configs.sh to control the traffic of Kafka topics.
bin/kafka-configs.sh--zookeeperIP address of any ZooKeeper node:clientPort/kafka--alter--add-config 'producer_byte_rate=Production traffic limiting speed' --entity-typetopics_limit--entity-nameTopic name
- Check whether the alarm is cleared about five minutes later.
- If yes, no further action is required.
- If no, go to Step 7.
Collect fault information.
- On MRS Manager, choose O&M. In the navigation pane on the left, choose Log > Download.
- Expand the Service drop-down list, and select Kafka for the target cluster.
- Click the edit icon in the upper right corner, and set Start Date and End Date for log collection to 10 minutes ahead of and after the alarm generation time, respectively. Then, click Download.
- Send the collected fault logs to O&M engineers for help.
Alarm Clearance
This alarm is automatically cleared after the fault is rectified.
Related Information
None
What is your overall rating for this page?
Thank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot