GithubHelp home page GithubHelp logo

Comments (5)

vcarciu avatar vcarciu commented on June 24, 2024

This is not reproducible on Stage

from addons.

kumar303 avatar kumar303 commented on June 24, 2024

For context, this is how the code is expected to work:

  • user performs an action that causes a DB write (such as submitting a review)
  • they get a cookie that pins them to the master MySQL DB for 15 seconds
  • each subsequent request should get data from the master DB instead of a slave DB
  • this prevents them from seeing any noticeable lag

Some theories:

  • maybe 15 seconds is too short on AWS and we need to increase it. We're still trying to find evidence of laggy slaves or not.
  • maybe django-cache-machine is involved? That deals with selecting data from memcache instead of the db. Not sure if it's related though.

from addons.

muffinresearch avatar muffinresearch commented on June 24, 2024

This is causing problems with login related to new users see #1618 - ops are investigating.

from addons.

kumar303 avatar kumar303 commented on June 24, 2024

Update: @jasonthomas increased the size of redis and the cache lag seems to have gone away. That is, I can no longer reproduce the add/delete/refresh test on the review page. This suggests that the key flush lists which were stored in redis were getting evicted before the associated memcache keys were evicted, resulting in memcache keys that never got flushed. Redis is at version 2.8.23 and is currently configured for volatile-lru. Jason is monitoring it and we'll have to see if the problems come back once the larger redis instance hits its max memory.

from addons.

kumar303 avatar kumar303 commented on June 24, 2024

Thanks for verifying. I am skeptical that this is actually fixed :) But we'll see what happens when the larger redis instance hits its memory max and has to start evicting the cache. We can always re-open though.

from addons.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.