Back

How to increase the number of simultaneous executions of functions?

  • 0
  • Functions
rafagazani
22 Sep, 2023, 18:13

I see that my server has more resources that it is not using. But because we're using a lot of functions that darken collections, it takes time to execute. I'm using version 1.1.2

TL;DR
The user is experiencing low simultaneous function execution on their server even though the server specs are strong. They have 40 functions with 4,000-10,000 calculations every 24 hours. CPU and memory usage are only at 35% and 50%, respectively. The user is planning to upgrade but currently running version 1.1.2. A semi-solution is suggested in a GitHub issue. Upgrading to the latest version (1.4.3) is recommended for improved performance.
Binyamin
22 Sep, 2023, 18:15

First it's always best to upgrade as the performance improved in the latest 1.4.3 version, if you do so remember to upgrade to 1.2.1+ migrate then 1.3.8 + migrate then to 1.4.3

Binyamin
22 Sep, 2023, 18:15

For being able to execute simultaneous check the semi-solution in that issue.

Binyamin
22 Sep, 2023, 18:15

Also remember to backup in each step

Binyamin
22 Sep, 2023, 18:17

BTW

  • What are your server specs?
  • How many function are you executing utmost for a given second?
  • What is the output (random) of docker stats
rafagazani
22 Sep, 2023, 18:22

Updating is in the plans but as I am in production, we are planning the update.

Binyamin
22 Sep, 2023, 18:22

Understood

Binyamin
22 Sep, 2023, 18:22

Then the semi-solution should increase your function execution capacity

rafagazani
22 Sep, 2023, 18:23

16 GB Memory / 8 AMD vCPUs / 160 GB Disk

Binyamin
22 Sep, 2023, 18:23

That's a pretty strong server

rafagazani
22 Sep, 2023, 18:24

Checking the CPU graphics does not exceed 35% usage. Physical memory at 50%

rafagazani
22 Sep, 2023, 18:33

With only 40 functions, my calculations are four thousand and ten thousand every 24 hours, so the execution counter is on page 417 of the console. The work is not constant but there is an excess of resources to study the solution that you suggested, obrigado.

Binyamin
22 Sep, 2023, 18:35

👍

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