Slashdot Mirror


Clustering vs. Fault-Tolerant Servers

mstansberry writes "According to SearchDataCenter.com fault-tolerant server vendors say the majority of hardware and software makers have pushed clustering as a high-availability option because it sells more hardware and software licenses. Fault-tolerant servers pack redundant components such as power supply and storage into a single box, while clustering involves the networking of multiple, standard servers used as failover machines." Perhaps some readers on the front lines can shed a bit more light on the debate based on both proprietary and Linux-based approaches.

59 of 321 comments (clear)

  1. It depends on what you want to do. by ResQuad · · Score: 3, Interesting

    Personally I opt for clustering over fualt-tollerance - but thats my personal choice. It really depends on what the machine(s) will be doing. If you have a database server - fault tollerence (because I have yet to meet a clustering DB solution that didnt suck). But if your building a webserver - cluster.

    Also the one thing the article mentions is that clustering is just as expensive as fault-tollerence due to software licesing. Last I checked if its one copy of Debian + Apache + MySQL + Perl or 200 copies - its going to cost me the same price (free). And windows doesnt support clustering yet - in any decent way shape or form - so I dont see the problem here.

    1. Re:It depends on what you want to do. by Anonymous Coward · · Score: 2, Insightful

      Heh. In order to do it completely right, you'd make a cluster out of fault tollerant nodes :-P

    2. Re:It depends on what you want to do. by TheRealMindChild · · Score: 2, Informative

      What is this then:

      http://www.microsoft.com/windowsserver2003/technol ogies/clustering/default.mspx

      Clustering (NOT performance clustering mind you, which is NOT the topic at hand anyway) has been around in Windows NT as far back as I can remember. With NT4, you needed to have Enterprise Edition, but it was there.

      --

      "When life gives you lemons, don't make lemonade. Make life take the lemons back!" -- Cave Johnson
    3. Re:It depends on what you want to do. by Tenareth · · Score: 4, Insightful

      A Web farm is the simplest form of clustering, some would argue it isn't even a cluster because the nodes are not aware of each other. However, it gets more confusing when you add a Java layer that load balances...

      Anyway, I do agree that I've seen more trouble caused by DB Clustering solutions than it helps...

      A cluster adds complexity to the environment, Complexity == Cost, even without the expensive software.

      --
      This sig is the express property of someone.
    4. Re:It depends on what you want to do. by CSHARP123 · · Score: 5, Informative
      And windows doesnt support clustering yet
      Windows Server 2003 actually supports two different types of clustering. One is called network load balancing, which enables up to 32 clustered servers to run a high-demand application to prevent a single server from being bogged down. If one of the servers in the cluster fails, then the other servers instantly pick up the slack.

      Network load balancing has been most often used with Web servers, which tend to use fairly static code and require little data replication. If a clustered web site needs more performance than what the cluster is currently providing, additional servers can be instantaneously added to the cluster. Once the cluster reaches the 32-server limit, you can further expand the cluster by creating a second cluster and then using round-robin DNS to divide traffic between the two clusters.

      The other type of clustering that Windows Server 2003 supports by default is often referred to simply as clustering. The idea behind this type of clustering is that two or more servers share a common hard disk. All of the servers in the cluster run the same application and reference the same data on the same disk. Only one of the servers actually does the work. The other servers constantly check to make sure that the primary server is online. If the primary server does not respond, then the secondary server takes over.

      This type of clustering doesn't really give you any kind of performance gain. Instead, it gives you fault tolerance and enables you to perform rolling upgrades. (A server can be taken offline for upgrade without disrupting users.) In Windows 2000 Advanced Server, only two servers could be clustered together in this way (four servers in Windows 2000 Datacenter Edition). In Windows Server 2003, though, the limit has been raised to eight servers. Microsoft offers this as a solution to long-distance fault tolerance when used in conjunction with the iSCSI protocol (SCSI over IP).

    5. Re:It depends on what you want to do. by crimethinker · · Score: 4, Interesting
      Quoth the GP: "in any decent way shape or form"

      Yes, Windows has supported clustering since NT4 (Wolfpack), and per the GP, it SUCKED BOLLOCKS. I had to deal with that shite every damn day for almost 3 years (1997-2000). We used active-active failover, and the joke around the company was that MS were halfway there: the "fail" worked just fine.

      -paul

      --
      Pistol caliber is like religion: everyone has their favourite, and theirs is the only right choice.
    6. Re:It depends on what you want to do. by pete-classic · · Score: 3, Informative

      I worked in Dell server support from summer of '98 to summer 2000. I supported NT 4 HA clustering and I have to tell you, it was an unqualified nightmare.

      Since I was in support I didn't see a cross-section, I only saw the failures. That said, there were a LOT of installations out there that would have had better availability with a beige box, and MUCH better availability with a single fault-tolerant server.

      It didn't help that sales constantly sold invalid configurations and set unreasonable expectations.

      Bad, bad memories. If I never hear the word quorum again it will be too soon.

      -Peter

    7. Re:It depends on what you want to do. by Jim+Hall · · Score: 5, Informative

      Let me preface this by saying I'm the Enterprise IT Manager for a large, Big-10 University. "Enterprise" means I am responsible for all servers that run the University, not just a small department. My userbase is 70,000+ students, and somewhere between 15,000-20,000 faculty and staff.

      We run a variety of hardware platforms, including a large Linux deployment. Yes, it really does depend on what you want to do with that server, before you can decide to go with a bunch of servers behind a load balancer v. a larger, fault-tolerant server.

      For our production web servers (PeopleSoft, web registration, etc.) we run a bunch of cheap servers running Red Hat Enterprise Linux, and we distribute them across two data centers (for redundancy.) We run a load balancer in front of them, so that users access one URL, and the load balancer automagically distributes traffic to the servers on both data centers. For a lightly-used application, we may only run 2 web servers. For heavily-used applications (web registration) we run 5 web servers. Those are IBM x-series now, but we are in the process of moving to IBM BladeCenters.

      With multiple servers in production, I can lose any single web server and not experience downtime on the application. We usually only have a single PSU in each server, because there's no point in the extra expense when we have redundancy at the server level. And because we've split our web servers across two data centers, I can actually lose an entire data center and only experience slow response time on the application. (Note to the paranoid: while the data centers are only 1.4miles apart, they are on separate power grids, etc. The other back-end infrastructure is also split between data centers.) We run a lot of sites behind load balancers, so we can afford to have a separate load balancer pair at each site (which can provide backup to each other.)

      However, for large applications we may use a single fault-tolerant Linux server. For example, we used to do this with a database server. Multiple power supplies, multiple network connections, RAID storage, etc. To be honest, though, we tend to run databases on "big iron" hardware such as Sun SPARC (E25000, V890, etc.) and IBM p-series. We don't have any Linux database servers left, but that's not because Linux wasn't up to the task (our DBAs preferred to have the same platform for all databases, to make debugging and knowledge-sharing easier.)

      In a few cases, we have a third tier. If the application is low-priority (i.e. a development server) and/or low-volume (i.e. a web site that doesn't get much traffic), we run a single server for that. The server is a cheap IBM x-series box running Red Hat Enterprise Linux, usually with no built-in redundancy.

      Yes, for us Linux has been able to play along quite nicely with the "big iron" UNIX systems. We've run Linux at the Enterprise level since 1998 or 1999, and Linux is definitely considered part of our Enterprise solution.

    8. Re:It depends on what you want to do. by Donny+Smith · · Score: 5, Insightful

      Well, in case you haven't noticed, it's late 2005 now.
      Some things have changed, for example Windows 2003 Server came out and MSCS is now quite a decent HA solution.

      (BTW, the grandparent post didn't say that Microsoft's own clustering solution was lame, he made a general statement about all clustering software for the Windows platform).

    9. Re:It depends on what you want to do. by Marillion · · Score: 4, Insightful
      That makes lots of sense. Software costs do multiply in clustering. Zero times 100 is still zero. But, clustering has other headaches beyond money.

      The usual clustering I've seen is "Hot Spare" clustering. The primary runs until it goes kaput, then the second takes over. For database clustering, the two boxes usually share the same disks. I think I've seen more outages from false takeovers by the seconday than real failures of the primary.

      The other problem with clustering is that all of your software applications have to be cluster tolerant. If the user app keeps a database connection open and a rollover occurs, the connection state doesn't and can't rollover with it. To a client system, a cluster failover looks like a server reboot. Don't underestimate the difficulty of this problem. A new application has to be designed with that in mind. Retro-fitting it in later is hard - and costly, even with free platforms.

      Another issue that can't be solved with clustering is application failure or application limits. You may recall the airline system failure last Christmas? Some 80% of Slashdot readers asked where was the backup? (there was) should have used Unix (they were). The box (RS6000) and operating system (AIX) kept running just fine. A hundred computer cluster couldn't solve the the real problem: the application couldn't handle the volume of information it was required to hold and they at the mercy of a proprietary source code vendor.

      --
      This is a boring sig
    10. Re:It depends on what you want to do. by Stripe7 · · Score: 2, Insightful

      The choice between fault tolerants systems is decided on the interval your company can sustain an outage. A cluster can take 1-2 min to move applications from a dead node to another working one. If you applications require sustained 100% connectivity you need to go fault tolerant. Usually its for Realtime monitoring software like the computers used to monitor telephone exchanges. For databases and NFS services clusters work better as you can take a 1-2 minute hit in the response when a node fails. Software licenses do not come into it with active-active nodes where you pay for all the CPU's you are running on there. With active-passive failover, only 1 instance of your licensed software is running on your 2 systems. If your software vendor insists on your paying a license for both nodes then I would opt for a active-active node instead of an active-passive one.

    11. Re:It depends on what you want to do. by donaldm · · Score: 2, Interesting

      Most clusters are equivalent to DEC-safe (you can even get the source code on Freshmeat) which is mainly a group of machines joined together via a SCSI interconnect or a Storage Area Network and a common lan. all interconnects should be redundant and that includes the network. The only cluster that is different is the Tru64 cluster which has a clustered file-system. I think Redhat clustering uses NFS (anyone advise on this) but you need a very fast network if you want disk performance.

      Fault tolerant is the most expensive option such as the Himalaya machines, nearly all components can be replaced while the machine is hot.

      The cluster is quite a reliable method of application availability. In the event of a cluster member failure the application failover to another cluster member should be relatively quick (about 1 to 5 minutes), however if an application takes say 25 minutes (I actually struck this once) to start then fail-over is going to take at least 25 minutes. Also your application should be capable of restarting and recovering from power off then on. If the application cannot do this then clustering is useless and you should be thinking fault tolerant machines or getting your Application vendor to fix the issue.

      PS. All clusters I have setup (Trucluster - Tru64 Unix) using Informix, Oracle, Sybase and SAP applications have worked extremely well.

      --
      There ain't no such thing as proprietary standards only proprietary formats. Standards are by definition open.
    12. Re:It depends on what you want to do. by Mateito · · Score: 2, Informative

      This is not a case of "which is better", but a "what is right for what I want to do".
      There are "Best Practises" for doing this sort of thing that take the religion out of server-farm design.

      First thing to work out:
      (1) How many minutes of APPLICATION downtime are acceptable
      (2) How much money will I lose for each miunte the application is down.

      Multiply (1) by (2), and you have a rough idea of your budget. Ideally, this should be the last thing - you work out your needs and then pay for them - and that was true five years ago. Today, IT budgets are a lot tighter, and the money often comes first. At least by taking this approach, you have a dollar value to present to the board to get funding approved before you spend a huge amount of time and effort putting together a proposal that will jet be rejected.

      If this is only a few thousand dollars, you aren't about to rush out and buy Oracle RAC licenses. You don't need them. If you are going to lose tens of thousands of dollars per minute, you are going to go for big-iron servers running Oracle RAC and run a global cluster between HA data centers.

      From there, you can attack the design from the Top-down.

      You then look at your application, and work out how each component scales: Horizontally, vertically or diagonally (H+V).
      In general:
      - web servers don't need to be clustered as they aren't stateful
      - Databases scales vertically, though if you've got the money, Oracle RAC is an option. Once you get above 4 CPU cores in the cluster though, you need to go Enterprise edition, and this is expensive.
      - App servers may go horizontal or vertical, depending on the design of the app.

      Once you know how stuff scales, you can start working out what will run where. Some applications play nicely together, and can be combined. From there you can start to work out what OS's you need, and from that the hardware platform. Yes, I know this runs contrary to most people's design philosophies (is, choose the OS, then the app), but 90% of the time the app has dependencies that will limit the OS.

      Designing a data center shouldn't be as detached from personal preference as possible. The obvious link is that you don't spend huge amounts on one OS if all your in-house expertise is in another. But this is one of the last filters, not one of the first. It may be cheaper to roll-out Solaris (for example) and hire or train to get the expertise, than it is to port the app to (say) Windows.

  2. I don't see why anybody would use their own server by jackcarter · · Score: 2, Funny

    I just use Geocities, it's free and easy!

  3. Oh the irony by Anonymous Coward · · Score: 2, Funny

    It's slashdotted already.

  4. I know where this is going by Anonymous Coward · · Score: 2, Funny

    ...and i am just waiting on the call from our vendor recommending we upgrade to a cluster of fault-tolerant servers.

  5. Software vendors by PCM2 · · Score: 4, Insightful

    So if you ask a software vendor whether it's better to buy expensive hardware or to save money on hardware and install more copies of software, what's he going to say? Even if you had a site license he'd still say that, because guess what ... he's a software vendor. He's not in the business of solving your problems with hardware.

    --
    Breakfast served all day!
  6. Fault tolerant hardware is not the solution by Anonymous Coward · · Score: 2, Insightful

    Hardware fails... it's as simple as that. You should plan on that for one reason or another you will have to shutdown and replace hardware. If it can be done with minimal or no disruption to the services, then that's all the better. OS makes licencing no longer a problem.

    1. Re:Fault tolerant hardware is not the solution by TinyManCan · · Score: 2, Informative

      Unfortunately, for many reasons, Open Source does not end the cost of licensing for many organizations. Most of the good clustering solutions that I have seen recently involve breaking every application and service into a 'package' that can run on many different physical servers. Each package has a virtual IP address associated with it.

      When hardware fails, you bring up the required packages on a different physical host, and other applications access it using the virtual IP. Going this route allows you to do N+1 style clustering where say 3 servers are hosting 2 applications. This is a big win over the older model where each box had a physical duplicate that would step in when failure occurred.

      To use this style of clustering, you need to have excellent shared storage support, which has come in the form of SAN based disk arrays in all cases I have seen. The cost of software licensing aside, SAN equipment can case an arm and a leg.

      For real, enterprise, supported applications you pay through the nose for the software, the hardware and then again for the support systems (HVAC, Power Conditioning and UPS, fault tollerant networking, SAN gear, Backup infrastructure, etc). It all costs, and it all has to be supported. Adding more machines (in the case of these clusters) increases the base overhead cost even before you get to the licensing.

      Providing reliable and functional enterprise services (the type that require clustering) is expensive, plain and simple.

  7. So the choice is between... by Anonymous Coward · · Score: 3, Funny

    tolerating a lot of faults in one girlfriend or get a cluster of them and deal only with the good points?

    1. Re:So the choice is between... by mickwd · · Score: 5, Funny

      It depends how often they go down.

    2. Re:So the choice is between... by ScuzzMonkey · · Score: 3, Informative

      Mods! Wake up! How is this not +5 (either Funny or Insightful, I haven't decided which yet) already?

      --
      No relation to Happy Monkey
  8. Not the same. by tekn0lust · · Score: 5, Informative

    Clustering provides you with Fault Tollerant OS/Applications. A single server with tons of redundant bits, doesn't help you if the OS or Applications that it servers get borked.

  9. Since information wants to be free by Shadow+Wrought · · Score: 4, Funny

    Shouldn't we be encouraging server failures which enable their freedom from magnetic imprisonment? Kinda like PETA freeing lab animals...

    --
    If brevity is the soul of wit, then how does one explain Twitter?
  10. More about the cost of hardware? by Sv-Manowar · · Score: 4, Interesting

    Because of the open source stack behind a lot of server platforms these days, I'm dubious that this decision boils down simply to a software cost issue. One major benefit of using clustering is that many white box, non specialized machines can be used, which are easier & cheapter to replace or obtain components for. Complex and specialized hardware with built in redundancy is often expensive and can require vendor support contracts for effective maintainance.

  11. Clustering by FnH · · Score: 2, Insightful

    Clustering provides a backup for software failures, that fault-tolerant servers don't. Also, upgrades without downtime are easier done with a load-balanced cluster.

  12. Apples and Oranges by Steven_M_Campbell · · Score: 4, Funny

    If you are just talking about fault tolerance (FT) then spill a drink on the FT server then spill a drink on a clustered server and see the difference :) If we are not limited to fault tolerance than try load balancing an FT server with.. um..er... itself. This is really apples and oranges. BTW, I like FT servers in a cluster!

  13. Why are clusters better? by darkmeridian · · Score: 2, Interesting

    The article seems to make the choice one-sided. Fault tolerant servers have higher uptimes because the backup takes over immediately. Clusters have a single point of failure in the middleware. They argue that the clusters can run different operating systems, but that means more patches and updates to keep track of. Clusters are expensive because they need more OS and software licenses and require a lot of maintenance, though that might drop if they are running Linux or FreeBSD.

    Anyone make a case for clusters for high-uptime situations?

    --
    A NYC lawyer blogs. http://www.chuangblog.com/
  14. You shouild use both by Barondude · · Score: 3, Insightful

    If HA is what you are really after, you should use both. You want a fault tolerant server so you never have to go down unexpectedly and you want a fail over node so if the unexpected occurs, you'll be back up in a jiffy.

    --
    "That's the sort of blinkered, philistine pig ignorance I've come to expect from you non-creative garbage."-Monty Python
  15. Clustering is safer by arcadum · · Score: 2, Interesting

    If you buy one machine, you still may need to power it off to open the case, or replace a part.

  16. It all depends by Anonymous Coward · · Score: 2, Insightful

    Fault tolerant systems are all in one physical location.
    Clusters can be in different server racks, building, city even country.

    It depends what the goal is. Fault tolerance, scalability, disaster recovery, etc.

    They both have their uses, let's not discount one or the other, just use them properly.

    **Typically, the goal is a mix of the ones I enumerated, hence I typically choose clusters. However, I always re-evaluate every time a new requirement comes in.

  17. Re:And what's so difficult about... by MankyD · · Score: 4, Funny
    And what's so difficult about clustering a bunch of fault tolerant servers?
    Well that just plain redundant. Err...
    --
    -dave
    http://millionnumbers.com/ - own the number of your dreams
  18. Not either/or by Declarent · · Score: 5, Interesting

    I build AIX HACMP clusters for a living, and I'll tell you that you should *never* use an either/or approach, as TFA suggests. Nobody in their right mind is wondering if they should get a cluster OR FT hardware. They get a cluster of FT servers.

    Maybe if they want to write an article, they should spend some time in the real world and see how the HA industry works instead of making up some arbitrary demarkation line to hang a preconception on.

    1. Re:Not either/or by Declarent · · Score: 2, Insightful

      That's true, it's a massively distributed app. In every class of solution, there are extreme cases for which the rule does not apply. Those cases do not change how the average customer does business.

    2. Re:Not either/or by sapbasisnerd · · Score: 2, Interesting
      What Google does barely deserves the label clustering.

      Actually that's not really fair, the problem is the term clustering has become overloaded. What Google does is would be more completely described as "shared nothing" distributed computing. They use cheap as chips iron beacuse nobody cares if a transaction fails, because no data is lost, the end user just pushes refresh. Similarily the various grid compute "clusters" (SETI, Folding@Home etc.) can recover from a lost unit of work by sending it out for reprocessing after a timeout (or IIRC SETI doesn't wait, every unit of work is sent out multiply and the results that do come back are compared).

      If on the other hand you are dealing with applications that actually save data, silly little things like, oh, electronic funds transfers or credit card charges, that's a whole different class of problem.

  19. Never build systems on a core of failure. by CyricZ · · Score: 2, Informative

    That's one of those ideas that sounds all good and well, but it hardly works in practice. In many cases, downtime is unacceptable. You need transactions processed continually, and you cannot have downtime caused by a dead server.

    It is not a good idea to build a system out of parts that you know will fail, and then proceed to design the system around such failure. A far better idea is to spend some money, and design a system that will work. Of course you do take into account hardware failure, and you build in redundancy where necessary. But you do not build your solution around knowingly faulty and cheap hardware. That's just looking for trouble.

    Often times the "cheap" solution ends up being most expensive, not only because of the cost of repeated hardware repairs, but also because of the cost of the labour necessary to perform the repairs, and the possibility of downtime. When you're processing millions of dollars worth of transactions per minute (if not per second), even a couple of minutes of downtime can be financially costly.

    --
    Cyric Zndovzny at your service.
    1. Re:Never build systems on a core of failure. by dkleinsc · · Score: 4, Informative

      Most successful strategies I've heard of involve building a system out of parts that you know can't fail, and then designing the system around the failure of the parts that you know can't fail.

      --
      I am officially gone from /. Long live http://www.soylentnews.com/
  20. The Good, The Bad, and The Ugly by flinxmeister · · Score: 2, Insightful

    The Good: Using cheap components in a cluster to create scalability at a good value The Bad: Using a cluster to cover up coding issues, architectural crap, or instabilities in the system The Ugly: "the bad" gets so bad that it crashes the whole freakin' cluster. Why did we do this again?

  21. Clustering Potentially Solves More Problems by bradm · · Score: 4, Informative

    Fault tolerance gets you a machine that keeps running in the face of hardware failures and maintenance. The switchover time is arguably negligible.

    Clustering gets you a set of services that keep running in the face of hardware failures and maintenance. The switchover time can range from negligible to huge depending on the application involved.

    However, clustering also helps you to solve other problems, including scaling, software failures, software upgrades, A-B testing (running different versions side by side), major hardware upgrades, and even data center relocations.

    Clustering tends to require a lot more local knowledge to get right.

    So if you narrow the problem definition to hardware only, they solve the same class of problems. But when you broaden it to the full range of what clustering offers you find a greater opportunity for cost savings - because one technique is covering multiple needs.

  22. SneakerNet * by dada21 · · Score: 5, Interesting

    In my 15 years of IT consulting, no network has provided data safety transparency cheaply or consistently enough. Clusters and fault tolerance both cost more than downtime in my experience.

    We desperately need a better way to access data in a corporate network.

    My favorite customers are those architects and engineers who avoid networking except for the Net. Seriously, sneakernet and peer-to-peer has shown the least downtime I've seen.

    I think p2p networks will see a comeback if a torrent-like protocol can grow to be speedy. My customers are not banks, but they need 100% uptime as every day is a beat-the-deadline day.

    If someone can extend and combine an internal torrent system with a decent file cataloging and searching system, they'll see huge money. I have some 150 user CAD networks just waiting for it.

    What would a hive network need?

    * Serverless
    * Files hived to 3+ workstations
    * Database object hiving
    * File modification ability (save new file in hive, rename previous file as old version, delete really old versions after user configurable changes)
    * "Wayback Machine" feature from old versions
    * PCs disconnected from hive will self correct upon reconnection

    It is very complex right now, but my bet is that the P2P network will trump client-server for the short run. The "client is the server" vs "the server is the client"?

  23. Re:Queue... by TheRealMindChild · · Score: 2, Informative

    In my opinion, Beowulf is not the hammer everyone thinks it is. Ask the average slashdot reader even, and they relate Beowulf to something more like OpenSSI or Mosix... something you can easily add nodes to, and just use a special compiler to compile all of your multthreaded/multiproc apps and it will all work magically.

    If you are one of those people, stop. A Beowulf cluster is a performance cluster, but it is not a replacement for an SMP system. You more or less have the master node delegate actual computations EXPLICITLY in your application (EX "Hey... Node X, Caclulate X + Y for me, kthx").

    --

    "When life gives you lemons, don't make lemonade. Make life take the lemons back!" -- Cave Johnson
  24. No difference, just a matter of packaging. by TheMohel · · Score: 4, Informative

    Having built both true high-reliability fault-tolerant devices and clustered systems, I don't see any fundamental theoretical difference. In both cases, you have redundant hardware capacity in place, theoretically to allow you to tolerate the failure of a certain amount of your hardware (and, sometimes, your software) for a certain amount of time. Neither option guards you against failures outside of the cluster or FT system box. Neither one is a panacea. Both are sold as snake-oil insurance against "badness".

    In a single fault-tolerant box, you generally have environmental monitoring, careful attention to error detection, and automatic failover. You also have customer-replaceable units for failure-prone components, utiilties for managing all of the redundancy, and a fancy nameplate. In exchange for that, you have more complexity, more cost, serious custom hardware and software modifications, and often (but not always) performance constraints.

    In a clustered system, you treat each individual server as a failure unit. Good fault detection is a challenge, especially for damaging but non-catastrophic failure, but it's much easier to configure a given level of redundancy and it's easier to take care of environmental problems like building power (or water in the second floor) -- you just configure part of the cluster a longer distance away.

    Where clustering is inadequate is when you have a single mission-critical system where any failure is disaster (like flight-control avionics or nuclear power plant monitoring). There are applications where there's no substitute for redundant design, locked-clock processors and "voting" hardware, and all of the other low-level safeguards you can use.

    For Web applications, however, where a certain sloppiness is tolerable, and where the advantages of load balancing, off-the-shelf hardware and software, and system administration that doesn't require an EE with obsessive-compulsive disorder, clusters are the natural solution.

    The fact that you get to sell more licenses for the software is just gravy.

  25. Ignoramus by Donny+Smith · · Score: 4, Informative

    What you wrote is really ignorant (which, modded on /., translates to Insightful).

    1. (because I have yet to meet a clustering DB solution that didnt suck).

    Where do you live? In Ruanda?
    Perhaps you have heard of Oracle RAC. And there are other very good clustering solutions for DBMS.

    2. one copy of Debian + Apache + MySQL + Perl or 200 copies

    mySQL isn't enterprise-reliable even in stand-alone configuration, let alone clustering. I can't believe this...

    3. And windows doesnt support clustering yet - in any decent way shape or form, I dont see the problem here.

    Hah, hah! Enough said.
    And also - what's it to you? If Microsoft (in your view) had a good clustering solution, you'd lose sleep over that?
    When you're biased like that, no wonder you can't have a quality, unbiased opinion on this topic.

  26. Fault tolerance only goes so far by networkphantom · · Score: 2, Insightful

    We run volumes of Dell 2850s with RAID arrays, redundant power, etc. powering high volume websites... I can speak first handedly that internal fault tolerance in these systems can only get you so far, where a failure of a component such as the management device in charge of the two power supplies, itself fails, resulting in both power supplies being useless. Or a raid card going out of commission, leaving drives with mangled and unrecoverable data. As with most solutions, a mixture of both fault tolerance and data clustering is the safest alternative.

  27. For firewalls and/or routers by SquadBoy · · Score: 2, Informative

    There is nothing like OpenBSD running pf and carp. Dead easy to set up, works like a charm, and secure by default. One wonders why the editors seem to think OSS == Linux.

    http://www.openbsd.org/faq/pf/index.html
    http://www.openbsd.org/faq/faq6.html#CARP

    --

    Cypherpunks: Civil Liberty Through Complex Mathematics. Those who live by the sword die by the arrow.
  28. Availability vs. Reliability by JustASlashDotGuy · · Score: 3, Insightful

    It all comes down to Availability (Clustering) vs. Reliability (Fault Tolerant). They are NOT the same thing.

    Fault tolerant servers are nice, even the simplest true server should offer some fault tolerance to a degree (IE: RAID drives). This is handy but may not help your availability in the event that you have a SLA promising xx% of uptime and then find yourself needing to take the server down to apply service packs or other patches.

    Clustered servers allow you to increase the availability of your machines, because when you need to take one down for some updates, you can simply fail over all your traffic to the other server in the cluster accordingly. Clustering may increase the availability of the services those machines are offering, but it doesn't not help the reliability of the machines themselves.

    Therefore, I personally choose to start with fault tolerant machines initially (RAID and dual power supplies at a minimum). It makes for a good base. If the services on that machine are 'mission critical', then cluster that machine with other fault tolerant machines.

  29. Catrastrophic loss by lilmouse · · Score: 2, Insightful
    Anyone make a case for clusters for high-uptime situations?
    Well, if your whole rackspace burns to the ground, that's a bit much for a "fault tolerant" server to handle. Mutliple sites mean a single nuclear weapon (plane hitting WTC, fire, hurricane, earthquake, you get the idea) can't take you down.

    --LWM
  30. a Java layer that load balances??!!??!!?!? by infonography · · Score: 2, Insightful

    Not worth doing. The cluster components should be dumb. There isn't a valid reason to have them know about each other. Your Round Robin or whatever balance you want should come from outside. F5 makes a nice box for that, so do others, if your really a cheapskate and wanted to you could duplicate them. If you need to have anything know about who is on what machine let the system tell that to the backend DB machine. It should be a channel architecture, not a crazy tangle. The more you break the functions down on the system level the better and faster your cluster will be.

    Syncing databases on the other hand is tricky. Save your money and resources for that.

    --
    Sorry about the writing. Robot fingers, you know? Cliff Steele in DOOM PATROL #23
  31. Re:SneakerNet * by Ramses0 · · Score: 3, Insightful

    What about iFolder? Looking at the spec's I think it's missing serverless/hiving (which could be provided by any of the normal p2p people), file history ... not understanding your database object comment.

    Speaking of which, what about freenet? The only thing it's missing is "guaranteed availability of critical business data", eh? And I hear it might have some performance problems. ;^)

    --Robert

  32. Google as an example by Guspaz · · Score: 2, Interesting

    Google proved that clustering could be fault tolerant, while costing less than true fault-tolerant hardware.

    Google built massive clusters of thousands of machines out of very cheap unreliable hardware. They have tons of hardware failure due to the extremely cheap components (and sheer number of machines), but everything is redundant (And fully fault tolerant).

    They did this, again, using dirt cheap hardware.

    1. Re:Google as an example by Thundersnatch · · Score: 2, Informative

      Google does not have to worry about ACID compliance in their database. From what I've read about the google file system, cluster nodes lazily share new data amongst themselves. Serving up old data is explicitly allowed.

      To cluster something like an OLTP database, every node has to be immediately informed about updates to the data, and they all have to report back that they have said data intact before the transaction commits. This can be something of a problem when you have hundreds of thousands of updates per second happening.

      And of course, you need to have a method to rapidly bring back into sync a sever which has been out of commission for a while before it comes back online.

      The only way I've seen to do that is to have some sort of high-speed shared interconnect between nodes, and some cluster-awareness in the application to handle synchronization. That is currenlty very expensive, especially if your some of your nodes are in California, and the rest are in Chciago.

      Shared-nothing clusters simply require high-speed interconnects for transactional applications. Data changes must pushed everywhere, immediately, before the transaction commits. I don't see how you get around that.

  33. More clustering benefits by Anonymous Coward · · Score: 2, Insightful
    Clustering protects against many more types of failures than servers with internally redundant hardware.
    • Clustering protects allows easy zero-downtime upgrades (update half the cluster, and then the second half)
    • Clustering allows easy zero-downtime moves from one data-center to another (move half the servers; and then the second half)
    • Clustering protects against more types of user errors than internally redundant servers (oops, I turned off the wrong machine)
  34. Re:This brings to mind Google's strategy. by mcewen98 · · Score: 5, Interesting

    According to a presentation that I recently attended given by Jim Reese, the guy who scaled google from a couple hundred servers to over 300,000, this is still true. It was a very interesting presentation and included discussion about the problems with cramming 80 pc's into a standard server rack... including heat, cable management, machine replacement.. etc.

    Other interesting tid bits that I remember:

    -over 300,000 x86 machines make up the network, with clusters all over the place which make searces return in under .3 seconds.
    -commodity hardware (maxtor, western digital, whatever is available) is used.
    -over a thousand machines fail daily. Most are automatically reboot, and it sounded like admins only come into play when a machine needs to be replaced.
    -the longest uptime of a single machine has been 7 years
    -they use a heavily modified redhat distro.
    -real time stats of the entire network can be seen at any moment

    i'm sure there were more interesting facts but that's all I can regurgitate at the moment.

  35. Absolutely right by TTK+Ciar · · Score: 3, Informative

    Clustering provides you with Fault Tollerant OS/Applications. A single server with tons of redundant bits, doesn't help you if the OS or Applications that it servers get borked.

    This is dead-on correct. For example, if a CGI hits a problematic state where it eats a lot of memory putting the server into a state where it's swapping, then it takes longer to service each http transaction, which means each more httpd transactions queue up, which means more memory gets allocated which means more swapping .. rendering the machine useless for a little while (until a sysadmin or a bot notices the state and either restarts the httpd or kills a few select processes). If we were running this on one mammoth server with lots of redundant bits, then 100% of our web service capacity would be down in the interim. But since we run a pool of ten http servers under keepalived/IPVS, we only lose 10% of our capacity during that time.

    Other reasons I've traditionally preferred clustering: easy to incrementally scale up infrastructure (no big buy-in in the beginning to get the server which can be expanded), fully parallel resources (an independent memory bus, an independent IO bus, two independent CPU's, an independent network card, and a few independent disks for each server, as opposed to a mammoth shared bus on a leviathan crossbar, which will inevitably run into contention), and more flexibility in how resources are divided amongst mutually exclusive tasks.

    One of those reasons is getting less relevant -- point-to-point bus technologies like LightningTransport and PCI-Express are inexpensively replacing the "one big shared bus" with a lot of independent busses, transforming the server into a little cluster-in-a-box. It is a positive change IMO, and shifts the optimal setup away from the huge cluster of relatively small machines, and towards a more moderately-sized cluster of more medium-sized cluster-in-a-box machines.

    The price of licenses is, IME, rarely an issue (in my admittedly limited career -- I don't doubt that it's relevant to many companies) because the places I've worked for have tended to use primarily free-as-in-beer (and often free-as-in-speech) open source solutions. What is more of an issue, IME, is the necessity of staffing yourself with cluster-savvy sysadmins and software engineers. Those of that ilk tend to be a bit rare and expensive, and difficult to keep track of. It takes a distributed systems professional to look at a distributed system and understand what is being seen, and this makes it easy to bend the spec or juggle the schedule on the sly, or run skunkworks projects outright. By contrast, the insanely redundant, mondo-expensive uberserver was created and programmed by very smart hardware and software specialists so that your IT staff doesn't need to be so specialized. This makes useful talent easier to acquire, and understanding the system closer to the reach of mere mortals.

    Just my two cents
    -- TTK

  36. One word. by Wdomburg · · Score: 2, Insightful

    Both.

  37. Real world example and cost by MarkEst1973 · · Score: 2, Interesting
    A gov't contractor I worked for was getting a contract to consolidate multiple servers and apps into a single pair of servers (web and db) for a small gov't agency.

    The agency bought a pair of dual proc Dells with lots of RAM and a full software stack (Windows Server, SQLServer, and ColdFusion Server). Total cost: ~$57,000.

    That's right, nearly 60k.

    Now, I've read that Google buys their white boxes at $1k each for their server farm. And I couldn't help but think what they'd (or I) would do with 57 boxes instead of 2.

    But hey, my opinion doesn't matter. I'm not a PHB in a gov't agency. But sure as hell, if I were a business in a competitive environment (and a gov't agency is not), I'd be looking to implement the simple and effective white box solution on the cheap. But that's just me.

  38. Well, let's see by Cyno · · Score: 2, Informative

    Sun:
    http://store.sun.com/CMTemplate/CEServlet?process= SunStore&cmdViewProduct_CP&catid=83174

    For around $20,000 you could build a PC cluster that includes:
    20+ x Intel P4 D820 at ~$500 ea.
    20+ x AMD64 X2 3800+ at ~$750 ea.

    You could almost get a cluster of 40 Intel PCs, each with a dual-core chip running at 2.8 Ghz. Or almost 30 AMD64 PCs, each with a dual-core chip running at 1.8 Ghz. If you shop smart you can get gigabit ethernet on the motherboard and have a fault-tollerant / redundant system with over 10 times the performance of the Sun system.

    I don't know about you, but I would take the cluster of AMD X2s. The Intels might beat 'em on price/performance, but the X2s might be a lil bit nicer to work on.

  39. Horses 4 Courses - They are NOT mutually exclusive by mr_rizla · · Score: 2, Insightful
    Why would you want a cluster? For high availability. Why do you want a server with multiple redundant parts? For resiliency.

    If you have an application that requires ULTIMATE uptime, then you need a geographically remote cluster (Cluster spread over two sites with a redundant leased line link to provide the heartbeat). No matter how many redundant parts in a server, if it gets nuked (read power failure, flood, or other, not ACTUALLY nuked) then that application is down.

    Active-active clusters are not really ideal, while load-balancing is a nice idea in this instance it means that when half of it fails then the application suffers severe performance issues. Active-active also creates data issues, as you've got two servers writing to their own local storage that also requires real-time replication between sites. Veritas Storage Foundation is about the most cost-effective option here, you don't even need 2003 Server Enterprise.

    If you want a nice simple active-passive cluster and its on the same locale, fine, use a SAN. If they are geographically remote, then they will need real-time replication and as one is passive then you can use HP Storage Mirror or similar. HP are the only vendor in fact that do a nice packaged cluster solution with a SAN included all under one part code. FYI.

    Having said that, if you're buying a decent server, then you are an absolutle idiot to not put RAID into it. After that, it only costs another £300 or so to add a redundant hot-plug PSU & fan. Plus p'raps a bit for an extra CPU. After that, the only component that will cause a total outage is the mainboard failing - and the only real way to get around that is to... uh... add another mainboard! Well... guess that's another server then...!

  40. Clustered FT hardware is the proper solution by swordgeek · · Score: 2, Insightful

    Others have said it, I'll say it again: you don't use clustering in place of FT hardware, or vice versa. You use them together!

    Take a server: Hot-swappable mirrored OS disks, N+1 power supplies, dual NICs (which support failover), dual cards initiating separate paths to your storage (through independent switches, if fibre-attached), ECC RAM with on-system logic to take out a failing DIMM. Oh yeah, and multiple CPUs, again with logic to remove one from active use if need be. (chipkill sort of stuff.)

    Now take another identical server (or two) and cluster them. By cluster, I mean add the heartbeat interconnects and software layer to monitor all of the mandated hardware and application resources, and fail over as necessary, or take other appropriate actions. Gluing a pile of machines together in a semi-aware grid is NOT a cluster, and does not properly address the same problem!

    Now once you've got this environment in place, add the most crucial aspect: Highly competent sysadmins, and a strict change control system. The former will cost you a fair sum of money in salary, and the latter will likely necessitate duplicating your entire cluster for dev/test purposes, before rolling out changes.

    That's the beginning of an HA environment. Still up for it?

    --

    "People who do stupid things with hazardous materials often die." -- Jim Davidson on alt.folklore.urban