how to make clustering in linux

Posted on 2007-07-24
Last Modified: 2010-04-20
Hi all,
my manager assign me the task of making a cluster on a two lans one of them use centos and the other use fedora and they are separte but each one of them working in a  tow modes one of them is a mixed network with windows and the other is a pure linux network.
the problem is I'm a newbie in that task I have no experience in that area before so can any body help me in that???
any help, idea, note, hint, examples, turorials, links or books are very welcomed
please reply as soon as possible (I need your help urgently)
thanks in advance
best Regards
Question by:shang3000
    LVL 19

    Expert Comment

    Ok, the first question is... what do you want to cluster? Storage? Services? Very difficult to point you in the right direction as the angle from which you attack this will vary significantly depending on what you're trying to do.

    One thing I would say though, is it's not compulsary, but recommended to use the same version/distro of Linux on all cluster nodes. That way, if you're using software like Heartbeat, you'll have the same build of the same version etc..
    LVL 7

    Expert Comment

    I agree. Without understanding of the thing to cluster, you cannot HAVE a cluster. On this later. I would like to stress the need for similarity between the cluster members (nodes). You don't want to go into a cluster with different node types.

    About clusters:
    A cluster is not just a "throw this software on these few servers and let's get some beer", but it is a game of risks and assumptions. You must setup an SLA you expect to commit - What is the maximal offline time you can allow yourself to accept? What is your expected expenses when assuming that cluster multiplies most of your existing hardware. For example - if you have a cluster between two nodes, but both are connected to each other, and to the rest of the network by a single switch, you have a single point of failure - the switch. Turn it off (or burn its power supply), and you have zero availability.
    Same goes for storage devices, for systems - having two low-budget low-availability servers is, on most cases, worse than having a single reliable server. Same goes for connection to the storage - Use a single cable, or a single fiber switch, and you get a single point of failure. Yada yada yada. You get the point. Cluster without a risk management (much like backups) has no value, and would serve no high availability when the need will rise.

    Author Comment

    hi alextoft,
    hi ezaton,
    thanks for reply
    I need cluster for a web portal using apache, mysql I'm newbie so I need your suggestion to make cluster that is reliable and have load balance and your recommendations (what distribution to use? does it's a good decision to have fedora as this cluster distribution?)
    please help me in that
    best regards
    LVL 7

    Accepted Solution

    I would use something supported, like RHEL, Suse, or the likes, and nothing of the sort of Fedora.
    This is a load-balancing cluster, assuming all data is saved only in the database. You could, otherwise, use one node as a MySQL server, and two nodes as web servers, with shared storage (concurrent access, like GFS or OCFS2) for the web content.

    Either case, this require more planning than can be supplied in this forum.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    What Is Threat Intelligence?

    Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

    If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
    Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
    Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
    Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

    761 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    8 Experts available now in Live!

    Get 1:1 Help Now