Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
8117 มุมมอง

Hi,

What is the gevent into V8.0 ? How its functioning ?

Can any one help me to understand gevent and its usage and flow ?

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

I don't know if you are still interested in this question after so long time, but I'll try to give some clarifications on the subject.


gevent is multitasking network library for python. 

When started in multitasking mode (with the --workers=N option), odoo will lunch several different processes to treat incomming connections. In such a situation some synchronization between these processes is needed. Here comes in hand the gevent library. If gevent is installed odoo will use it's events mechanism to run processes in synchronized way.


More about gevent you can learn here: http://www.gevent.org/intro.html.


In fact, to activate the gevent mechanism you need to use /usr/bin/openerp-gevent as startup script instead of /usr/bin/odoo.py.


Hope this helps.

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
7
ก.ย. 20
7433
1
พ.ย. 17
4042
0
พ.ย. 16
4029
1
ม.ค. 24
32464
Notes module - I see everyone's notes แก้ไขแล้ว
3
ธ.ค. 15
6767