#Self hosted instance is very slow on login and other operations
54 messages · Page 1 of 1 (latest)
I ran top during the login process and php was using > 100% CPU.
Failed to initialize logging provider: Unable to parse DSN: scheme is required
[Error] Timestamp: 2024-11-12T11:21:03+00:00
[Error] Method:
[Error] URL: /apple-touch-icon-precomposed.png
[Error] Type: Appwrite\Extend\Exception
[Error] Message: The requested route was not found. Please refer to the API docs and try again.
[Error] File: /usr/src/code/app/controllers/general.php
[Error] Line: 1051
Failed to initialize logging provider: Unable to parse DSN: scheme is required
[Error] Timestamp: 2024-11-12T11:21:03+00:00
[Error] Method:
[Error] URL: /apple-touch-icon.png
[Error] Type: Appwrite\Extend\Exception
[Error] Message: The requested route was not found. Please refer to the API docs and try again.
[Error] File: /usr/src/code/app/controllers/general.php
[Error] Line: 1051
Failed to initialize logging provider: Unable to parse DSN: scheme is required
185.177.116.106 is not a publicly accessible domain. Skipping SSL certificate generation.
Maybe it is because I have signed up with email addresses, then deleted the users from appwrite admin panel and then signed up with the same email addresses again a few times?
Contabo is to blame here. They oversell their server too much
Look for a different provider
I never had problems before and I have 0 users, I'm during development.
You do have a problem now. If you ever consider starting a serious project you should change your server provider.
They have among the highest cpu steal in the industry
They are utter garbage
So what would you recommend instead? Hetzner?
Hetzner is great. Alternatively you could also consider Netcup. They offer a lot more power but it is contract based.
Anything but Contabo
Ok will do that, let's see if it fixes my problem.
But I still think there is some performance bottleneck maybe in the new appwrite version as I've been using 1.5.x for some time on the same server and never really had an issue.
Thx for your help so far.
I ran Appwrite on a few low spec server and never had that kind of issue
Simply google 'contabo cpu steal' and you will understand
cpu steal up to 5% is fine but on contabo it is constantly in the two digit area and also often over 50%
Your server has to constantly wait to get its turn to use the cpu
https://www.reddit.com/r/VPS/comments/1dakm9j/do_not_use_contabo/?show=original 70% cpu steal in this case
@vocal tendon To double check that the cause is that. Do you can run topand share an screenshot?
Censor if there is some sensitive process or data you don't want to share
Found this from the same error, I'm also on Contabo, netcup looks sick but they are all sold out in the US.
What do you get after running the top command?
Cpu averages anywhere from 5-15%, nothin crazy. I just realized my errors are about different routes. Though they seem to have gone away so I assume maybe somethin wierd happened with my servers internet for a few seconds or something.
You have to check on the CPU steal since we are talking about Contabo
learning new things... that's averaging 5%-25%
Glad I know ab this now ty
Appwrite should run a lot smoother now without that stupid Contabo tax 😜
Oh, that's it 😅
@thorny quail Does it run faster in Hetzner now?
I believe so, VPS in general (ssh, ftp) def feels faster, and reports half the ram usage contabo was reporting with the exact same docker stacks running, wierd. Cancelling Contabo right now
If your server has already 25% cpu steal when idling, it only gets worse from there on when it does any cpu heavy tasks. Especially the login process is resource intensive since Appwrite uses Argon2id under the hood. If Contabo can't even handle a simple ssh session smoothly then it certainly can't handle Appwrite.
Appwrite or a wordpress 😂
Wordpress is way more demanding lol
I thought not 😮
well maybe when you do a fresh install and use it without any plugins and whatnot, but most people do not use vanilla wordpress. They choose wordpress for its vast ecosystem and plugins and all that can be resource heavy
how do you check this?
Enter top in the ssh shell as @azure haven said and look for the stvalue
My server is better so ty, but seems my issue stems from elsewhere, getting the same logs - https://discord.com/channels/564160730845151244/1304970774171353170
Yes I definitely had high steal, constantly between 5-30%, but this still shouldn't be that slow for 1 active user I'd think.
But TBH I don't really know how to interpret steal time, I'll switch to another VPS provider and see if the issue persists.
@vocal tendon
Login is very resource intense. To put it into perspective, I have a server cluster where Appwrite runs on which can handle thousands of thousands of requests, but Login? It can handle login in the two digits. Login is very heavy on the systems
And you chose by far the shittiest provider in existence and that does really not help