-
-
Notifications
You must be signed in to change notification settings - Fork 404
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 searching the tree, increase the time before querying for items #5342
Comments
Rather than disable the search when typing, there should be a preset 'delay' before initiating the search so that any further keystrokes do not fire off searches of their own. I think that would be a good enhancement. |
Thanks for the reply. I think that is a very good idea. |
It does not look like jsTree has a delay function built into the core of the plugin, bummer. The author shows an example of searching but outside the default plugin. |
Been a long time since I've looked at this. I'm going to increase the keyup delay to 500ms. |
How much do you control the permissions at the Cacti level? That sounds like a slow database or a busy one. |
You might want to consider using the Browser Debug window and then the Network Window to see if the ajax part of the search is slow, or the javascript part is. |
Increase keyup delay when searching the tree
Debug window confirmed.
In the case of copy and paste input, the request for |
I believe I can effectively disable the setting by setting the key-up delay time to a very large value on my Cacti server. Is there any problem in this case? |
Yea, that would effectively disable it. The real question on such a small system is why all the delay? Are you using boost? What is the total size of your rra directory? |
I define a large cacti server above 10k hosts and maybe 200k graphs. |
There are many cacti servers that large and many x times larger where x is confidential. |
@TheWitness |
Boost? |
No, Boost is disabled. |
Enable it. |
Thanks. I am new to the boost feature. This feature is not available on my Cacti server. I can't use this feature on my Cacti server because the server has a script that parses the RRD file every 5 minutes. |
What does that script parse? Is your RRA directory flash? Are you familiar with Data Source Statistics? |
It is analyzed using rrdtool. |
What data are you grabbing from the RRDfiles? |
Sorry, I cannot answer your question about the analysis of the rrd file as it is out of my scope. I have changed the keyup delay to 3,600,000. |
The search won't run because you hit enter. It's an automatic filter that appears based on KeyUp. You would have to customise the code more if you expect that kind of behaviour but that's not something we are preparing to do right now I'm afraid. |
Really, the you should be looking to why the database takes so long to respond. With over 1M graphs and 2.6M data sources, I have a little delay, but not like what you have. I suspect that:
It's likely what they are looking can be found in the DSStat's tables. But we can never know that without knowing what they are doing besides wrecking you system. |
Hi.
We are running a very large Cacti server. (Devices: over 1,000, Graphs: over 14,000)
OS: RockyLinux8.6
Cacti: 1.2.21
CPU: 12core
Memory: 32GB
It takes a very long time to search for a graph by entering a tree name or graph name from the Graph tab screen of the WebUI. (More than 100 seconds, I have confirmed that I have enough cpu and memory at this time).
However, if the device name is copied and pasted, it takes only a few seconds to complete the search.
I checked from Chrome's developer tools, and it looks like the search process is executed while typing with the following request.
I believe this is the cause.
Is there any way to disable the search while typing?
The text was updated successfully, but these errors were encountered: