Issue Details (XML | Word | Printable)

Key: MBS-3122
Type: Bug Bug
Status: Open Open
Priority: Normal Normal
Assignee: voiceinsideyou
Reporter: voiceinsideyou
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
MusicBrainz Server

Very slow /ws/2 response time for some albums

Created: 30/Jul/11 03:36 PM   Updated: 26/Nov/11 08:16 AM
Component/s: Web service
Affects Version/s: None
Fix Version/s: None

Issue Links:
Depends
 
Relates
 


 Description  « Hide

While testing with Picard 0.15 today I've found some very slow response times for albums. A particularly egregious example is

D: <sip.voidptr object at 0x1053F278> 23:33:45 GET http://musicbrainz.org:80/ws/2/release/8e061dc4-790e-4587-ba53-011e7852f88d?inc=release-groups+media+recordings+puids+artist-credits+labels+isrcs+artist-rels+release-rels+url-rels+recording-rels+work-rels+recording-level-rels+work-level-rels
D: <sip.voidptr object at 0x0D9D7F50> 23:34:59 Loading release u'8e061dc4-790e-4587-ba53-011e7852f88d'

It's 1.2MB of doom, but was taking 75 seconds or so (as above), which seems pretty high all the same.



Sort Order: Ascending order - Click to sort in descending order
voiceinsideyou added a comment - 01/Aug/11 05:56 PM

For consideration in the next week; at least to see if there are some concrete actions we can take to address such releases.


Oliver Charles added a comment - 03/Aug/11 02:44 PM

Does Picard seriously need that much data? 1.2MB of XML is returned there. Though of course, that's no excuse for us to be slow


Oliver Charles added a comment - 03/Aug/11 03:01 PM

Also, from the forum posts it appears most of the time is spent in the Amazon plugin? Here, the above URL takes 5 seconds, which doesn't add up to the >1min time between messages


voiceinsideyou added a comment - 03/Aug/11 04:45 PM

The Amazon/cover art requests are irrelevant here - it's not where the time is being spent in this example. The forums discussion was after this was logged, so I guess that link is a bit of a red herring now as it seems that user's issue was to do with AMZ (which is also pretty borked for me ). I'll remove it from description to avoid further confusion.

In the Picard timestamps above there is nothing else happening between other than the XML parsing (which may be slow, given such a large document, to be fair); but that's 74 seconds.

If I open that URL in a browser, right now, it takes 49 seconds to return/parse, and I have a very fast PC, and one of the fastest connections it is possible to purchase in Singapore (100Mbit). Which implies that if it takes 5 seconds for you, that MB's bandwidth to a user in Asia is ~28Kb/s - which seems pretty bad to me. Perhaps that's also why the rest of the site feels slower to me than other people describe though!

I guess if it's not server time, it's not a generalized problem that can be addressed this week. How do you suggest we proceed? I see a few possible issues:

1) With analysis, ~1172 / 1223Kb (95.8%) of the XML data is work level ARs back to /other/ recordings - it's 50kB without these. Pretty sure the numbers are correct; I manually went through the XML and cut out these blocks. Nirvana is especially bad, probably due to the live bootlegs project, and likely a large number of unmerged recordings, however I'm not sure whether Picard uses these back-references, but given the impact they have - perhaps there needs to be a way to filter these work <- has performance of -> recording ARs out, but still get composer ARs and the like?

2) perhaps Picard may be able to request less (but I doubt it, if one wants to tag with composer ARs)

3) is compression still not enabled on MB servers due to CPU considerations? This should be ~111kB + transport overhead, with compression.

4) is the bandwidth to Asia really that bad? (I get an unstable 35->55kB/s on the DB dumps as a vague test - not sure what you get Ollie...?)


voiceinsideyou added a comment - 03/Aug/11 05:12 PM

Ahh looks like compression on main site, but not WS. Possibly compatibility issues here with some HTTP clients I guess?


voiceinsideyou added a comment - 04/Aug/11 04:51 PM

Created MBS-3168 for the compression part.