Xgrid

From Wikipedia, the free encyclopedia

Jump to: navigation, search
Xgrid
Image:Xgrid-icon.png
Developed by Apple Inc.
Initial release January 6, 2004[1]
Operating system Mac OS X
Platform Independent
Development status Active
Type Distributed computing
License Proprietary EULA[2]
Website www.apple.com/macosx/features/xgrid/

Xgrid is a proprietary software program and distributed computing protocol developed by the Advanced Computation Group subdivision of Apple Inc that allows networked computers to contribute to a single task. The system has been used by researchers using MacResearch's OpenMacGrid.

It provides network administrators a method of creating a computing cluster, which allows them to exploit previously unused computational power for calculations that can be divided easily into smaller operations, such as Mandlebrot maps. The setup of an Xgrid cluster can be achieved at next to no cost, as Xgrid client is pre-installed on all computers running Mac OS X 10.4 or later. The Xgrid controller, the job scheduler of the Xgrid operation, is also included within Mac OS X Server and as a free download from Apple.

The program employs its own communication protocol layered on top of a schema to communicate to other nodes. This communication protocol interfaces with the BEEP infrastructure, a network application protocol framework. Computers discovered by the Xgrid system, that is computers with Mac OS X's Xgrid service enabled, are automatically added to the list of available computers to use for processing tasks.

When the initiating computer sends the complete instructions, or job, for processing to the controller, the controller splits the task up into these small instruction packets, known as tasks. The design of the Xgrid system consists of these small packets being transferred to all the Xgrid-enabled computers on the network. These computers, or nodes, execute the instructions provided by the controller and then return the results. The controller assembles the individual task results into the whole job results and returns them to the initiating computer.

Apple modeled the design of Xgrid on the Zilla program, distributed with NeXT's OPENSTEP operating system application programming interface (API), which Apple owned the rights to. The company also opted to provide end users with only command-line functions and little flexibility, while giving only the Mac OS X Server version of Xgrid a GUI control panel and a full set of features.

Contents

[edit] History

Zilla

Xgrid's original concept can be traced back to Zilla.app, found in the OPENSTEP operating system API, created by NeXT in the late 1980s. Zilla was the first distributed computing program released on an end-user operating system and which used the idle screen-saver motif,[1] a design feature found in widely used projects such as Seti@Home and Distributed.net. Zilla won the national ComputerWorld Smithsonian Award (Science Category) in 1991 for ease of use and good design.[3] Apple acquired Zilla, along with the rest of NeXT,[4] in 1997 and later used Zilla as inspiration for Xgrid.[1] The first beta version of Xgrid was released in January 2004.[5]

Several organizations have adopted Xgrid in large international computing networks. One example of an Xgrid cluster is MacResearch's OpenMacGrid, where scientists can request access to large amounts of processing power to run tasks related to their research.[6][7] Another was the now defunct Xgrid@Stanford project, which used a range of computers on the Stanford University campus and around the world[8] to perform biochemical research.[9]

In a pre-release promotional piece, MacWorld cited Xgrid among the Unix features in "10 Things to Know about TIGER", calling it "handy if you work with huge amounts of experimental data or render complex animations".[10] After Xgrid's introduction in 2004, InfoWorld noted that it was a "'preview' grade technology" which would directly benefit from the Xserve G5's launch later that year.[11] InfoWorld commentator Ephraim Schwartz also predicted that Xgrid was an opening move in Apple's entry into the enterprise computing market.[12]

[edit] Protocol

Xgrid Protocol

The Xgrid protocol uses the BEEP network framework to efficiently communicate with nodes on the network. The system's infrastructure includes three types of computers which communicate over the protocol. One is the client, which communicates the calculation. Next is the controller, which starts and segregates the calculation. Finally, the agents process their own allocated part of the calculation.

A computer can act as one or all three of these components at the same time. The Xgrid protocol provides the basic infrastructure for computers to communicate, but is not involved in the processing of the specified calculation.[13] Xgrid is targeted towards time consuming computations that can be easily segregated into smaller tasks, sometimes called embarrassingly parallel tasks.[14] This includes Monte Carlo calculations, 3D rendering and Mandelbrot maps.[13]

Within the Xgrid protocol, three types of messages can be passed to other computers on the same cluster: requests, notifications and replies. Requests must be responded to by the recipient with a reply, notifications do not require a reply, and replies are responses to sent messages. They are identified by their name, type (request/notification/reply) and contents. Each is encapsulated in a BEEP message (BEEP MSG) and is acknowledged on receipt by an empty reply (RPY).[5]

[edit] Architecture

The architecture of the Xgrid system is designed around a job based system; the controller sends agents jobs, and the agents return the responses. The actual computation that the controller executes in an Xgrid system is known as a job. The job contains all the files required to complete the task successfully, such as the input parameters, data files, directories, executables and/or shell scripts, the files included in an Xgrid job must be able to be executed either simultaneously or asynchronously, or any benefits of running such a job on an Xgrid is lost. Once the job completes, the controller can be set to notify the client of the task's completion or failure, for example by email. The client can leave the network while the tasks are running. It can also monitor the job status on demand by querying the controller, although it cannot track the ongoing progress of individual tasks.[15]

The controller is central to the correct function of an Xgrid, as this node is responsible for the distribution, supervision and coordination of tasks on agents. The program running on the controller can assign and reassign tasks to handle individual agent failures on demand. The number of tasks assigned to an agent depend on two factors: the number of agents on an Xgrid and the number of processors in each node. The number of agents on an Xgrid determines how the controller will assign tasks. The tasks may be assigned simultaneously for a large number of agents, or queued for a small number of agents. When a node with more than one processor is detected on an Xgrid, the controller may assign one task per processor; this only occurs if the number of agents on the network is lower that the number of tasks the controller has to complete.[15]

Xgrid relies highly on the Blocks Extensible Exchange Protocol (BEEP), an IETF standard comparable to HTTP, but with a focus on two-way multiplexed communication, such as that found in peer-to-peer networks. BEEP, in turn, uses the XML language to define profiles for communicating between multiple agents over a single network or internet connection.[16]

[edit] Interface

Xgrid administration tool

While it is possible to access Xgrid from the command line, the Xgrid graphical user interface, a program bundled with Mac OS X Server and, as of March 2009, available online, is a much more efficient way of administering an Xgrid system. Originally, the Xgrid agent was included in all Mac OS X version 10.4 installations but the GUI was reserved for users of Mac OS X Server. This decision limited the efforts of the computer community to embrace the platform. Eventually, Apple released the Mac OS X Server Administration Tools to the public, which included the Xgrid administration application bundled with Mac OS X Server.[17]

Despite the lack of a graphical controller interface in the standard (non-server) Mac OS X distribution, it is possible to set up an Xgrid controller via the command line tools xgridctl and xgrid. Once the Xgrid controller daemon is running, administration of the grid with Apple's Xgrid Admin tool is possible.[17] Some applications, such as VisualHub, provided Xgrid controller capability through their user interfaces.[18][19]

[edit] See also

[edit] Notes

  1. ^ a b c "Mac OS X Manual Page For xgrid(1)". Apple Inc.. 2007-12-03. http://developer.apple.com/documentation/Darwin/Reference/ManPages/man1/xgrid.1.html. Retrieved on 2008-07-25. 
  2. ^ "Mac OS X 10.5 SLA" (PDF). Apple Inc.. 2005-03-09. http://images.apple.com/legal/sla/docs/macosx105.pdf. Retrieved on 2008-06-12. 
  3. ^ "Zilla - Computerworld Honours Program Archives". http://www.cwhonors.org/search/his_4a_detail.asp?id=1261. Retrieved on 2009-02-27. 
  4. ^ Apple Computer (1996-12-20). Apple Computer, Inc. Agrees to Acquire NeXT Software Inc.. Press release. Archived from the original on 2002-02-08. http://product.info.apple.com/pr/press.releases/1997/q1/961220.pr.rel.next.html. Retrieved on 2008-06-13. 
  5. ^ a b Côté, Daniel (2004-06-21). "XGrid agent for Unix architectures". Simple. http://unu.novajo.ca/simple/archives/000026.html. Retrieved on 2008-07-18. 
  6. ^ Martellaro, John (2007-02-13). "OpenMacGrid Computing Grid for Mac Users Announced". The Mac Observer. http://www.macobserver.com/article/2007/02/13.1.shtml. Retrieved on 2009-03-01. 
  7. ^ Saunders, Grover (2007-02-12). "OpenMacGrid creates distributed computing love-fest". Ars Technica. http://arstechnica.com/apple/news/2007/02/7022.ars. Retrieved on 2009-03-01. 
  8. ^ Parnot, Charles (2007-12-03). "Xgrid@Stanford - Home". Stanford University. http://cmgm.stanford.edu/~cparnot/xgrid-stanford/. Retrieved on 2008-07-25. 
  9. ^ Parnot, Charles (2007-12-03). "Xgrid@Stanford - Projects". Stanford University. http://cmgm.stanford.edu/~cparnot/xgrid-stanford/html/projects/projects.html. Retrieved on 2008-07-25. 
  10. ^ Michaels, Philip; Rob Griffiths, Jason Snell, Jonathan Seff (2004-09-01). 10 Things to Know about TIGER. 21. MacWorld. pp. 50-55. ISSN 07418647. http://search.ebscohost.com/login.aspx?direct=true&AuthType=ip,url,uid&db=bch&AN=14111634&site=ehost-live. Retrieved on 2008-10-16.  (Subscription required)
  11. ^ Connolly, P.J. (2004-06-21). Apple's Xserve Hardware Makes Waves. 26. InfoWorld. pp. 29-30. http://proquest.umi.com/pqdweb?did=656487681&sid=1&Fmt=4&clientId=20886&RQT=309&VName=PQD. Retrieved on 2008-10-16.  (Subscription required)
  12. ^ Schwartz, Ephraim (2004-01-26). Doth Apple Protest Too Much?. 26. InfoWorld. pp. 12. http://proquest.umi.com/pqdweb?did=535000171&sid=1&Fmt=4&clientId=20886&RQT=309&VName=PQD. Retrieved on 2008-10-16.  (Subscription required)
  13. ^ a b Côté, Daniel (2004-01-07). "XGrid". Simple. http://unu.novajo.ca/simple/archives/000022.html. Retrieved on 2008-07-18. 
  14. ^ Gulker, Chris (2004-01-15). "Xgrid: Grid computing for the rest of us?". Linux.com. http://www.linux.com/articles/33719. Retrieved on 2008-07-26. 
  15. ^ a b "Xgrid Programming Guide: How It Works". Apple Inc.. 2007-10-31. http://developer.apple.com/documentation/MacOSXServer/Conceptual/Xgrid_Programming_Guide/Overview/Overview.html#//apple_ref/doc/uid/TP40006246-CH2-DontLinkElementID_13. Retrieved on 2008-06-12. 
  16. ^ "Mac OS X Server: Xgrid" (PDF). Technology Brief. Apple Inc.. 2007-11-01. 2. http://images.apple.com/server/macosx/docs/L355779B_Xgrid_tb.pdf. Retrieved on 2009-03-01. 
  17. ^ a b Muir, Dylan (2005-06-23). "10.4: Run an Xgrid with Tiger client". Macosxhints.com. http://www.macosxhints.com/article.php?story=20050610040807931. Retrieved on 2008-07-26. 
  18. ^ "VisualHub offers Xgrid support". MacNN. 2006-06-07. http://www.macnn.com/articles/06/06/07/visualhub.released/. Retrieved on 2008-07-26. 
  19. ^ Sellers, Dennis (2006-08-01). "VisualHub update adds over 20 new features". Macsimum News. http://www.macsimumnews.com/index.php/archive/visualhub_update_adds_over_20_new_features. Retrieved on 2009-03-01. 


Personal tools