Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Weatermap slow when some graphs are broken #124

Open
LoremoCH opened this issue Oct 9, 2023 · 2 comments
Open

Weatermap slow when some graphs are broken #124

LoremoCH opened this issue Oct 9, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@LoremoCH
Copy link

LoremoCH commented Oct 9, 2023

I am not sure if this is really a bug.

We recently updated from Cacti 0.8.8 to 1.2.24 and also updated the Weatermap plugin. Unfortunately, the performance of the new Cacti on the same hardware was suddenly very poor. The poller was constantly killed after 59 seconds because of max execution time. As soon as the plugin was deactivated, the poller was finished after 7 seconds.

We looked at the plugin code afterwards and found that the foreach in 1 takes forever. If we understand it correctly, this part creates error logs for every broken graph. Unfortunately, we have a few of these. The foreach is executed no matter what the log level in the plugin configuration is (quiet/chatty).

As soon as we commented out these 4 lines, the poller was finished in 43 seconds and all our weathermaps worked again.

As mentioned above, I'm not sure if this is really a bug. After all, the broken graphs are the main cause. But since it took us some time to figure this out, it might be helpful for others. Also, whether this log foreach should be run or not when the weatermap log level is quiet (not cacti log level), I am a bit unsure.

@TheWitness
Copy link
Member

TheWitness commented Nov 15, 2023

That should only be at the debug level. Is that how you are running your Cacti? There will of course be issues running at Debug, especially if your storage is constrained and you have a lot of poller items.

@TheWitness
Copy link
Member

Maybe the request is to have a separate logging function for WeatherMap like we have for boost so that you don't wreck your server if you are debugging other things. What do you think?

@TheWitness TheWitness added the enhancement New feature or request label Nov 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants