Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>In addition to Alix's answer, you may be interested in checkout out this article:</p> <ul> <li><a href="http://lists.danga.com/pipermail/memcached/2006-June/002384.html" rel="noreferrer">Memcached as a Sessions Store (etc)</a> by a Digg employee (Nick: timeless).</li> </ul> <p>A short excerpt:</p> <blockquote> <p><strong>What prompted the Memcached as sessions store:</strong></p> <p>Shortly after the rollout of Digg v3, the non-redundant MySQL session store hardware crashed. This led to a Digg outage. We had always planned that in such a case we would just roll a (trivial) change to put sessions into Memcached rather than MySQL to see how it fared.</p> <hr> <p><strong>So, before you were hitting the db every time for sessions?</strong> </p> <p>Yes.</p> <p>MySQL was plenty capable of keeping up with the inserts and selects done to deal with sessions. Our problem was actually with clearing out old sessions. The script to delete old sessions, despite being fairly sophisticated in its attempts to not overload the sessions database, still affected it.</p> <p>We surmise that Memcached will remove expired sessions with less overhead than MySQL.</p> <hr> <p>We used InnoDB for sessions [before memcached]. It wasn't table- or row-level locking. It was OS-level contention. Using Memcached in front of MySQL would've reduced the load and allowed the admin script to do its work, but that highlights the question: why even have MySQL behind memcached at all? We don't need or even want non-volatile sessions. (Important note to reader: you may need or want non-volatile sessions).</p> </blockquote> <p>"Why even have MySQL behind memcached at all?"... "We don't need or even want non-volatile sessions".</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload