Forum Moderators: open
I'm moving to statically generated content every minute there to tone down the server hit from massive page views on that script. During peak loads, 100-300 page views a minute to that script are not uncommon. I want to see if cron generated semi-static content will help.
statically generated content
Now that I'd like to see! :)
I think I know what you meant though. A static page, dynamically generated every few minutes? I would think that would reduce the load by some simply by reducing queries to the db. Wouldn't a cached query accomplish the same thing without the cron job?
1] The cron job, if cleanly written in Perl, started once [-> not started every minute/2minutes/etc], and with the correct use of 'FLOCK', I think may run without problems 2/3 times on a minute.
But this means a lot of disk read/write accesses [in a 'flat-files' scenario], and a bit complex script.
Much better a db cache querying solution.[-> In Apache 2.nn this works great]
2] Try to use 2 different h.d. [maybe you've already set this way :)]
- First for images-otherfiles and 'normal' content.
- Second for forum-updating files.
This will reduce a lot I/O latency times [-> often the real causes of server overloads].
cminblues