You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@mahout.apache.org by jeremy stanton <je...@gmail.com> on 2010/04/16 13:48:27 UTC

scaling issues

Mahout team,

So we had recommendations running from a two box cluster (4 cores and 4GB
RAM per box), using the generic recommender for item-item recommendations.
We had caching enabled as far as we knew how.  We had the recommender loaded
with 3M rows.  We were making 250k requests total per hour spread across 5
web servers simultaneously.  Since the result set should be static I would
have expected the mahout cluster to fare much better... possibly being able
to take MUCH more traffic, but unfortunately they couldn't handle it... not
even close.  We had to switch from doing live requests to pulling all
possible item recommendations out once per day and caching that result and
then pulling that result from the db rather than from the reco engine.

We want to be able to start layering in demographic, geographic (etc) based
recommendations and with all this going on would prefer to use the live
recos rather than having to cache it , and refresh the cache once a day.
Our expectation was that mahout would scale well but our implementation at
least doesn't seem to bare that out.  What might we be doing wrong?

Thanks in advance,
J

Re: scaling issues

Posted by Sean Owen <sr...@gmail.com>.
As you'd expect, this is one of those things where setting it all up
right, with the right representation and algorithm, can make orders of
magnitude of difference.

Before you conclude "Mahout is slow", let's get a lot more info to
begin to suggest where to improve performance. Looks like you're doing
3.5 user requests per core per second, which doesn't sound normal. For
example running the slope-one algorithm on a data set of this size
usually returns results in < 10ms on my laptop, and you're seeing
300ms.

What algorithm are you using?
How many users, items?
What DataModel (assuming it's in memory -- GenericDataModel or something)