Skip to content
Back

Do I need more workers to use more CPU cores or threads simultaneously?

  • 0
  • Self Hosted
  • Functions
Vinicius Brito
23 Oct, 2023, 17:40

Or can a single worker use several CPU cores?

TL;DR
The user is asking if they need more workers to utilize more CPU cores or threads simultaneously. The solution is to change the `_APP_WORKER_PER_CORE` in the `.env` file. It is recommended to either use a ratio or add more cores. Self-hosted Appwrite uses 6 workers per host core by default. It is not clear if a single worker can use multiple CPU cores.
Binyamin
23 Oct, 2023, 17:47

Self-hosted Appwrite uses by default 6 worker per host core

Binyamin
23 Oct, 2023, 17:47

You can increase that number. but, it's recommend to use ratio, or add more cores.

Vinicius Brito
23 Oct, 2023, 17:47

Nice!

Binyamin
23 Oct, 2023, 17:48

To do so change the _APP_WORKER_PER_CORE here in your .env file

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more