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

Rebuilding Poller Cache from Utilities does not respect poller interval due to lack or ordering #5247

Closed
TheWitness opened this issue Feb 20, 2023 · 0 comments
Labels
bug Undesired behaviour confirmed Bug is confirm by dev team resolved A fixed issue
Milestone

Comments

@TheWitness
Copy link
Member

Describe the bug

If you have a poller interval of say 5 minutes and a cron interval of 1 minute, data sources should be spread out amongst hosts. When you rebuild the poller cache, this distribution should be updated, and presently it's not.

To Reproduce

Steps to reproduce the behavior:

  1. Setup a system as defined above

  2. Create a number of hosts and graphs

  3. See look into the poller_item table, there should be 5 distinct groupings of rrd_next_step

  4. Goto utilities and Repopulate the Poller Cache

  5. Not now that that fairly equal distribution of rrd_next_steps is now broken

Expected behavior

Cacti should evenly distribute poller items between various intervals.

Specific Queries

 select rrd_next_step, count(*) as items from poller_item group by rrd_next_step;
+---------------+-------+
| rrd_next_step | items |
+---------------+-------+
|             0 |   244 |
|            60 |   243 |
|           120 |   244 |
|           180 |   246 |
|           240 |   180 |
+---------------+-------+
5 rows in set (0.001 sec)
@TheWitness TheWitness added bug Undesired behaviour confirmed Bug is confirm by dev team 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
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
@github-actions github-actions bot locked and limited conversation to collaborators May 22, 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

1 participant