Closed Bug 417337 Opened 16 years ago Closed 16 years ago

Upgrade cake to latest stable (1.1.19)

Categories

(addons.mozilla.org Graveyard :: Public Pages, defect)

defect
Not set
blocker

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: clouserw, Assigned: clouserw)

References

Details

I'm recommending we upgrade to 1.1.19, but we should hit at least 1.1.15.  The query speed improvements brought tears to my eyes (over 2000% on the front page).

Fred mentioned we modified core cake code for our login/session stuff.  We should double check that.

Also, when we do load testing, lets make sure we're not sacrificing webhead load for db load. kthx.
Assignee: nobody → clouserw
Component: Add-ons → Public Pages
OS: All → BeOS
QA Contact: add-ons → web-ui
Version: unspecified → 3.0
OS: BeOS → All
Are you recommending we target v3.2 for this?
I personally would suggest so. The performance seems to have increased very much; and since 3.2 has to be QAed (or is being QAed) anyway, this would be a good time to do it if we want possible minor breakage (gotta love making up words) not go unnoticed.

As for the session stuff, I added code in order for Cake not to start a session for every single user automatically but rather make a session only when you log in. This is allegedly fixed though. Also, it'd only be a problem anyway if the auto-created session kept the Netscalers from caching.
Blocks: 404344
(In reply to comment #1)
> Are you recommending we target v3.2 for this?
> 

At the risk of scope creep, yep.  I don't think it will take long to do this. (famous last words!)

(In reply to comment #2)
\> As for the session stuff, I added code in order for Cake not to start a session
> for every single user automatically but rather make a session only when you log
> in. This is allegedly fixed though. Also, it'd only be a problem anyway if the
> auto-created session kept the Netscalers from caching.
> 

I tried it without and the session stuff didn't work.  I applied your patch verbatim, and it works great.  Now I'm checking if I can alter/reduce your patch (which was only a few lines anyway).  This has been the only thing I've found that hasn't worked out of the box so far.
Would it be possible to get this in on trunk prior to 3.2?  This is a top priority...
(In reply to comment #4)
> Would it be possible to get this in on trunk prior to 3.2?  This is a top
> priority...
> 

Will do.
Severity: normal → blocker
Status: NEW → ASSIGNED
If you need any assistance re: User session patch, please let me know.
Looking at our test suite, 1.1.19 is only 1 or 2 tests short of passing the same number of tests as our current code.  There is something wrong with the no-cache headers test and the rollback() code.  I think they are pretty fixable, which brings us to the todo list:

1) Get at least as many tests passing on 1.1.19 as pass on the current code. (almost done)
2) Start getting people clicking through the new code to make sure it works
3) Do some basic performance testing of the current code
4) Do some basic performance testing of the new code

For steps 3 and 4 morgamic says we should use the "test cluster which should be up sometime today" - is there a bug for that?  How do we get access to that and what kind of perf testing tools are we going to use?
(In reply to comment #7)
> what kind of perf testing tools are we going to use?

A basic form would be replaying logs from the live site; we should make sure to do this without caching, so we can determine the actual performance of Cake rather than getting results that are biased by memcache and netscalers.
oremj:  Can you give me and/or use your replay script and a typical log file on the old and new code?
I can do this, but the script is at http://code.google.com/p/logreplay/ in case you get around to it before me.  Talk to me on IRC about getting a log file.


I'm blocked on this until I can find a place to do load testing.  It sounds like the test cluster and khan are both running php5 and we're not ready to make that leap yet.  Any other ideas?
Think oremj was talking about testing it against the staging setup, which is php4...
Yep, stating setup wfm.  Just let me know what you want the set up to look like.
I'll do functional testing there, too...
This is landed on AMO trunk in:

r10573: remove current cake
r10574: add new cake w/ mozilla patches
r10575: add compatibility changes to AMO code base

oremj is currently setting up our production tag on the stage box to test.
This went live tonight with bug 420350.  We didn't see the awesome perf gains on the webheads when load testing, but the new code has a lot of bug fixes so I think it was a good thing to upgrade.  I'm still hoping to see some perf gains on the db boxes once we've had a full day of logging.  Thanks to everyone for the help.
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Product: addons.mozilla.org → addons.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.