Open
Bug 1275545
Opened 9 years ago
Updated 5 years ago
Use Sereal for Cache::Memcached::Fast
Categories
(bugzilla.mozilla.org :: General, task)
Tracking
()
REOPENED
People
(Reporter: dylan, Assigned: is2ei, Mentored)
Details
(Keywords: perf)
Attachments
(2 files, 1 obsolete file)
|
996 bytes,
patch
|
dylan
:
review+
|
Details | Diff | Splinter Review |
|
1.57 KB,
patch
|
Details | Diff | Splinter Review |
Sereal is a lot faster than storable (which is what Cache::Memcached::Fast uses now). It is a pretty easy config change to add sereal support:
pass (serialize_methods => [ $serialize_func, $deserialize_func ]) to Cache::Memcached::Fast.
Documentation for Cache::Memcached::Fast: https://metacpan.org/pod/Cache::Memcached::Fast
Here's an article about sereal: http://blog.booking.com/sereal-a-binary-data-serialization-format.html
In particular this graph is exciting:
http://blog.booking.com/static/sereal-a_binary_serialization_format/decoder_perf.png
| Reporter | ||
Updated•9 years ago
|
Priority: -- → P5
Whiteboard: [good first bug]
| Assignee | ||
Comment 1•9 years ago
|
||
Hello, I would like to work on this issue.
Could you please assign it to me?
| Reporter | ||
Comment 2•9 years ago
|
||
Sure thing!
You can consult the readme (https://github.com/bugzilla/bugzilla/blob/master/README.rst)
and if you have other questions about setting up a dev server people will be available in #bugzilla on irc.mozilla.org
Assignee: general → horie7188
| Assignee | ||
Comment 3•9 years ago
|
||
Hi, I attached patch for bug #1275545.
Could you please review it?
Comment 4•9 years ago
|
||
Comment on attachment 8826231 [details] [diff] [review]
patch.diff
Need to always enter a specific requestee for the review flag otherwise it will get lost.
dkl
Attachment #8826231 -
Flags: review?(dylan)
| Reporter | ||
Comment 5•9 years ago
|
||
Comment on attachment 8826231 [details] [diff] [review]
patch.diff
This won't work, because you need:
use Sereal;
Probably near:
https://github.com/bugzilla/bugzilla/blob/master/Bugzilla/Memcached.pm#L18
Have you been able to get bugzilla running locally? we can chat about that in irc if you like, it isn't too difficult.
Attachment #8826231 -
Flags: review?(dylan) → review-
| Assignee | ||
Comment 6•9 years ago
|
||
Thanks for reviewing!
I attached new patch.diff.
It contains:
use Serial;
This time I think I checked review flag and entered "dylan@mozilla.com" as requestee.
Could you please check it?
Attachment #8826231 -
Attachment is obsolete: true
Attachment #8826687 -
Flags: review?(dylan)
| Reporter | ||
Comment 7•9 years ago
|
||
Comment on attachment 8826687 [details] [diff] [review]
patch.diff
r=dylan
this works! Before we add it, we need to add the dependency to Makefile.PL.
It should be part of the optional memcached dependency.
https://github.com/bugzilla/bugzilla/blob/master/Makefile.PL#L149
Also, change the 'use Sereal' to 'require Sereal' and move it down to require Memcached::Fast'. Do this so that Sereal is only loaded when the memcached feature is available.
Attachment #8826687 -
Flags: review?(dylan) → review+
Updated•8 years ago
|
Keywords: good-first-bug
| Reporter | ||
Comment 9•8 years ago
|
||
It sure is! I'm moving this to BMO since we're going to be working on stabilizing that as Bugzilla 6.
BMO already depends on Sereal (as of the last week or so).
This will need local testing on a development VM -- see https://github.com/mozilla-bteam/bmo/blob/master/README.rst#using-vagrant-for-development and you can reach out to me on irc.mozilla.org #bugzilla with questions.
Assignee: horie7188 → nikshepsvn
Component: Bugzilla-General → General
Flags: needinfo?(dylan)
Product: Bugzilla → bugzilla.mozilla.org
QA Contact: default-qa
Version: 5.1.1 → Production
| Assignee | ||
Comment 10•7 years ago
|
||
Hi, Is this still open?
Sorry for late but I'd like to finish this issue.
| Assignee | ||
Comment 11•7 years ago
|
||
Sorry for late.
Could you check this patch if it is still open?
Attachment #8968008 -
Flags: review?(dylan)
| Reporter | ||
Updated•7 years ago
|
Assignee: nikshepsvn → is2ei.horie
Priority: P5 → P1
| Assignee | ||
Comment 12•7 years ago
|
||
I've created PR for this bug. https://github.com/bugzilla/bugzilla/pull/63
Could you check it when you have time? Thanks!
Flags: needinfo?(dylan)
| Assignee | ||
Comment 13•7 years ago
|
||
Hi Dylan,
I tried to run bmo repo on my local environment with vagrant.
Then, I got an error.
====================
$ vagrant up
Bringing machine 'db' up with 'virtualbox' provider...
Bringing machine 'web' up with 'virtualbox' provider...
==> db: Checking if box 'centos/6' is up to date...
==> db: Clearing any previously set network interfaces...
The specified host network collides with a non-hostonly network!
This will cause your specified IP to be inaccessible. Please change
the IP or name of your host only network so that it no longer matches that of
a bridged or non-hostonly network.
Bridged Network Address: '192.168.3.0'
Host-only Network 'enp2s0': '192.168.3.0'
========================
Could you help me to fix this issue, please?
| Assignee | ||
Comment 14•7 years ago
|
||
Created PR in GitHub.
https://github.com/mozilla-bteam/bmo/pull/557
| Assignee | ||
Updated•7 years ago
|
Status: NEW → ASSIGNED
| Assignee | ||
Updated•7 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
| Reporter | ||
Comment 16•7 years ago
|
||
Re-opened, just briefly, as we have to do a push today and I didn't want to have to flush memcached. It'll go out next week.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
| Reporter | ||
Updated•7 years ago
|
Priority: P1 → --
Comment 17•7 years ago
|
||
Removing good-first-bug keyword because team does not have bandwidth to mentor at the moment.
Keywords: good-first-bug
| Reporter | ||
Updated•6 years ago
|
Attachment #8968008 -
Flags: review?(dylan)
Updated•6 years ago
|
Type: defect → enhancement
Updated•6 years ago
|
Type: enhancement → task
Updated•5 years ago
|
Whiteboard: [good first bug]
You need to log in
before you can comment on or make changes to this bug.
Description
•