Rank 2: Process
we are trying to enter production, but the incomprehensible behavior of the cloud function is very slowing us down.
Votes
1
Replies
24
Participants
Unknown
Messages
25
Rank 2: Process
we are trying to enter production, but the incomprehensible behavior of the cloud function is very slowing us down.
Is this happening on Cloud or self hosting?
idunno I am using the cloud
Rank 2: Process
Self hosting, 16 gm ram, 500 ssd
Rank 2: Process
6 cores
Rank 2: Process
Performing a cloud function affects the operation of the entire system.
Well this can happen due to many factors. Just to name a few:
I would try to detect the problematic areas, which container is working harder, how is the server performing, are there any 500 errors from Appwrite?
You can also connect something like Sentry to Appwrite to get greater visibility on errors, or inspect your container logs.
If you don't have a specific reason to self host, you can also try Cloud, we can also have better visibility of your issues there.
Rank 2: Process
This may be because of the use of relationship.
Rank 2: Process
500 error
Rank 2: Process
How we can listen to the logs of the rumtime function from the container? It does not show logs on the console.
Rank 2: Process
You're using a bun?
You can do so by checking the docker logs. Each runtime spins a container.
bun and node js
Moderator
Run
docker compose logs openruntimes-executor
Rank 2: Process
there is no detailed info here.
Moderator
What's the function code?
Moderator
And are you triggering it in sync or async?
Rank 2: Process
Bun typescript
Rank 2: Process
I don't quite understand what you mean.
Rank 2: Process
for example my webhook module
Rank 5: Hypervisor
What’s the code you’re using to trigger this Function?
Rank 2: Process
webhook methods will call my payment provider
Rank 2: Process
I have 5 modules, each of them performs its own function. But the problem is that the time lapse fails and the weight of the appwrite project freezes.
Rank 2: Process
I don't use the trigger from appwrite console.