MongoDB-Cowboys / Monalize

Monaliza is a tool for scanning and analyzing MongoDB database for any performance issues, which lead to high CPU consumption.
GNU General Public License v3.0
28 stars 6 forks source link

Added option to set context_timeout #5

Closed leleobhz closed 3 years ago

leleobhz commented 3 years ago

Hello!

I had a specific case with a server that needed more time to do COLLSCAN accounting due to overload. So I added an option to customize the context timeout to avoid 'context deadline exceeded' error.

Is this PR ready to be merged?

Thanks!

ku9nov commented 3 years ago

Hi @leleobhz I have tested this on a large database. This is useful and it works. Thanks. Merged.