journal features
movie reviews
photo of the day

international cluster

the journal of Michael Werneburg

twenty-eight years and a million words

Toronto, 2018.10.27

For kicks, I've turned my website into a cluster running out of New Jersey and Amsterdam across two hosting companies. This wasn't strictly speaking necessary, but I wanted to explore a dirt cheap availability setup. I'll have no worries about a single hosting company failing, or a power grid failure. Or even geologic or political upheaval.

(Um, not that I'm expecting any?)

I started up a second virtual machine, this time on Digital Ocean (my original provider was/is Linode). I copied over all of the images and HTML files, the PHP and nginx and Apache config files, and then got a slave database instance running off of my master on the old server. The latter I threaded through iptables, the firewall native to the operating system. Next I'll configure nginx as a cluster and change the DNS records and it'll all be live. And all of my readers in Eurasia will experience a big jump in website responsiveness. Right.

Three good things that happened today:

  1. Tinkering.
  2. With something that'll teach me something about what I do for a living.
  3. Successfully!

rand()m quote

If you want to build a ship, don't drum up people together to collect wood and don't assign them tasks and work, but rather teach them to long for the endless immensity of the sea.

—-Antoine de Saint Exupery