Archive for the ‘Performance’ Category
Just wanted to share our experience with using zfs compression on FreeBSD for our rrds.
We’re seen a fantastic 21.41x compression ratio on our 46k rrds stored on a zfs volume compressed with gzip. This means meaning we’re saving 93GB of space by doing this 🙂
The gzip compression is CPU heavy so if you want to use this you need a good amount of CPU available but if your short on IO throughput which tends to be the case when updating this many rrds it also a great way to improve performance.
When moving to using php-fpm to serve pages via nginx from apache, its not very obvious how to see errors logged via the php function error_log, so I thought I’d post how to do it here so others don’t have to do quite a much searching as I did.
Its really simple just ensure both the following php variables are set:
This can be done either in the php.ini but the method I prefer is setting it up in php-fpm.conf e.g.
<?xml version="1.0" ?> <configuration> <workers> <section name="pool"> <value name="php_defines"> <value name="error_log">/var/log/php-error.log</value> <value name="log_errors">true</value> </value> </section> </workers> </configuration>