-
This is what I was trying to do
Configure your accounts with ip or subnets only, then update your configuration with skip-name-resolve=1
Then
Ok this was resolved after removing
skip name resolve
However it was mentioned on google and other forums on search that adding skip name resolve speeds up the website that’s why i was adding it sadly i had to remove it for cloudron to work not only that even pixelfed password reset wasn’t working but now all works fine except the speed
-
Cloudron has two mysql databases, one for the system itself and also one inside a docker container for apps. Which one are you referring to? To improve on the app performance you have to tweak the one inside the docker container, however tweaking the configs is not supported and may cause compatibility issues with other apps as well as might break a Cloudron update or at least will not survive an update. So it may be better to first discuss what the goals are here and then we can see what tweaking is feasible and what should go into a Cloudron release itself.
-
In a fresh Ubuntu server installed cloudron when I ran the following command to check the optimal performance
./mysqltuner.pl
It gave me a message saying the memory usage is dangerously high.
I then adjusted the join size and buffer size of mysql including maximum packets accordingly to get optimal performance.
The command also asked me under general recommendation to do the following to further adjust the performance
Configure your accounts with ip or subnets only, then update your configuration with skip-name-resolve=1
When I did that on mysql conf the cloudron dashboard and inbuilt mail client stopped working so I had to undo it again.
I didn’t know how to configure accounts with ip and subnets only but I only added
skip-name-resolve=1And it gave me the following error
Cloudron is offline. Reconnecting…
Cloudron Error
ER_HOST_NOT_PRIVILEGED: Host '127.0.0.1' is not allowed to connect to this MySQL server -
@onlybro thanks. I don't know what this
mysqltuner.pl
script is, however all those various options for mysql exist because mysql has 1000s of different use-cases and thus specific tweaks to be made.
Just following a script providing recommendations without fully understanding what they do and for a start how this particular mysql instance is used will not solve anything and usually makes things worse. The ubuntu defaults for mysql usually aim for a good middleground already and they are not chosen randomly. Not specific to mysql, but generally to projects which offer a great variety of optimizations, it often becomes a highly opinionated decision unless we have a solid way to get benchmarks for our use-case.I think to shed some more light here. From that posted ip address, it looks like you are referring to the mysql instance on the host directly. This is essentially just the management database and while important, quite small and is completely unrelated to apps. I don't think even investing time here, unless we see something overly excessive happening, is worth it.
-
@onlybro thanks for the heads up on this. I think I understand the reason for that recommendation. But to understand this in the Cloudron context, once the box process starts up, we create a mysql connection pool. This is never destroyed and as long as the box process is up and running, the name resolving is only done during startup once. So I think we are good as is on this one.
I would actually be more curious about the memory settings you mentioned, that is probably more worthwhile understanding.