Git Product home page Git Product logo

Comments (13)

whulshof avatar whulshof commented on July 19, 2024

Would the pull request also work on 10.0 or do I have to modify it? Probably dumb question, but I don't have the time right now to look into it and I do have trouble with huge amount of sessions. I could do some of the thorough testing as mentioned by @guewen though.

from queue.

guewen avatar guewen commented on July 19, 2024

@whulshof I ported the pull request here: #53
I'd love your feedback :)

from queue.

sbidoul avatar sbidoul commented on July 19, 2024

@guewen do you have good results with this in production? We'll probably deploy it too.

from queue.

whulshof avatar whulshof commented on July 19, 2024

from queue.

guewen avatar guewen commented on July 19, 2024

do you have good results with this in production? We'll probably deploy it too.

@sbidoul Yes! So far so good. It helps a lot to keep a low number of sessions and we didn't had any side effects (at least observed) :)

@whulshof could you give it a try?

from queue.

whulshof avatar whulshof commented on July 19, 2024

from queue.

sbidoul avatar sbidoul commented on July 19, 2024

@Cedric-Pigeon if not done yet, can you deploy this in production and report your findings?

from queue.

whulshof avatar whulshof commented on July 19, 2024

from queue.

guewen avatar guewen commented on July 19, 2024

Question: would it be possible that large number of sessions lead to more used connections to postgres and therefor possible overshoot in max-connections?

I don't think. I don't see any way web sessions and postgres connections would be related.

from queue.

guewen avatar guewen commented on July 19, 2024

Thank you for your feedback @whulshof!

from queue.

whulshof avatar whulshof commented on July 19, 2024

I still have quite high numbers of sessions generated. After not monitoring for a month the number was some 8000 (!). After deletion and in a few days with a lot of Job Queue activity, the number again increased from 0 to 2000 sessions whereas there are some 50-100 human users. I get the feeling we didn't really solve this problem yet. @guewen @sbidoul any second thoughts about it?

from queue.

guewen avatar guewen commented on July 19, 2024

@whulshof Are you sure they are not generated by something else, such as a healthcheck or uptime check?

On a production system with the patch applied since a couple of months, the session count stays slow.
2039 sessions at the moment, with 1'132'203 jobs the last 30 days

selection_287
selection_288

from queue.

whulshof avatar whulshof commented on July 19, 2024

from queue.

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.