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

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

thank you.

after modification should i run ./launcher rebuild app ?

「いいね!」 2

Yes, AFAIK that’s necessary.

「いいね!」 3

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

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

「いいね!」 1

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