Back

_APP_WORKER_PER_CORE

  • 0
  • Self Hosted
develocode777
21 Nov, 2023, 11:16

What happens if an app needs more than the _APP_WORKER_PER_CORE value?

TL;DR
The user is asking about the behavior of workers in the app and what happens when the number of workers reaches the value set in _APP_WORKER_PER_CORE. They are unsure if the workers are in a FIFO order and how long they have to wait for a worker to become available. They also ask what happens if the app needs more workers than the value set in _APP_WORKER_PER_CORE. Solution: The behavior of workers in relation to their order and waiting time is unclear. If the app exceeds the value set in _APP_WORKER_PER_CORE, it is unknown whether the functions will fail or there is any specific behavior. It
Drake
21 Nov, 2023, 20:44

what app are you talking about?

develocode777
21 Nov, 2023, 20:51

It's a flutter app and it makes calls to many functions which results in that many workers, so the question is what happens when the number workers reaches the value in _APP_WORKER_PER_CORE? Do the functions simply fail beyond that point or what is the behavior?

Drake
21 Nov, 2023, 20:52

they get blocked until a worker is available and then it's processed

Drake
21 Nov, 2023, 20:53

so on the client side, it'll just look like the API call is taking longer to execute

develocode777
21 Nov, 2023, 20:56

So in this case how long do you have to wait for a worker to become available?

Drake
21 Nov, 2023, 21:09

Until the busy ones are free...I would assume it's a FIFO order but I don't know for sure

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