Re: Re: Load time achievement
Reply #15 –
Did you check the hostname lookup setting (just want to be sure its a DB issue and not something else) is off?
The error message appears to be it was not finding the mysqld.sock socket, what setting did you have to change to fix the issue?
Re: Re: Load time achievement
Reply #16 –
It was a jail / chroot issue. Not jailing / chrooting it allows direct connection to localhost, so that issue alone was fixed.
However, there is no improvement whatsoever, so my guess about it was totally wrong. I got nothing to do with either 127.0.0.1 or localhost connection. Learning on how Elkarte 2.0 Beta 1 php is processing database may be is what I need to find out more.
By the way, converting either from or to 127.0.0.1 to or from localhost, need to be done in database as well as settings file, as the leftovers might render an Elkarte forum inaccessible do to the change of path whether just /web for chrooted site using 127.0.0.1 or /full/path/to/web in localhost setup.
It might be easier to setup a new site for testing, unless you want to have some fun too, which I did.
Re: Re: Load time achievement
Reply #17 –
I noticed you fix this in this in this forum since its queries are now improved than when it was launched before. Do share the adjustments you made @Spuds.
Re: Re: Load time achievement
Reply #18 –
I've installed this on a few machines now and have not exactly been able to replicate the slowdown you reported. I've tried Apache, Nginx, PHP 8.2-8.5, MySql and Mariadb.
One thing I did notice while testing, using vhosts .... I had PHP set as on-demand (ispconfig default) and it would take a good 3-5 seconds to respond. It would also shoot out random token failure when in the admin panel.
The default pm.process_idle_timeout is 10s, and with pm = ondemand it means the PHP-FPM worker gets killed 10 seconds after going idle. Any time testing gaps between tries were long then every "new" request was a cold start and it would spawn a new PHP process, initialize extensions, reconnect to MySQL, and repopulate OPcache/APCu , all before the page starts rendering.
Anyway In production I always use dynamic workers so I was not familiar with the performance of ondemand. For testing I set it to static and a few workers. Just thought it was interesting.
Re: Slow Page Load time
Reply #22 –
Yeah. Weirdly slow. Even when refreshed. I can see this site is way faster. You will be shocked if you know how much vrams and vcpus I have assigned for this server vm, even its storage is on enterprise nvme, so yes, I should finished restructuring to see whether something else are bothering / disturbing.
Re: Slow Page Load time
Reply #26 –
Interesting finding on the cache, I'll have a second look at the cache off code.
Definitely worth the time setting up Gzip for your static (txt based) assets, it will make a nice improvement to your sites.
Elk20 does have support for Redis cache I've not used it myself other than some basic tests.
Re: Slow Page Load time
Reply #27 –
Tested but found no improvement with memcache and memcached which is weird but redis makes the site back to the slowest 3.5 seconds which is more weird.
Re: Slow Page Load time
Reply #28 –
In the Admin area where you set the cache engine check the "cache status" section (new in 2.0) it will show you some details of what the cache is doing and most importantly if its working. The miss rate will be high on a test site with no real traffic, but it will show that it connected and using the cache.
Re: Slow Page Load time
Reply #29 –
Edited: Only some like redis didn't show status. I'll test more later.
In the meantime, I think "memcache" is broken / wrongly detected, as setting it breaks the forum. Others seemed fine but Redis is not showing status as mentioned above.