Closed
Bug 784715
Opened 12 years ago
Closed 12 years ago
Add a client-side load balancing for the memcached pool
Categories
(Marketplace Graveyard :: General, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
2012-08-30
People
(Reporter: tarek, Assigned: tarek)
References
Details
We're adding a small load balancer in the memcached pool to follow the Marketplace general infrastructure.
Features:
- will round robin to pick a random server from the list
- if a client call fails with an server down error, it gets blacklisted for 60s
- server down errors are caught and the request is replayed with a new server pick
- if we run out of servers, the error goes through
Assignee | ||
Comment 1•12 years ago
|
||
Implemented in https://github.com/mozilla/django-memcached-pool/commit/bcc30f8be6d2a321853de7a19a9b1631fa38d0bf
Andy can you review the code a bit ? Thanks !
Assignee | ||
Comment 2•12 years ago
|
||
s/server down errors are caught../server down errors *on connection* are caught../
Updated•12 years ago
|
Assignee: nobody → tarek
Target Milestone: --- → 2012-08-30
Comment 3•12 years ago
|
||
I think we're good with this. I've changed the codebase according to :amckay review. Let me know if I need to do something more or if we can go ahead.
Status: NEW → ASSIGNED
Comment 4•12 years ago
|
||
Looks good, go for it.
Comment 5•12 years ago
|
||
I've tagged a 0.1 and released it on PyPI.
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•