What are the Slack Archives?

It’s a history of our time together in the Slack Community! There’s a ton of knowledge in here, so feel free to search through the archives for a possible answer to your question.

Because this space is not active, you won’t be able to create a new post or comment here. If you have a question or want to start a discussion about something, head over to our categories and pick one to post in! You can always refer back to a post from Slack Archives if needed; just copy the link to use it as a reference..

So anyone? Since we get many of those on production

UK7KBE2JW
UK7KBE2JW Posts: 463 🧑🏻‍🚀 - Cadet

So anyone? Since we get many of those on production

Comments

  • https://documentation.spryker.com/resources_and_developer_tools/session_management/session-handlers.htm?Highlight=session#concurrent-requests

    Separate redis just for sessions, not using locking, identifying open sessions and trying to close them earlier may be some ideas

  • UK7KBE2JW
    UK7KBE2JW Posts: 463 🧑🏻‍🚀 - Cadet

    ok, I will take a look, thx

  • Valerii Trots
    Valerii Trots SRE @ Spryker Sprykee Posts: 1,654 ✨ - Novice

    Here are some feedbacks from our development:

    By default in our shop we use session lock in order to have consistent session data.
    This means that each process lock session during execution, and other processes will wait for lock release.
    If waiting time timeouts, then this error is shown.
    
    Solutions:
    - check which customer's requests takes so long? (this request is not failing, but is running for a significant period of time)
    - do not allow customer to act that fast.
    
    Their requests are either exceeding the maximum time a lock is waited upon (because some other request is holding the lock) , or something more obscure is the problem (such as a failure to generate the keys, a failure to write to redis, not actually using real redis but some other alternative, or messing with the session lock TTL value).
    If the pages are "very slow" it would indicate they have some other page holding the lock.
    
  • UK7KBE2JW
    UK7KBE2JW Posts: 463 🧑🏻‍🚀 - Cadet

    ok thank you. Our pages are normally really fast. I will check if we have some performance issues when the exceptions are thrown