About db_shared_buffers & unicorn_workers

Hi all,

i use a vps with 4GB ram and 2 core CPU.

Should i change below settings ? If i change them, is ./launcher rebuild app enough ?

db_shared_buffers: "256MB"
UNICORN_WORKERS: 4

thanks.

2 Likes

db_shared_buffers should be no more than 25% of your system memory, which would be 1024MB, assuming that nothing else is running on that box.

unicorn_workers is two per core, so 4 is fine.

5 Likes

thank you.

after modification should i run ./launcher rebuild app ?

2 Likes

Yes, AFAIK that’s necessary.

3 Likes

These are automatically set by the discourse-setup script when you install. You shouldn’t need to change these values manually unless you upgrade your server RAM, etc.

2 Likes

i changed my RAM from 2GB to 4GB so i needed this. thanks.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.