Skip to content

[MISC] odoo/service: scale up by one worker when all workers are busy, the total number of workers is limited to 1.5x#1207

Open
royle-vietnam wants to merge 1 commit intoViindoo:17.0from
royle-vietnam:v17_misc_odoo_service
Open

[MISC] odoo/service: scale up by one worker when all workers are busy, the total number of workers is limited to 1.5x#1207
royle-vietnam wants to merge 1 commit intoViindoo:17.0from
royle-vietnam:v17_misc_odoo_service

Conversation

@royle-vietnam
Copy link
Collaborator

Hiện trạng:

  • Hết worker nếu thao tác gì đó lâu

Giải pháp:

  • Mỗi lần thực hiện request sẽ đánh dấu worker đó bận, thực hiện xong thì đánh dấu hết bận. Nếu tất cả worker bận thì cho phép tăng thêm 1 worker mỗi lần. Số lượng worker tăng thêm không quá 1.5x so với cấu hình ban đầu
    Ví dụ cấu hình là 8 worker, thì chỉ được tăng tối đa thêm 4 worker

Mặc định cấu hình 8 worker là Odoo đã tạo cả 8 worker rồi, nên chỉ khi 8 worker đều bận thì mới tăng thêm

TODOs:

  • Đóng worker đã tăng thêm khi số lượng worker nhàn dỗi nhỏ hơn số lượng worker đã cấu hình, ví dụ cấu hình 8, tăng thêm 4, lúc rảnh có thể đóng bớt 4 đi để quay về cấu hình ban đầu <= chưa tìm ra giải pháp, nhưng hiện tại cứ restart hoặc đêm restart thì sẽ quay về số worker ban đầu

I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr

the total number of workers is limited to 1.5x
@viinbot viinbot added 🚀 Running PR/Commit is done for everything and ready for manually test and removed 🚀 Building labels Mar 13, 2026
@viinbot
Copy link

viinbot commented Mar 13, 2026

@royle-vietnam Viindoo Test Suite has passed!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

R&D 🚀 Running PR/Commit is done for everything and ready for manually test

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants