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

When enabling many devices, a threshold can be reached causing a slowdown in the process #3915

Closed
eschoeller opened this issue Nov 11, 2020 · 2 comments
Labels
bug Undesired behaviour resolved A fixed issue
Milestone

Comments

@eschoeller
Copy link

I'm in the process of fixing some other problems, and notice that disabling 50 devices at once is quick, but enabling 50+ devices takes forever. Sometimes I hit the php maximum runtime. Hopefully this isn't necessary and it could be sped up or could be run in parallel or in the background.

@eschoeller eschoeller added bug Undesired behaviour unverified Some days we don't have a clue labels Nov 11, 2020
@zuka1337
Copy link

If you want to disable all devices you can use the query below:
update host SET disabled = 'on';

@netniV
Copy link
Member

netniV commented Nov 17, 2020

The reason that it is not as quick is probably due to syncing with remote pollers to ensure that data is up to date when enabling them. Simply bypassing that process using the above query may lead to other issues I would suspect but @TheWitness will know better than me.

@TheWitness TheWitness removed the unverified Some days we don't have a clue label Nov 21, 2020
TheWitness added a commit that referenced this issue Nov 21, 2020
- Certain Device actions cause the removal of poller items from the remote data collector
- Bulk Enabling Devices takes forever

Need to check a few more cases before completely resolved.
@TheWitness TheWitness added this to the v1.2.16 milestone Nov 21, 2020
@TheWitness TheWitness added the resolved A fixed issue label Nov 21, 2020
TheWitness added a commit that referenced this issue Nov 22, 2020
- Device Re-index operations not returning to correct page location
- Bulk Enabling Devices takes forever
- Also adding a 'Repopulate Poller Cache' option due to the quick save option not forcing a re-populate of the poller cache.
- Repositioning the Verbose query directly above the Data Query section of device edit for convenience.
TheWitness added a commit that referenced this issue Nov 25, 2020
This should get it.  Changed the logging just a bit.  Figured out what was happening.
@netniV netniV changed the title Bulk Enabling Devices takes forever When enabling many devices, a threshold can be reached causing a slowdown in the process Nov 30, 2020
@github-actions github-actions bot locked and limited conversation to collaborators Mar 1, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Undesired behaviour resolved A fixed issue
Projects
None yet
Development

No branches or pull requests

4 participants