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

Balance Process Load does not always apply properly #5241

Closed
chpoqxie opened this issue Feb 18, 2023 · 9 comments
Closed

Balance Process Load does not always apply properly #5241

chpoqxie opened this issue Feb 18, 2023 · 9 comments
Labels
bug Undesired behaviour confirmed Bug is confirm by dev team resolved A fixed issue
Milestone

Comments

@chpoqxie
Copy link

I have high devices' CPU snmp load after upgrade to 1.2.23.
When I tried to figure it out, I found out the following:

Poller settings:
cacti-poller-settings

Poller log before upgrade (rrds are balanced between cron works):
cacti-log-balanced-before

Poller log after upgrade (every cron work ALL rrds are processed):
cacti-log-unbalanced-after

any other info by your request if needed

@chpoqxie chpoqxie added bug Undesired behaviour unverified Some days we don't have a clue labels Feb 18, 2023
@chpoqxie
Copy link
Author

also I can't set "Poller Interval" to 5 minutes as configured in used "Data Profile".

@TheWitness
Copy link
Member

TheWitness commented Feb 18, 2023

Three recommendations:

  1. Switch to systemd cactid service and move away from cron
  2. Switch cron/service interval to 5 minutes, and poller to 1 minute
  3. Repopulate the poller cache.

@chpoqxie
Copy link
Author

chpoqxie commented Feb 18, 2023

  1. i dont have systemd because use freebsd ) does the cactid work under freebsd?
  2. why switch cron to a 5-minute interval if I need a balanced every minute work? I don't understand this recommendation, it does the opposite of what I require.
  3. done.

i think you recommends not that i want to get from cacti.
after steps 2 and 3, I get the same number of rrd-files processed every minute and an every minute SNMP poll of the same devices with the same values (checked by tcpdump):
cacti-log-cron5-poller1

cacti-oids-repeating

i have used every 5 minute data source profile, not every 1 (that's why I want poller to work as before - so that the number of requests and rrd-files is balanced between cron tasks):
cacti-data-source-profiles

@TheWitness
Copy link
Member

You mis-understand 'Balance Process Load' is to distribute the hosts by the number of Data Sources, not to spread out data collection. You should set your Cron interval to 5 minutes and your Poller Interval to 1 minute and then re-populate the poller cache.

@chpoqxie
Copy link
Author

chpoqxie commented Feb 19, 2023

to prevent misunderstanding, please specify where I need to change the "Poller Interval"?
at the Configuration - Settings - Poller, or at the Presets - Data Profiles? in the case of the first option - I did it before the previous comment.

previously, the Cacti worked in such a way that if i selected the "5 minutes" Data Source Profile and set the Polling and Cron Intervals in Settings "every minute" (and set "Balance Process Load" on, perhaps it was not necessary), all the requested data was evenly spread over the poller launches through cron every minute.

now after the update it stopped happening, ALL data requested and ALL rrd files writed to disk every 1 minute, not every 5. i dont need so many data )) and some devices are overloaded in this case.
how to return the old state in the current version of the program?

@TheWitness
Copy link
Member

Have you followed my instructions yet?

@TheWitness
Copy link
Member

Okay, confirmed this now after testing your setup.

@TheWitness TheWitness added confirmed Bug is confirm by dev team and removed unverified Some days we don't have a clue labels Feb 20, 2023
@TheWitness TheWitness added this to the v1.2.24 milestone Feb 20, 2023
@TheWitness TheWitness added the resolved A fixed issue label Feb 20, 2023
@chpoqxie
Copy link
Author

thank you very much )
i applied this two patches to my cacti installation ("Polling distribution not working" and "Polling Issues"), touched "Rebuild Poller Cache" again, and see this progress in logs:
cacti-after-patches
it now works the way i wanted )

@TheWitness
Copy link
Member

I did make one more change. Please take note. It was done this evening.

netniV pushed a commit that referenced this issue Feb 24, 2023
Fixing #5238 - SQL Issues due to non-visible chars
Fixing #5232 Poller Stacking
Fixing #5236 - Edit Graph Template
Fixing #5243 - Export columns missing
Fixing Issue #5239 - Automation SNMP Bulk Size
Fixing #5241 - Polling distribution not working
Fixing #5247 and QA on #5241 - Polling Issues
@netniV netniV changed the title "Balance Process Load" dont work after upgrade to 1.2.23 Balance Process Load does not always apply properly Feb 27, 2023
@github-actions github-actions bot locked and limited conversation to collaborators May 29, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Undesired behaviour confirmed Bug is confirm by dev team resolved A fixed issue
Projects
None yet
Development

No branches or pull requests

2 participants