-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy path__manifest__.py
35 lines (29 loc) · 1.15 KB
/
__manifest__.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# -*- coding: utf-8 -*-
{
'name': "odoo-orm-cache",
'summary': """
store ormcache in redis""",
'description': """
1.prepare more than two servers, one is the master ,the others are slave(s)
2.copy the files to the odoo server directory, and replace the old files;
3.modify the master odoo.conf file:
session_redis_url=redis://@redis-ip:6379/0
ormcache_redis_url=redis://@redis-ip:6379/0 ;strongly recommand the redis instance used in ormchace is not previous one
max_cron_threads = x ;(x>1)
4.modify all the slave(s) odoo.conf file:
session_redis_url=redis://@redis-ip:6379/0 ;same as master
ormcache_redis_url=redis://@redis-ip:6379/0 ;same as master
max_cron_threads = 0
5.use a nfs directory as data directory for master and slave(s) server(mount as a folder).
odoo.conf:
data_dir = data ==> a nfs directory
""",
'author': "Popow",
'website': "https://github.com/openliu/Odoo-Cluster",
'category': 'Technical Settings',
'version': '0.1',
'depends': ['base'],
"external_dependencies": {
'python': ['redis'],
},
}