TDEB Top Bar

Trending
Semiconductor Industry News — The Digital Electronics Blog
Follow Us

TDEB Masthead

The Semiconductor Hub

Semiconductors.  Chips and Systems.  Innovation.

Indexed by leading Search Engines, AI and referenced by Engineers worldwide 500+ Articles 10M+ Pageviews 30+ Reports 50+ Citations

Grid Computing vs Cluster Computing

mg
by
0
Share Facebook X LinkedIn WhatsApp Email

A cluster computer is a set of CPU nodes that work together over a network to solve a problem. The way these computers cooperate to solve a problem is called cluster computing. Grid computing follows a very similar idea, but it is used to solve larger problems with resources that belong to different owners. Clusters are usually homogeneous and grids are heterogeneous. Homogeneous means all CPU nodes have the same hardware configuration and operating system. A cluster of clusters is usually a grid. CPU nodes that are part of a grid need not be homogeneous and are usually spread across LANs or WANs.

The short version

Think of a cluster as one team in one building: the same kind of machines, one administrator, one job scheduler, and a fast private network between them. Think of a grid as several teams in different organizations who agree to share their machines: different hardware, different owners and rules, connected over ordinary wide area networks.

  • Cluster: tightly coupled, one owner, central control, low network latency. Good for jobs whose parts talk to each other all the time.
  • Grid: loosely coupled, many owners, no single point of control, high network latency. Good for jobs that split into many independent pieces.

How a cluster works

A cluster has a head node that accepts jobs and a set of compute nodes that run them. A resource manager or batch scheduler decides which job runs where. Because every node is configured the same way, a program built once runs on any node. Parallel programs usually communicate with a message passing library such as MPI, so the speed of the network between nodes matters a great deal.

The cluster idea became popular in the mid 1990s, when the Beowulf project at NASA Goddard showed that 16 ordinary DX4 processors linked by Ethernet could do useful parallel work. Clusters of commodity servers have dominated high performance computing since then.

How a grid works

A grid joins resources that are owned and run by different organizations, each with its own policies. Grid middleware handles the hard parts: proving who a user is across sites, deciding what each user may run, finding free resources, moving data and tracking jobs. Work is usually split into many independent tasks that can run anywhere, because sending data across a wide area network is slow compared with the network inside a cluster.

The best-known example is the Worldwide LHC Computing Grid, which CERN describes as linking more than 170 sites in 42 countries to process data from the Large Hadron Collider.

When to use which

  • Use a cluster for tightly coupled parallel work: circuit simulation split across cores, computational fluid dynamics, weather models, training jobs that exchange data every step.
  • Use a grid for many independent jobs that need more machines than any one owner has: particle physics event processing, parameter sweeps, large regression runs that can tolerate delay.
  • In chip design, a compute farm for regressions, characterization or Monte Carlo runs behaves like a cluster with a batch scheduler. Spreading such work across several company sites starts to look like a grid.

Deep dive: the numbers and details

This part holds the definitions, a comparison table and worked examples. Skip it if the overview is all you need.

A precise test: Foster's three-point checklist

In 2002 Ian Foster, one of the founders of grid computing, proposed a simple test in What is the Grid? A Three Point Checklist (archived copy). A system is a grid if it:

  1. coordinates resources that are not under centralized control,
  2. uses standard, open, general-purpose protocols and interfaces, and
  3. delivers nontrivial qualities of service, such as response time, throughput, availability or security.

Foster states plainly that a cluster managed by a batch system such as Sun Grid Engine or Portable Batch System is not a grid, however powerful, because one manager has complete knowledge and control of every host. That is the cleanest way to tell the two apart: the question is not the size of the system but who controls it.

Side-by-side comparison

AspectClusterGrid
Ownership and controlOne owner, one schedulerMany owners, each keeps its own policies
Hardware and OSUsually homogeneousHeterogeneous
NetworkDedicated LAN or high speed interconnectLANs joined over WANs or the Internet
Coupling of tasksTight: tasks exchange data oftenLoose: tasks mostly independent
Security modelLocal accounts inside one domainFederated identity and authorization across domains
Typical softwareMPI, batch schedulerGrid middleware, workload and data management
Failure handlingNode failures handled by one administratorSites come and go; jobs are retried elsewhere

Why coupling decides the choice: a worked example

Amdahl's law gives the speedup S of a job on N processors when a fraction p of the work can run in parallel:

S(N) = 1 / ((1 - p) + p / N)

With p = 0.95 and N = 100, S = 1 / (0.05 + 0.0095) = about 16.8. Even with perfect communication the serial 5% caps the speedup at 20, however many nodes you add.

Communication makes things worse, and this is where clusters and grids differ. Take a job split into steps where each step computes for time tc and then exchanges data, costing time tm. Efficiency is roughly tc / (tc + tm). Assume, for illustration, 1 ms of compute per step:

  • On a cluster network with an exchange cost of, say, 10 microseconds, efficiency is 1 / 1.01, about 99%.
  • Across a wide area link with an exchange cost of, say, 50 ms, efficiency is 1 / 51, about 2%. The job spends almost all its time waiting.

The same job with no exchanges at all, such as 10,000 independent simulations, runs at close to 100% efficiency on either. That is why grids suit independent tasks and clusters suit tightly coupled ones. Measure your own compute-to-communication ratio before choosing.

Scale in practice

  • The first Beowulf cluster, started in early 1994 at NASA Goddard, had 16 DX4 processors and used channel-bonded Ethernet, which striped traffic across two or more 10 Mbit/s links (Beowulf history).
  • CERN lists the Worldwide LHC Computing Grid at more than 170 sites in 42 countries, about 1.4 million computer cores, 1.5 exabytes of storage and more than 2 million tasks a day (CERN: The Grid).

Where cloud computing fits

A public cloud region behaves much like a very large cluster owned by one provider: central control, uniform interfaces and a fast internal network, rented by the hour. Many workloads that once went to grids, such as large independent batch runs, now go to cloud batch services instead. The grid model remains important where data and computers truly belong to many institutions, as in large science collaborations.

Interview angle

  • Q: Is a large cluster with a batch scheduler a grid? A: No, by Foster's checklist, because it is under centralized control.
  • Q: Which would you choose for a job that exchanges data every millisecond? A: A cluster; the wide area latency of a grid would dominate.
  • Q: What limits speedup even with a perfect network? A: The serial fraction, by Amdahl's law.

Further reading

Share Facebook X LinkedIn WhatsApp Email

Post a Comment

0 Comments

Your comments will be moderated before it appears here.

Post a Comment (0)

#buttons=(Ok, Go it!) #days=(20)

Our website uses cookies to enhance your experience. Learn more
Ok, Go it!