Azure / Azure/azure-linux-extensions

High CPU when diagnostic agent cannot reach event hub

Open
#1,301 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
333
Forks
278
Avg merge
2d 9h
Merged PRs (30d)
4

Description

On a Linux (centos 7.9.2009) vm, when event hub access is unavailable (via firewall rule, or other) the diagnostic agent consumes 100% cpu. In this state, logs will contain many things such as:

2020-09-25T23:24:53.3588310Z: MDSCMD Error: EH publish to https://....servicebus.windows.net/eventhub/messages failed: Failed to read HTTP status line
2020-10-07T19:10:22.8354670Z: MDSCMD Error: EventPersistMgr::ProcessFileData failed to upload file X2Jec5
2020-10-07T19:10:22.8371300Z: MDSCMD Error: EH async publish to https://....servicebus.windows.net/eventhub/messages failed with http response: Error resolving address

In this scenario, it would be nice if the VM could remain stable. Is there any config setting or change I could make to alleviate this? Thank you.
![image](https://user-images.githubusercontent.com/31079559/107673522-16cd1300-6c64-11eb-94d2-20f9787fc770.png)

Agent Versions:
![image](https://user-images.githubusercontent.com/31079559/107679509-a5dd2980-6c6a-11eb-8f60-b7a34f658a7f.png)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.