Posted on 18-08-2010, 20:13, by edo, under
Linux,
MySQL.
Slightly modified MySQL backup script. This one uses mysqlhotcopy. It only locks the tables for 1 or 2 seconds (every two hours in cron). Then it copies the database MyISAM files. These files then are being archived and compressed, and copied to NAS using SMB. Advantage of this new principle is that MySQL is only [...]
To stress test our servers we’re benchmarking them. By monitoring both the webservers and database we can tune our setup and see where the performance bottleneck is located. To properly test the website we need to take a “snapshot” from the requests that are performed on the webservers. To do that, we make a log [...]
Make sure you have a fresh default installation of debian 505 running. Also make sure you have ssh running. New kernel ?View Code BASH1 2 3 4 5 6 7 cd /usr/src/ wget http://…/linux-headers-2.6.34.1-myp2p_2.6.34.1-myp2p-10.00.Custom_amd64.deb wget http://…/linux-image-2.6.34.1-myp2p_2.6.34.1-myp2p-10.00.Custom_amd64.deb dpkg -i linux-image-*.deb dpkg -i linux-headers-*.deb update-initramfs -k 2.6.34.1-myp2p -c pico /boot/grub/menu.list Now make sure that the file system [...]
Posted on 29-06-2010, 14:43, by edo, under
Linux.
Since Februari 12 2010, Etch has become oldstable. Packages are no longer updated. So time to use the archive apt mirror: ?View Code BASH1 2 deb http://archive.debian.org/debian/ etch main deb-src http://archive.debian.org/debian/ etch main
Quick note on upgrading Alsa on the mPossible. This solved our issues with the relatively new VIA sound card chip on our new Asus motherboard. Download the following 3 source packages: ftp://ftp.alsa-project.org/pub/driver/alsa-driver-1.0.23.tar.bz2 ftp://ftp.alsa-project.org/pub/lib/alsa-lib-1.0.23.tar.bz2 ftp://ftp.alsa-project.org/pub/utils/alsa-utils-1.0.23.tar.bz2 Extract, configure, compile, install with: ?View Code BASH1 2 3 ./configure make make install You might need debian packages: ?View Code [...]
One of our servers has been dealing with huge peaks of iowait. After some investigation i noticed that this is (obviously) caused by a disk writing. The iostat program gave me huge Blk_wrtn/s numbers for my first partition device. I wrote a very poor but usefull php command line application that detects processes that are [...]
Installing apache solr with tomcat6 on debian in /usr/local (based on http://xdeb.org/node/1213) Change /etc/apt/sources.list so that non-free packages can be used: ?View Code BASH1 deb http://ftp.nl.debian.org/debian/ lenny main contrib non-free Install Java: ?View Code BASH1 apt-get install sun-java6-jdk Install Tomcat6 to /usr/local: ?View Code BASH1 2 3 4 cd /usr/src wget http://apache.osuosl.org/tomcat/tomcat-6/v6.0.24/bin/apache-tomcat-6.0.24.tar.gz tar xzf apache-tomcat-6.0.24.tar.gz [...]
Posted on 17-02-2010, 23:34, by edo, under
Linux.
Information extraxted from from CBlue (original arcticle http://www.cblue.be/blog/debian-lenny-netinst-new-igb). On our new proliant servers we have igb network cards. These network cards are not (yet) supported in the default debian initrd netinstall. We need to create an own initrd with compiled igb drivers in it. This is quite a hassle. Compile drivers for debian netinstall image. [...]
Since we’re running our vbulletin software for myp2p on multiple servers, an nginx frontend balances the traffic. We have a memcached cookie sync for session persistance with the following php.ini configuration lines: ?View Code PHP1 2 3 [Session] session.save_handler = memcache session.save_path="tcp://<memcache host>:11211?persistent=1&weight=1&timeout=1&retry_interval=15" Make sure to remove the old session.save_handler/path lines. The includes/class_core.php file needs [...]
In the lighttpd config: ?View Code LIGHTTPD1 2 3 4 5 6 7 8 9 $HTTP["host"] == "host" { server.document-root = "/home/exitable/public_html/" url.rewrite-final = ( "^/([^.?]*)\?(.*)$" => "/index.php?q=$1&$2", "^/([^.?]*)$" => "/index.php?q=$1", "^/([^.?]*\.html)$" => "/index.php?q=$1" ) server.error-handler-404 = "/index.php" } and then add to the /sites/default/settings.php file some code to catch 404 pages: ?View Code PHP1 [...]