Giter Club home page Giter Club logo

Comments (5)

colinmollenhour avatar colinmollenhour commented on July 21, 2024

Locking is actually quite complex and very difficult to handle when there are scenarios such as PHP fatal errors or high concurrency since Redis doesn't have any native locking.

If you have any scripts with fatal errors then the fatal error causes the locked session to remain locked after the fatal error so the next request will start attempting to break that lock. If a lock is broken it will report where the last request was so you can hopefully track down which page caused the fatal error. However, if you have no fatal errors in your PHP logs then it is either a page that was extremely slow to load or some unexplained reason for the previous lock not getting broken..

In the second log message the concurrency exceeded with 17 waiting and 16 total requests would mean either there is an unreleased lock issue (e.g. fatal error) or a page that is very slow to load and the user kept hitting refresh creating new processes that are now all waiting on the lock.

So, I don't have a solution to your problems as it is hard to know what they are caused by.. If you aren't too concerned with locking you could reduce the "break_after_frontend" time which would allow locks to be broken sooner thereby reducing the chances of a user getting the 503 page due to exceeding the number of concurrent lock waiters.

When you get errors that only occur under huge volumes of traffic it is really hard to debug.. I've had some of these errors and have discovered them to be caused by other issues like slow pages, and there are others I have yet to solve..

from cm_redissession.

seansan avatar seansan commented on July 21, 2024

Our log is also full with this message after a server move ....

2014-02-18T18:46:02+00:00 NOTICE (5): Broke lock for sess_508a79790e85837eb22cafbe80ffbe25. Tried 30 times. Lock: , BREAK_MODULO: 5

And we can no longer log into the backend without flushing the cache via shell ...

Is this something we need to fix/change in config?

thanks

Last request of broken lock:
2014-02-18T18:46:23+00:00 NOTICE (5): Broke lock for sess_23e595507c3f917157608de21a460799. Tried 30 times. Lock: , BREAK_MODULO: 5
Last request of broken lock:
2014-02-18T18:46:26+00:00 NOTICE (5): Broke lock for sess_4d9240d0e7eb256029ace2d3872c6776. Tried 30 times. Lock: , BREAK_MODULO: 5
Last request of broken lock:
2014-02-18T18:47:23+00:00 NOTICE (5): Broke lock for sess_d7359a1e06ef0862c43b268409f831c1. Tried 30 times. Lock: , BREAK_MODULO: 5
Last request of broken lock:
2014-02-18T18:47:32+00:00 NOTICE (5): Broke lock for sess_2ef90995a28604609109294967a25c7c. Tried 30 times. Lock: , BREAK_MODULO: 5
Last request of broken lock:
2014-02-18T18:47:35+00:00 NOTICE (5): Broke lock for sess_cbfb41e08ce26fb2a25dc90d031de5c7. Tried 30 times. Lock: , BREAK_MODULO: 5
Last request of broken lock:
2014-02-18T18:47:58+00:00 NOTICE (5): Broke lock for sess_083f894f8fbd732e8d4ac7da93cfc7c1. Tried 30 times. Lock: , BREAK_MODULO: 5
Last request of broken lock:
2014-02-18T18:47:58+00:00 NOTICE (5): Broke lock for sess_974aa3c500692f939a6ffa4adf55a3b6. Tried 30 times. Lock: , BREAK_MODULO: 5
Last request of broken lock:
2014-02-18T18:47:58+00:00 NOTICE (5): Broke lock for sess_b21d96ab1cd78c852a94fa21cde03d45. Tried 30 times. Lock: , BREAK_MODULO: 5
Last request of broken lock:
2014-02-18T18:48:02+00:00 NOTICE (5): Broke lock for sess_eeb949987e40a92f25459e3b6d7f8e95. Tried 30 times. Lock: , BREAK_MODULO: 5
Last request of broken lock:
2014-02-18T18:48:02+00:00 NOTICE (5): Broke lock for sess_66ad4fc43503ed1eb401ba2e05336ea9. Tried 30 times. Lock: , BREAK_MODULO: 5
Last request of broken lock:
2014-02-18T18:48:06+00:00 NOTICE (5): Broke lock for sess_f87097a98d8c804363ae705faa95a39e. Tried 30 times. Lock: , BREAK_MODULO: 5
Last request of broken lock:
2014-02-18T18:48:07+00:00 NOTICE (5): Broke lock for sess_b01dbd3db943a13120012983d4a181e2. Tried 30 times. Lock: , BREAK_MODULO: 5
Last request of broken lock:
2014-02-18T18:48:07+00:00 NOTICE (5): Broke lock for sess_81b6e423382d8e974cee0d97a1f6f273. Tried 30 times. Lock: , BREAK_MODULO: 5
Last request of broken lock:
2014-02-18T18:48:51+00:00 NOTICE (5): Broke lock for sess_b945aab05ff5e0cd43036ef61ff67826. Tried 30 times. Lock: , BREAK_MODULO: 5
Last request of broken lock:
2014-02-18T18:49:41+00:00 NOTICE (5): Broke lock for sess_e30a213df1cbe5393e6fdf0c77ff7ff0. Tried 30 times. Lock: , BREAK_MODULO: 5
Last request of broken lock:
2014-02-18T18:50:37+00:00 NOTICE (5): Broke lock for sess_0418dc468147ce4a5ecdc0a1b329fc29. Tried 30 times. Lock: , BREAK_MODULO: 5
Last request of broken lock:
2014-02-18T18:51:39+00:00 NOTICE (5): Broke lock for sess_383100dd1b2f5daf1108c3724c1eb5fe. Tried 30 times. Lock: , BREAK_MODULO: 5
Last request of broken lock:
2014-02-18T18:52:32+00:00 NOTICE (5): Broke lock for sess_f44407a058d8d35752bc946f1414d5a5. Tried 30 times. Lock: , BREAK_MODULO: 5
Last request of broken lock:
2014-02-18T18:53:28+00:00 NOTICE (5): Broke lock for sess_5c78c46b5c61bc5c991bf2498615a250. Tried 30 times. Lock: , BREAK_MODULO: 5
Last request of broken lock:
2014-02-18T18:54:17+00:00 NOTICE (5): Broke lock for sess_79862ee224e3a946909ef6c2c1020d76. Tried 30 times. Lock: , BREAK_MODULO: 5
Last request of broken lock:
2014-02-18T18:54:21+00:00 NOTICE (5): Broke lock for sess_4c2dc5cc9f16f0d6ee755621121f924c. Tried 30 times. Lock: , BREAK_MODULO: 5
Last request of broken lock:
2014-02-18T18:55:15+00:00 NOTICE (5): Broke lock for sess_5948154a4ac144709f1e9ef217038deb. Tried 30 times. Lock: , BREAK_MODULO: 5
Last request of broken lock:
2014-02-18T18:56:09+00:00 NOTICE (5): Broke lock for sess_fc648b4f3bf0b3fa7a76eb8f37c48ced. Tried 30 times. Lock: , BREAK_MODULO: 5
Last request of broken lock:
2014-02-18T18:57:03+00:00 NOTICE (5): Broke lock for sess_03be013e93b26ef74288a68514cafb39. Tried 30 times. Lock: , BREAK_MODULO: 5
Last request of broken lock:
2014-02-18T18:57:57+00:00 NOTICE (5): Broke lock for sess_97d006d46a5acc6e3d8e4c0a6204cea7. Tried 30 times. Lock: , BREAK_MODULO: 5
Last request of broken lock:
2014-02-18T19:00:10+00:00 NOTICE (5): Broke lock for sess_3ffd36037efefa726833aa00ca3fdc2c. Tried 30 times. Lock: , BREAK_MODULO: 5
Last request of broken lock:
2014-02-18T19:01:54+00:00 NOTICE (5): Broke lock for sess_eb56c5aa81b2d9bf15e4b2d6076509e6. Tried 30 times. Lock: , BREAK_MODULO: 5
Last request of broken lock:
2014-02-18T19:01:56+00:00 NOTICE (5): Broke lock for sess_2681205456f5614f2f3579fd2b94e2e0. Tried 30 times. Lock: , BREAK_MODULO: 5
Last request of broken lock:
2014-02-18T19:02:59+00:00 NOTICE (5): Broke lock for sess_328f9860980ead90045311760193adbb. Tried 30 times. Lock: , BREAK_MODULO: 5
Last request of broken lock:
2014-02-18T19:03:32+00:00 NOTICE (5): Broke lock for sess_6bc32fcdfd4e7c1953babef1d51125e1. Tried 30 times. Lock: , BREAK_MODULO: 5
Last request of broken lock:
2014-02-18T19:11:10+00:00 NOTICE (5): Broke lock for sess_1183e6e56ad0419ab5b096bcf9649054. Tried 30 times. Lock: , BREAK_MODULO: 5
Last request of broken lock:
2014-02-18T19:17:31+00:00 NOTICE (5): Broke lock for sess_6d3163defa3c5b3dec3bfa414faee8cf. Tried 30 times. Lock: , BREAK_MODULO: 5
Last request of broken lock:
2014-02-18T19:18:04+00:00 NOTICE (5): Broke lock for sess_6d3163defa3c5b3dec3bfa414faee8cf. Tried 30 times. Lock: , BREAK_MODULO: 5
Last request of broken lock:
2014-02-18T19:18:17+00:00 NOTICE (5): Broke lock for sess_f34490434750b9960c8e192f8a8cc5e7. Tried 30 times. Lock: , BREAK_MODULO: 5
Last request of broken lock:
2014-02-18T19:21:30+00:00 NOTICE (5): Broke lock for sess_b62e1c15e04697bad5cc07c420784e84. Tried 30 times. Lock: , BREAK_MODULO: 5
Last request of broken lock:
2014-02-18T19:21:39+00:00 NOTICE (5): Broke lock for sess_f34490434750b9960c8e192f8a8cc5e7. Tried 30 times. Lock: , BREAK_MODULO: 5
Last request of broken lock:
2014-02-18T19:22:11+00:00 NOTICE (5): Broke lock for sess_74d1907f5e0702d8556cc149d37b4c8e. Tried 30 times. Lock: , BREAK_MODULO: 5
Last request of broken lock:

from cm_redissession.

colinmollenhour avatar colinmollenhour commented on July 21, 2024

@seansan You are using a very old version..

from cm_redissession.

seansan avatar seansan commented on July 21, 2024

Thx. I issued modman update ...

But a question. I was looking through the folders. Is there actually a way to determine the version installed using modman (and compare to git online) version?

from cm_redissession.

colinmollenhour avatar colinmollenhour commented on July 21, 2024

git log

from cm_redissession.

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.