Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
3825 Lượt xem

(My english is bad sorry)

Hi everybody

I have my website on Odoo 9, the traffic daily is about 40 people + 10 internal users (I have many modules, sales, accounting etc etc)

I have one server on Digital Ocean, the setup is

Hardware: Ubuntu 14. 8 gb Ram 4 CPU 5 TB Transfer

Config:

Ngnix

I have postgres optimized

I have enabled the swap memory

I have optimized the website images, javascript, html, sql, etc.


Sometimes the server is very slow but I don't know what is the real problem, What is the correct config to support all the users, thanks for your suggestions

Ảnh đại diện
Huỷ bỏ
Tác giả Câu trả lời hay nhất

Hi,

Yes, now I have the next setup

odoo-server.config

workers = 10

xmlrpc = True

ngnix.conf (Ngnix file)

http://pastebin.com/pgTwaPQm

default  (Ngnix file)

http://pastebin.com/WZFc05Nz

Postgres.conf

max_connections = 200

shared_buffers = 2GB

effective_cache_size = 6GB

work_mem = 10485kB

maintenance_work_mem = 512MB

checkpoint_segments = 32

checkpoint_completion_target = 0.7

wal_buffers = 16MB

default_statistics_target = 100

That is my configuration now, all is right ?


Thanks a lot

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Have you setup at least four workers?

https://www.odoo.com/documentation/10.0/setup/deploy.html#builtin-server


Ảnh đại diện
Huỷ bỏ