RedHatInsights / insights-core

Insights Core is a data collection and processing framework used by Red Hat Insights
https://cloud.redhat.com/insights
Apache License 2.0
153 stars 181 forks source link

timeout for lsof command #1879

Open chenlizhong opened 5 years ago

chenlizhong commented 5 years ago

It is easy to timeout for physical machine as it may running VMs or containers and open many files.

2019-03-29 11:21:49,843 DEBUG insights.client.insights_spec Executing: ['timeout', '600', '/usr/sbin/lsof'] 2019-03-29 11:21:49,891 DEBUG insights.client.insights_spec Proc2 Status: 1 2019-03-29 11:21:49,891 DEBUG insights.client.insights_spec Proc2 stderr: None 2019-03-29 11:21:49,891 DEBUG insights.client.insights_spec Proc0 Status: 1

chenlizhong commented 5 years ago

For many large physical box, it will have 512G memory. It always open many files and sockets.