-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Server-side of HTTP admin interface uses a lot of resources on large clusters #1660
Comments
There is just too much data in Sending diff would be a quick workaround (and not too hard?) |
Thanks for chiming in @neumino. |
Oh, there are also the stats and the request to distribution that could be expensive (there is a timeout for the stats though). |
Also when I click "Tables" to get a table listing, my Firefox complains about a JS script that is taking too long, e.g. "http://magneto:8082/cluster-min.js?v=foo:16246". The exact line number varies though (foo is the version of my server). |
Hum, my guess is that we just create too many backbone views. I would tend to think that the current architecture of the code in |
And we compute the state of each namespace, which can be expensive (especially if you have tons of shards). |
The profiler shows most time on the server side being spent in |
A fix for the main server-side problem (excessive copying, up to something like O(n^2 log n) ) is in code review 1036 by @neumino, and implemented in branch daniel_1660. The client-side inefficiency when opening the "Tables" page is a different problem, and I'm going to open a separate issue for that. |
In next as of f242d98 |
I have been using the It strikes me that this could be split up into multiple endpoints rather than just being a massive 'everything in one go' sort of thing. |
The content in Having its content spread accross multiple urls would mean that the web interface would have to do more http requests to retrieve all the data it wants -- which isn't a good thing. |
@josephglanville -- you could go into a specific path to do monitoring FYI. For example, you can curl On a different note, the monitoring experience currently leaves a lot to be desired. Would you mind writing up your experiences in #1392? I.e. what was it like to set up monitoring, what's good about it, what's bad about it, what could be improved, etc. If you could take a few minutes to do that, it would help immensely (and would make monitoring better for you!) |
@coffeemug Cheers for the heads up. |
On a 32-node cluster with something like 200 tables, just opening the HTTP admin interface can max out a core on the server. It remains maxed-out until a moment after I close the browser window.
Some operation(s) there seem(s) to become very expensive for large clusters.
I will profile this some time.
The text was updated successfully, but these errors were encountered: