Back

[Help] Is there a tutorial for scaling executor / worker-functions?

  • 0
  • Self Hosted
  • Functions
Ponguta_
29 Apr, 2023, 22:34

Hello, I want to test some stuff and I'm not pretty sure on how executor and worker-functions work.

So I'm asking for a bit of help understanding these two containers, and looking for a tutorial on how to scale them.

My main purpose: Executing functions faster, and understand how these containers works.

TL;DR
The user is asking for help understanding how to scale executor and worker-functions containers, as they want to execute functions faster. They are also looking for a tutorial on this topic. A video tutorial and a GitHub link are shared as potential resources. The solution suggested is to add more worker containers in a docker-compose.override.yml file. The user also asks if it is possible to create another node on the same machine to help execute functions faster and requests guidance on how to do that. Some relevant links to code files are shared as additional references.
Ponguta_
30 Apr, 2023, 01:36

Thank you so much Steven. I'm looking into it.

But, IDK if it's makes sense, as I said, I'm testing stuff. If I want to create another node in the same machine that helps executing functions to make it faster, it could be possible?

If its so, how I can do that?

Drake
30 Apr, 2023, 01:50

That would help with async executions, sure

Drake
30 Apr, 2023, 01:54

The easiest thing to do is to put more worker containers in a docker-compose.override.yml file

Ponguta_
30 Apr, 2023, 17:35

Hello again Steven, please, can you share a bit on how to do that? I just want to be sure to no mess up something.

I want to test as well, something of an old post from myself where I was asking to reduce times on "events" delay when executing functions.

Drake
30 Apr, 2023, 17:37

Like this but using the latest docker compose and putting it in a docker-compose.override.yml file: https://github.com/appwrite/appwrite/issues/1425#issuecomment-886221620

Ponguta_
30 Apr, 2023, 17:39

Thank you so much Steven!

new user
30 Apr, 2023, 20:20

@Ponguta_ this video may be helpful https://www.youtube.com/watch?v=Msv9TpE4C3w

Ponguta_
1 May, 2023, 13:23

I will check it out, thank you!

D5
1 May, 2023, 16:29

That doesn't explain how to run them parallel...

new user
1 May, 2023, 20:34

ok, i just thought this can be helpful.

D5
1 May, 2023, 20:34

No worries

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