Open Bug 1275545 Opened 9 years ago Updated 5 years ago

Use Sereal for Cache::Memcached::Fast

Categories

(bugzilla.mozilla.org :: General, task)

Production
task
Not set
normal

Tracking

()

REOPENED

People

(Reporter: dylan, Assigned: is2ei, Mentored)

Details

(Keywords: perf)

Attachments

(2 files, 1 obsolete file)

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
Priority: -- → P5
Whiteboard: [good first bug]
Hello, I would like to work on this issue. Could you please assign it to me?
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
Attached patch patch.diff (obsolete) — Splinter Review
Hi, I attached patch for bug #1275545. Could you please review it?
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)
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-
Attached patch patch.diffSplinter Review
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)
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+
Is this open? Would love to finish it up!
Flags: needinfo?(dylan)
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
Hi, Is this still open? Sorry for late but I'd like to finish this issue.
Attached patch patch-02.diffSplinter Review
Sorry for late. Could you check this patch if it is still open?
Attachment #8968008 - Flags: review?(dylan)
Assignee: nikshepsvn → is2ei.horie
Priority: P5 → P1
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)
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?
Status: NEW → ASSIGNED
Hey, sorry. I'll review this now.
Flags: needinfo?(dylan)
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
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 → ---
Priority: P1 → --

Removing good-first-bug keyword because team does not have bandwidth to mentor at the moment.

Keywords: good-first-bug
Attachment #8968008 - Flags: review?(dylan)
Type: defect → enhancement
Type: enhancement → task

Hi is this issue still open to contribute to ?

Flags: needinfo?(dylan)
Whiteboard: [good first bug]

It's not a good first bug, sorry

Flags: needinfo?(dylan)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: