Comments (13)
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.
@whulshof I ported the pull request here: #53
I'd love your feedback :)
from queue.
@guewen do you have good results with this in production? We'll probably deploy it too.
from queue.
from queue.
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.
from queue.
@Cedric-Pigeon if not done yet, can you deploy this in production and report your findings?
from queue.
from queue.
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.
Thank you for your feedback @whulshof!
from queue.
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.
@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
from queue.
from queue.
Related Issues (20)
- [16.0][queue_job] "base_sparse_field" is missing on Odoo 16 HOT 2
- Random message: Unable to use a closed cursor HOT 2
- chain() doesn't work as advertised (or am I misunderstanding something?) HOT 1
- Serialise job-graphs onto the database HOT 3
- [V16-queue_job] Problems with multiple databases
- Disable queue_job in staging env HOT 2
- Question: Is it possible to modify an existing queue.job chain? HOT 2
- The job runner does not understand cancelled jobs HOT 7
- Controller method fails HOT 8
- why run with with_delay can not get the new field。。。。???? ValueError: Invalid field 'job_title' on model 'hdjn_oa.employee_ext' HOT 1
- [QUESTION] About channels HOT 1
- Error with PgBouncer HOT 6
- OperationalError, but progress is saved and job is repeated couple more times
- KeyError: 'socket' After install queue.job in odoo 16.0 HOT 9
- [14.0] identity_exact not working w/ chained jobs? HOT 6
- installation not possible in odoo 16 HOT 2
- Since Odoo 15.0 environment.manage is useless warning from migration script in queue_job HOT 2
- Assigning delayable variable to another variable breaks delayable HOT 1
- queue_job_cron_jobrunner for v13 HOT 3
- Cannot install queue_job on odoo 16/windows (OSError: [WinError 10038] An operation was attempted on something that is not a socket) HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from queue.