David Welton: Slicehost Migration
Phew... that was a lot of work. I have a bunch of small sites that I migrated to slicehost, and at the same time upgraded to Rails 2.1. Here are my notes:
- x86_64 sucks up memory in a bad way. On a 32-bit x86 system davidw 20089 0.0 0.1 3320 1428 pts/1 S+ 11:41 0:00 ruby and on x86-64: davidw 24197 0.0 0.1 16756 1968 pts/0 S+ 18:33 0:00 ruby Ouch! That means that you'll need more memory, and thus to spend more money, to run code that might have fit decently in a similar amount of memory on an x86 machine. For instance, my old server had a gig, and was running low on memory, so on slicehost, I set up one 512 meg slice to handle PostgreSQL, and a gig slice to handle Apache and Rails. The database slice is performing ok, but the 'web' one is kind of iffy in terms of memory. Part of the problem here, I will admit, is that Rails is a memory hog, but still, I had hoped to come out ahead by moving from a machine with 1 gig to two machines with 1.5 gigs between them, and instead I'm more or less where I was before.
- I got caught up in a bit of a mess with Rails and the Ubuntu Intrepid update. I prefer to manage the Ruby stuff with gems, rather than traditional .deb package management, as I've had better luck with that in the past. I do use some of the system packages though, such as libpgsql-ruby1.8. However, the maintainers did something kind of ugly with the package: they swapped out the actual code from one code base to another - "Switched upstream source from ruby-postgres to ruby-pg". Which changes the way you load it, and perhaps a few other things as well. I think I would have been happier seeing the package renamed or something, as all of a sudden, programs stopped working.
- I really like the ability to resize slices. I started both my slices at the 256 size, and then made them bigger when I was ready to put them into production. The process is not instantaneous, but it's pretty handy if you need more capacity in a hurry. Adding new slices is also fast.
Systems Expo 2008
As the last years, Debian was offered a booth at last week's
Nagios has the - very useful - feature of “parent hosts”. If it deems a host A being down, it first checks
its parent host, B, and reports A only as down if B is up. This goes back recursively until a host with state
“up” is found and only the first “down” host is actually reported. This keeps on-call people
from being bombed with alerts in case of major network outages and makes sure that the alerts that are actually sent out
do reasonably accurately describe the actual outage.
As an individual who has some “external” servers in various data centers on the Internet, I would like to
not be alerted multiple times that my servers at ISP C, D, and E are down if there is an outage at the ISP F hosting my
Nagios installation or at one of the various exchange points temporarily rendering the servers unreachable (without me
being able to do anything).
The solution sounds easy but is surprisingly hard.
How one could solve the issue
For each host in the manual nagios configuration, do a traceroute and generate host stanzas for each of the hosts
found:
Without emailing us in advance, UK.domains.coop just expired our software.coop domain on 29 October instead of 5 November. When I looked at the renewal option in the control panel, the fees have increased by about 30% since last year. I don’t remember being told that and it’s more than what was authorised at the last 
It was recently brought to my attention that the free newspaper
"Metro" has an online version, where you can
As you can see in the second image, using ps2pdf results in some
quality loss. Ghostscript apparently doesn't understand the letter 'A'
very well, and (more importantly) loses the anti-aliasing that is part
of the pdf file. Converting this file back to PDF and storing it on the
hanlin results in an unreadable text.
But it gets worse. Once I had converted all those PDF files to
postscript using pdf2ps and merged them with psmerge, the output was
gibberish. Or Klingon, take your pick:
In case you were wondering, yes, that is the exact same fragment
(counting lines sucks) at the exact same zoom level. Clearly this was a
dead end.
I found that there was a second pdf-to-ps converter, called
'pdftops', which uses the xpdf code base to do its thing. This converter
produced clearly better PDF output; I could not see any difference
between the Xpdf rendering of the original file, and the gv rendering of
the pdftops output. Also, the psmerge output does not garble things as
badly:
Sadly, it still loses anti-aliasing, and thereby the readability of
the document on my ebookreader device. Moreover, the pdftops output
seems to confuse psmerge, to the extent that it hangs on some pages.
Another approach I tried was to import the pdftops output into
scribus, and create a multi-page PDF file with that program.
Unfortunately, however, scribus does not seem to like the pdftops
output.
Xpdf also has a 'pdftoppm' converter. With that, I was able to create
a multi-page .pdf file that was not garbled, and did still
contain anti-aliasing. Unfortunately, since the PPM format is a raster
image format, the PDF file that is created in this way does not scale
very well, resulting in artifacts and, again, an unreadable PDF file on
the hanlin device.
So it appears that for now I'll be stuck with storing multiple files
on my device. Sigh. I wish that wouldn't be necessary...
Update: So I needed pdftk.
I've produced a 2.6.26 based kernel with the DMA engine patches from
Intel which I intend to support throughout the lifetime of Debian
lenny. The Thecus N2100 has considerably better hard drive
performance with this kernel. However, the patches are experimental
and not in the mainline kernel (some
The following list is merely a small selection of scholarly articles
listed in the
I'm now reaching the very bottom of the