SoylentNews
SoylentNews is people
https://soylentnews.org/meta/

Title    Site Upgrade - Rehash 15.05.1
Date    Tuesday June 02 2015, @09:19PM
Author    NCommander
Topic   
from the weeeeeeeeeeeeeeeee dept.
https://soylentnews.org/meta/article.pl?sid=15/06/02/2132204

I'm pleased to announce that we've upgraded the site to rehash 15.05.1, and site performance is now as good or better then when we were on slashcode. Major thanks to Paul for fixing the internal caching issues. Here's a brief changelog.

Rehash 15.05.1 - Release Notes

The primary cause of the slowdown was due to the fact that rehash did large JOIN operations on text columns in MySQL. This is bad practice in general due to performance reasons, but it causes a drastic slowdown with MySQL cluster, which prevents the query optimizer from doing what's known as a "pushdown", and allowing the query to execute on the NDB nodes. This caused article load to be O(n*m), where n was the number of articles in the database and m was the number of articles with the neverdisplay attribute set. The revised queries now load at O(1). Instead it had to do multiple pulls from the database and assemble the query data on the frontend, a process that took 4-5 seconds per problematic query. The problem was compounded that there are limited number of httpd daemons at any given moment, and any database pull that hit a problematic query (which were in index.pl and article.pl) would cause resource exhaustion.

Fortunately, our load balancer and varnish cache have a fairly high timeout waiting for httpd to come available, preventing the site from soyling itself under high load, or when we do an apache restart, which prevented SN from going down. Thank you for everyone's patience with this matter :).

~ NCommander


© Copyright 2026 - SoylentNews, All Rights Reserved

printed from SoylentNews, Site Upgrade - Rehash 15.05.1 on 2026-10-11 20:45:19