Cloud computing on Linux

Source: Internet
Author: User

Cloud computing platforms and Applications

Document options

Print this page

Original ENGLISH

Level: elementary

M. Tim Jones, consultant engineer, emulex Corp.

September 10, 2008
Updated on January 1, March 09, 2009

Cloud computing and storage use the Internet to convert physical resources (such as processors and storage space) into scalable shared resources (using cloud computing and storage as "services "). Although virtualization is not a new concept, sharing physical systems through server virtualization makes cloud computing and storage more efficient and scalable. With cloud computing, users can access a large number of computing and storage resources without worrying about their locations and how they are configured. As expected, Linux plays an important role in this process. Explore the mysteries of cloud computing. [Get the latest cloud computing content from developerworks through the latest reference link.]

Recently, no technical website mentioned the so-calledCloud computing. Cloud computing actually provides computing resources (computers and storage) in the form of services ). This involves dynamically extending services to more computers and storage capabilities in a simple and transparent way. All of these are similarUtility computing)The idea behind it. In utility computing, computing resources are considered as metering services, just like more traditional public facilities (such as water or electricity. Their difference lies not in the goals behind these ideas, but in the combination of these ideas to make them a reality of the existing technology.

One of the most important concepts behind cloud computing is scalability, and the key to achieving it is virtualization ). Virtualization aggregates multiple operating systems and applications on a shared computer to make better use of the server. Virtualization also allows online migration. Therefore, when a server is overloaded, an instance of an operating system (and its applications) can be) migrate to a new, less busy server.

IBM and Amazon Web Services

Cloud computing provides a way to develop applications in a virtual environment, the computing power, bandwidth, storage, security, and reliability of this environment are not a problem-you do not need to install software on your own system. In a virtual cloud computing environment, you can develop, deploy, and manage applications. You only need to pay for the time and capacity used, however, this allows you to adjust applications based on changing business needs.

IBM cooperates with Amazon Web services to enable you to use IBM software products in the Amazon Elastic Compute Cloud (EC2) virtual environment. The software products we provide on EC2 include:

  • DB2 express-C 9.5
  • Informix Dynamic Server Developer Edition 11.5
  • WebSphere Portal Server and Lotus Web Content Management Standard Edition
  • WebSphere smash

This is the product-level code, and all the features and options are available. SlaveIBM developerworks cloud computing resource centerLearn more and download the Amazon Machine images running these products.

For more cloud computing resources, see Cloud computing for developers space on developerworks.

From the external perspective, cloud computing only migrates computing and storage resources from the enterprise and to the cloud. Users define Resource requirements (such as computing and Wan and bandwidth requirements). cloud providers Virtualize these components in their infrastructure, as shown in 1.

Figure 1. Cloud computing resource migration on the Internet

But why are you willing to give up control of your resources and make them exist in the cloud? There are many reasons, but I believe the two most important reasons are cost and scalability. Cloud computing aims to make these resources cheaper than the resources you can provide and manage. In addition to reducing costs, cloud computing also has greater flexibility and scalability. Cloud computing providers can easily expand virtual environments to provide larger bandwidth or computing resources through the provider's virtual infrastructure.

The advantage of cloud computing in environmental protection is that it can Virtualize and share resources between different applications to improve server utilization. Figure 2 shows an example. In this example, different applications use three independent platforms, and each application runs on its own server. In the cloud, you can share (virtualized) servers between multiple operating systems and applications to reduce the number of servers. Less servers mean less space (less space occupied by data centers) and less power for cooling (less carbon pollution ).

Figure 2. virtualization and resource usage

However, cloud computing does not have any disadvantages. Some problems will be explored later in this article. But now, let's explore cloud computing more deeply.

Cloud computing Analysis

When you observe the cloud in depth, you will find that it is not a separate service, but a service set, as shown in 3. These layers define the level of the provided service.

Figure 3. Cloud computing hierarchy

We start with the lowest level of service, that is, infrastructure (Infrastructure-as-a-serviceOr IAAS ). IAAs is leasing infrastructure (computing resources and storage) as a service. This means that the virtual computer not only has guaranteed processing capabilities, but also reserves bandwidth for storage and Internet access. In fact, IAAs is capable of leasing computers or data centers with specific service quality constraints so that it can execute any operating system or software.

Value of cloud computing

In addition to reducing management costs related to cloud computing resources, cloud computing also has other advantages. For example, when you divide yourself from your own resources over the Internet, where those resources are not important. For example, they can reduce energy consumption in a natural cooling environment.

As you can see from the stack, the service at the upper level is a platform (Platform-as-a-serviceOr PAAs ). Paas is similar to IAAs, but it includes the operating system and necessary services around specific applications. For example, in addition to virtual servers and storage, Paas also provides a specific operating system and application assembly (usually as a virtual machine, namely a VM, or a file, such as VMware. vmdk format), and access to necessary services (such as MySQL database or other dedicated local resources. In other words, Paas is the addition of a custom software stack for a given application by IAAs.

Finally, at the top of Figure 3 is the simplest service: application. This layer is calledSoftware-as-a-serviceSAAS is a model for deploying software from a centralized system on a local computer (or remotely from the cloud. As it is a metering service, SAAS allows you to rent an application and pay for it on a hourly basis.

This is a highly general cloud computing view. This view ignores other aspects of the cloud, suchData-storage-as-a-service(Dsaas), the latter provides storage in the form of metering services, and consumers are charged based on the used capacity (Used storage capacity) and utilization (storage bandwidth requirements. In addition, cloud services provide internal mechanisms for interoperability and external application programming interfaces (APIS), such as web services.



Back to Top

Cloud computing status quo

In recent months, investment in cloud computing and related infrastructure has exploded. Such a huge investment shows that there is a huge demand for cloud resource virtualization. A lot of new services were available last year, as shown in figure 4.

Figure 4. Cloud computing layers and related products

This is by no means a detailed product category because of frequent changes. However, this does give an overview of some products and shows the differences between them. The reference section later in this article includes links to some of the products.



Back to Top

Linux and open-source applications in the cloud

Now let's explore how the Linux and open-source communities contribute to the cloud computing field. You may have guessed that Linux and open source play an extremely important role.

Software-as-a-service

SAAS (software as a service) is the software that accesses the Internet as a service. An early SaaS method was Application Service Provider (ASP ). ASP provides subscription to software stored or delivered on the Internet. ASP delivers software and charges fees based on the use of the software. In this way, you do not need to buy software, just rent the software on demand.

SAAS instances

An interesting example of comparison between traditional applications and SaaS applications is the application lifecycle management tool provided by softwareplanner.com. The company provides their tools in the traditional form or SaaS form. When using traditional forms, customers place application suites in their businesses, while when using SaaS forms, customers own application suites and place them on the Internet.

Another aspect of SAAS is the use of remote execution software on the Internet. This software can be a service used by a local application (and definedWeb Services), Or you can see the remote application through a web browser. One example of Remote Application Service is Google Apps, which provides some enterprise applications through a standard Web browser. To remotely execute an application, you usually need to rely on an application server to publish the required services.Application ServerIs a software framework that publishes software service APIs (such as transaction management or database access ). Specific examples include Red Hat JBoss application server, Apache Geronimo, and IBM WebSphere Application Server. There are also many other application servers. A detailed list is provided in the reference section.

Another recent example of SAAS is Google's Chrome browser. This browser is an ideal environment for new desktops. In addition to the traditional Web browsing experience, it can also be used to deliver applications (locally or remotely. (For more information, see references ).

Platform-as-a-service

PAAs can be described as a complete virtual platform, which includes one or more servers (virtualized on a group of physical servers), operating system, and specific applications (such as Apache and MySQL for Web-based applications ). In some cases, these platforms can be pre-defined and selected. In other cases, you can provide a VM image that contains all user-specific applications.

An interesting example of Paas is Google App Engine. App Engine is a service that allows you to deploy Web applications on Google's highly scalable architecture. App Engine provides a sandbox for python applications that are referenced over the Internet (more languages will be supported in the future ). In addition to user authentication, image operations, and email sending, App Engine also provides Python APIs for persistent data storage and management (using Google query language or gql ). When a web application is running, the sandbox restricts access to the underlying operating system. Although App Engine limits the functions available for applications, it supports the construction of useful web services. For more information, see references.

Note:In a certain range of bandwidth and storage constraints, it is free to deploy applications in the App Engine. However, if you want to use the App Engine to build a production Web site, you need to evaluate the usage fee.

Another example of Paas is 10gen, which is both a cloud platform and a downloadable open source package that can be used to create your own private cloud. 10gen is a software stack similar to App Engine. It provides features similar to App Engine-but there are some differences. With 10gen, you can use python, JavaScript, and Ruby programming languages to develop applications. The Platform also uses the sandbox concept to isolate applications and provides a reliable environment through many computers on its own application server (of course, built on Linux.

Infrastructure-as-a-service

IAAs delivers computer infrastructure as a service. This layer is different from PAAs in that it only provides Virtual Hardware without software stacks. The customer provides a VM image that is called on one or more virtual servers. IAAs is the most primitive form of service computing (except for access to physical infrastructure ). The most famous commercial IAAs provider is Amazon Elastic Compute Cloud (EC2 ). In EC2, you can specify a specific VM (Operating System and Application assembly), then deploy the application on it, or provide the VM image to be executed on the server. Then, you only need to pay based on the computing time, storage and network bandwidth.

The Eucalyptus Project (elastic utility computing architecture for linking your programs to useful systems) is an open-source implementation of Amazon EC2 and is compatible with commercial service interfaces. Like EC2, eucalyptus relies on Linux and xen for operating system virtualization. Eucalyptus was developed by the University of California (Santa Barbara) for cloud computing research. You can download it from the university website (see references), or use eucalyptus public cloud to experience it, but the latter has some restrictions.

Another EC2-style IAAs is the enomalism cloud computing platform. Enomalism is an open-source project that provides a cloud computing framework similar to EC2. Enomalism is based on Linux and supports both xen and kernel Virtual Machine (KVM ). Different from other pure IAAs solutions, enomalism provides a software stack based on the turbogears web application framework and python.



Back to Top

Other cloud development

In addition to the Development discussed earlier, there are other Linux-based open source code packages that are also useful in the cloud environment. Hadoop is an open-source Java software framework, which is similar to paas, but focuses on manipulating large datasets on a group of networked servers (inspired by Google mapreduce, the latter supports parallel processing of large datasets ). Therefore, it is useful in Web search and advertising applications-especially in Yahoo! . Hadoop also provides some sub-projects, which are similar to Google applications. For example, hbase provides functions similar to Google bigtable databases, and hadoop Distributed File System (HDFS) provides functions similar to Google File System (GFS.



Back to Top

Problems and challenges

Cloud computing problems are obvious-the two most important issues are confidentiality and security. Confidentiality can be solved through encryption, but we should be cautious when selecting cloud computing services. At the beginning of web development, even e-commerce was under suspicion. Global e-commerce transactions worth trillions of dollars each year, so cloud computing can benefit from all today's Web security technologies (such as Secure Sockets Layer or SSL ).



Back to Top

Conclusion

The storm of cloud computing has started, and the open-source development of cloud computing Linux is also developing rapidly. With the huge investment in the cloud computing field, the transformation to a centralized data center has become apparent. Interesting new technologies and architectures are coming soon!

References

Learning

  • For more information, see the original article on the developerworks global website.
  • Learn more about cloud computing in this 5-part cloud computing with Amazon Web Services Series (developerworks, February to July 2008.
  • "Automated Linux cloud installation" (developerworks, September November 2008) demonstrates how to install SuSE Linux on a power system or system p lpar.
  • Read more about the IBM "Blue cloud" center that is now set up worldwide. In June 2008, IBM established two new centers in Beijing, China, and Johannesburg, South Africa. IBM will have at least 13 cloud computing data centers to support data protection in different geographic locations.
  • Wikipedia has made a good introduction to cloud computing and related technologies:
    • IAAs
    • PAAs
    • SAAS
    • Utility Calculation
    • Grid computing
  • Learn more about various types of Virtualization in "virtual Linux" (developerworks, December 2006. Cloud computing relies on Virtualization to achieve optimal utilization of server resources. Through virtualization, the server can be used to accommodate multiple operating systems and application sets.
  • Let's take a look at the World Wide Web Consortium (W3C) detailed discussion of the web service architecture and services.
  • Wikipedia provides a good comparison between application servers, including open source code and proprietary solutions. You will find standard Java 2 platform, Enterprise Edition application servers, and even functional programming-based application servers, such as Haskell-oriented happs.
  • Michael Sheehan compared the key factors of cloud computing and grid computing by using Google Trends.
  • In the developerworks Linux area, find more references for Linux developers (including new Linux beginners) and refer to our most popular articles and tutorials.
  • Read all Linux tips and Linux tutorials on developerworks.
  • Stay tuned to developerworks technical events and network broadcasts.

Obtain products and technologies

  • JBoss application server, Geronimo, and WebSphere Application Server are some of the most popular application servers that provide local and web service models for SaaS.
  • Read the introduction to Google App Engine and 10gen software stacks. They demonstrate PAAs solutions that provide a virtual operating system and a software stack for your applications.
  • The most noteworthy IAAs solution is Amazon EC2, but there are some open-source solutions, such as eucalyptus and enomalism. IAAs provides a virtualized hardware infrastructure where VM can be run.
  • Hadoop is a software stack that can process large amounts of data in a scalable and efficient way. It provides a programming-based platform and distributed file systems and applications.
  • Build your next Linux development project with IBM trial software that can be downloaded directly from developerworks.

Discussion

  • Join the developerworks community through blogs, forums, podcast, and spaces.

About the author

 

M. Tim Jones is an embedded firmware architect andArtificial Intelligence: a systems approach, GNU/Linux Application Programming(Version 2 ),AI Application Programming(Version 2) andBSD sockets programming from a multilanguage perspectiveAnd other books. His engineering background is very extensive, from synchronizing the kernel development of the spacecraft to the embedded architecture design, to the development of network protocols. Tim is a consultant engineer at Emulex Corp. In longmont, Colorado.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.