Closed Bug 934594 Opened 11 years ago Closed 11 years ago

Add memcached support to buildapi

Categories

(Release Engineering :: General, defect)

x86_64
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: dustin, Assigned: dustin)

Details

Attachments

(1 file)

Buildapi currently uses redis as a caching backend.  It has a stub implementation of memcached, but no actual code.  We'll need to add memcached support in order to move off of redis.
Depends on: 934593
Chris, per our meeting yesterday, I think it's reasonable for me to proceed with this - sound good?  For signing (bug 934623), the proper solution remains to be seen.
Flags: needinfo?(catlee)
sure, sounds good.

One thing to watch out for is max value size. I think we ended up having to gzip some data so it would fit in a single redis key.
Flags: needinfo?(catlee)
The max for a Redis key is 512M, while the max for Memcached is 1MB.  The biggest key I see in redis right now is a bit over 3K.  So I think we're safe..
Attached patch bug934594.patchSplinter Review
Attachment #829515 - Flags: review?
Comment on attachment 829515 [details] [diff] [review]
bug934594.patch

I'm not particularly sure what to do with the test script, but it did uncover bugs in the redis implementation.
Attachment #829515 - Flags: review? → review?(catlee)
As I mentioned yesterday, I'd like to land this regardless of whether we we use memcached, since it fixes redis bugs.  If you'd like, I can redraft with the memcached stuff removed.
No longer blocks: 863268
No longer depends on: 934593
Attachment #829515 - Flags: review?(catlee) → review+
Attachment #829515 - Flags: checked-in+
I made the log.exception change you mentioned in irc.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Component: Tools → General
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: