Skip to main content

By clicking Submit, you agree to the developerWorks terms of use.

The first time you sign into developerWorks, a profile is created for you. Select information in your developerWorks profile is displayed to the public, but you may edit the information at any time. Your first name, last name (unless you choose to hide them), and display name will accompany the content that you post.

All information submitted is secure.

  • Close [x]

The first time you sign in to developerWorks, a profile is created for you, so you need to choose a display name. Your display name accompanies the content you post on developerworks.

Please choose a display name between 3-31 characters. Your display name must be unique in the developerWorks community and should not be your email address for privacy reasons.

By clicking Submit, you agree to the developerWorks terms of use.

All information submitted is secure.

  • Close [x]

Linux clustering with MOSIX

An introduction to Linux clustering technologies

Daniel Robbins, Chief architect, Gentoo Linux, Microsoft
Daniel Robbins lives in Albuquerque, New Mexico. He was the founder and chief architect of the Gentoo Linux project. Daniel now works with Microsoft and describes his position as "helping Microsoft to understand Open Source and community-based projects."

Summary:  Clustering is rapidly gaining popularity in the Linux® world. But what exactly is clustering, how do you go about cluster-enabling a Linux system, and how can you benefit from setting up a cluster? In this tutorial, Daniel Robbins helps to answer these questions by stepping you through the process of setting up your own MOSIX cluster. MOSIX is a special transparent form of clustering that is very easy to set up and can produce positive results with only a minimal investment of time and energy.

Date:  20 Dec 2001
Level:  Introductory PDF:  A4 and Letter (63 KB | 18 pages)Get Adobe® Reader®

Activity:  10846 views
Comments:  

Before you start

About this tutorial

This tutorial gives you a gentle introduction to clustering technologies available for Linux, and steps you through the process of setting up your own Linux cluster using MOSIX. Clustering technologies allow two or more Linux systems to combine their computing resources so that they can work cooperatively rather than in isolation.

In this tutorial, we're going to set up our own MOSIX cluster. This cluster will consist of two or more Linux systems, which we will call "nodes".


Prerequisites

To set up your own test cluster, you need at least two Linux systems ready to run or already running kernel 2.4. These systems must be connected to a local area network.

For maximum cluster performance, you may want to consider building a cluster using the following components. These items are not absolutely required; some are completely optional (only for performance freaks), and others are recommended. I indicate which are which below:

At least 100Mbit (fast) ethernet is recommended. Standard (10Mbit) ethernet won't give you very good cluster performance, but should be fine if you just want to play around with MOSIX.

A good amount of swap space is recommended. This will allow nodes to be removed from your cluster without causing the existing nodes from running out of virtual memory. Again, this is recommended and will only make a difference in extreme situations where you are pushing your cluster very hard.

Gigabit ethernet is optional but beneficial. Gigabit ethernet cards are also dropping in price; reliable ones can be found for $130 to $180 USD. However, don't feel that you absolutely need Gigabit ethernet; MOSIX can do just fine with fast ethernet.

Hooking your machines' ethernet cards up to a dedicated high-speed switch is beneficial. By doing so, your systems will be able to communicate over ethernet in "full duplex" mode, effectively doubling bandwidth.

If you have a limited number of machines, you may want to consider using a specially-wired ethernet cable to directly connect the systems to one another. By doing so, you can benefit from "switch-like" full-duplex performance at a potentially lower price. This trick is very helpful when used for 2 or 3-node clusters, since these configurations only require one or two NICs per machine respectively.

Again, these suggestions are completely optional, and it is entirely possible to set up a cluster using two Pentium-class machines over a standard ethernet network. Generally, the faster your network, the better MOSIX will be able to migrate processes between nodes in your cluster, and the more fun and exciting MOSIX will be when you play with it. :)

1 of 8 | Next

Comments



Help: Update or add to My dW interests

What's this?

This little timesaver lets you update your My developerWorks profile with just one click! The general subject of this content (AIX and UNIX, Information Management, Lotus, Rational, Tivoli, WebSphere, Java, Linux, Open source, SOA and Web services, Web development, or XML) will be added to the interests section of your profile, if it's not there already. You only need to be logged in to My developerWorks.

And what's the point of adding your interests to your profile? That's how you find other users with the same interests as yours, and see what they're reading and contributing to the community. Your interests also help us recommend relevant developerWorks content to you.

View your My developerWorks profile

Return from help

Help: Remove from My dW interests

What's this?

Removing this interest does not alter your profile, but rather removes this piece of content from a list of all content for which you've indicated interest. In a future enhancement to My developerWorks, you'll be able to see a record of that content.

View your My developerWorks profile

Return from help

static.content.url=http://www.ibm.com/developerworks/js/artrating/
SITE_ID=1
Zone=Linux
ArticleID=132991
TutorialTitle=Linux clustering with MOSIX
publish-date=12202001
author1-email=
author1-email-cc=

Tags

Help
Use the search field to find all types of content in My developerWorks with that tag.

Use the slider bar to see more or fewer tags.

Popular tags shows the top tags for this particular content zone (for example, Java technology, Linux, WebSphere).

My tags shows your tags for this particular content zone (for example, Java technology, Linux, WebSphere).

Use the search field to find all types of content in My developerWorks with that tag. Popular tags shows the top tags for this particular content zone (for example, Java technology, Linux, WebSphere). My tags shows your tags for this particular content zone (for example, Java technology, Linux, WebSphere).

Try IBM PureSystems. No charge.