Why Platform as a Service will rule the world

 

Why Platform as a Service will rule the world

  • Comments 3

Introduction

001
  1. Automation is taking over the world.
  2. Machine Learning, Smart Robots is what humankind can expect more of.
  3. A radical technology revolution is fast replacing human beings with machines in virtually every sector and industry in the global economy.
  4. As unpleasant as this may sound to some, technology doesn’t wait for anybody.
  5. Our job as technologists is to stay smarter than the robots. “Keep your friends close, keep your robots even closer”
  6. This ever increasing use of smart software to replace humans is occurring throughout the industrialized world.
  7. Even developing nations are working with global companies to build state-of-the-art high-tech production facilities that are supremely efficient.
  8. Cloud computing is once such area that stands to gain tremendously with this phenomenon. Traditional IT shops are redeploying IT workers to other activities that provide better business value.
  9. Microsoft is working hard to improve automation in the cloud.
  10. It is call Platform as a Service and leverages Microsoft's years of experience running large web properties.
    • Some have postulated that Microsoft was too innovative, that PaaS is too radical a departure for what developer and architects are used to
  11. Let's explore some quick differences between Infrastructure as a Service and Platform as a Service.
    1. But what really interests me are some of the deeper details which I will provide about exactly the level of automation you can expect when working with Azure.
  12. I hope to convince you why PaaS is inevitable and destined for greatness.
    • This is not about Microsoft today but all companies that innovate and find ways to let developers focus on their applications and not worry about all the cloud plumbing details.


    IaaS and PaaS – Do you know the difference?

    002
    1. We will address both technologies, but there are many more nice things to say about PaaS.
    2. Historically, cloud computing has been about IaaS.
    3. But IaaS lacks the automation of PaaS.
    4. We'll do a brief discussion about IaaS.
    5. PaaS still leverages VMs but PaaS does so much more.

    IaaS – Less automation

    003
    1. With Infrastructure as a Service (IaaS), developers must directly interact with a portal or execute scripts for VMs to be created.
    2. A virtual machine (VM) in Windows Azure is a server in the cloud that you can control and manage.
    3. After you create a virtual machine in Windows Azure, you can delete and recreate it whenever you need to, and you can access the virtual machine just as you do with a server in your office.
      1. Virtual hard disk (VHD) files are used to create a virtual machine. Virtual machines are typically abbreviated VMs.
    4. There is little or no automation with respect to leveraging IaaS technologies (relative to PaaS).
      • These low level tasks need to be done at the portal or through scripting.
    5. There are scripts for Windows, Macintosh, and Linux. You can download the scripts here: http://www.windowsazure.com/en-us/manage/downloads/
      • Commands to manage your account information and publish settings
      • Commands to manage your Windows Azure virtual machines
        • Deploy a new Windows Azure virtual machine. By default, each virtual machine is created in its own cloud service; however, you can specify that a virtual machine should be added to an existing cloud service through use of the -c option
      • Commands to manage your Windows Azure virtual machine endpoints
        • Create, delete and list endpoints
      • Commands to manage your Windows Azure virtual machine images
        • Get a list of available images
      • Commands to manage your Windows Azure virtual machine data disks
        • To create images, you can either capture an existing virtual machine or create an image from a custom .vhd uploaded to blob storage
      • Commands to manage your Windows Azure cloud services
        • Create, delete and list available cloud services
      • Commands to manage your Windows Azure certificates
        • Create, delete and list available endpoints
      • Commands to manage your websites
        • List, create, browse, show details for Azure web sites
    6. Generally speaking, developers telnet into the computer hosting the VM and download software and execute installation procedures.
      • The portal offers a limited degree of automation.
    7. Choose from a library of VMs
      • The portal allows developers to select from libraries of pre-inialized VMs containing:
        • Windows Server 2008/2012, CentOS, OpenSUSE, SUSE, Ubuntu, and more.
    8. The process of deploying and scaling with IaaS boils down to cloning pre-configured VM instances.
      • Entire VMs are built-up from scratch and then replicated as needed to reach the needed scale.
    9. The VMs have only the base operating system.
      • It is very common to install many additional packages, such as:
        • Apache for web
        • PHP for the web server environment
        • Drupal for CMS. maybe WordPress.
        • MySQL, MongoDB, etc
    10. The upside of IaaS
      • More control over custom configurations
        • But the price is that more administrative tasks needed.
    11. Many developers feel more comfortable setting up their own VMs and scaling those.
    12. What is missing from IaaS solution is the beauty of an autonomous robot (Fabric Controller) doing things for the developer is simply not there.
    13. With that said, the lines of automation are blurry as IaaS does provide some level of abstraction above a raw VM and is increasing in scope.

    Gallery of Linux VMs

    qtwc2gd1
    1. Microsoft supports both Linux and Windows in its IaaS offering.
    2. You can run Windows 2008 and Windows 2012 in Windows Azure using IaaS techniques.
    3. Windows Azure directly supports several flavors of Linux, such as CentOS, Suse, OpenSuse, and Ubuntu.
      • A gallery of available Linux distributions is available
    4. You can also create your own custom images based on these distributions and re-use them at a later time when additional scale is needed.
    5. You can also download these VMs and run them on premise if required.
    6. VMs are portable and self-contained.
    7. Let’s be clear that the diagram above is IaaS.
    8. Recall from the previous points raised that this does not have fabric controller to automate routine tasks
    9. System Center Advisor and other tools provide some health monitoring
    10. System Center Advisor (http://www.systemcenteradvisor.com) is an online service that analyzes installations of server software.
    11. Advisor collects data from your installations, analyzes it, and generates alerts that identify potential issues (such as missing security patches) or deviations from identified best practices with regard to configuration and usage.
    12. The analyzed data is regularly sent from the agent to the gateway for upload to the Advisor web service.
    13. If the data indicates an issue or a deviation from best practices, an alert is generated.
    14. By connecting a web browser to the Advisor portal, you can view the alerts and the associated remediation guidance.
    15. In addition, the load balancer supports a probe with which to mitigate unplanned downtime for your web workload.
    16. There is a partner ecosystem, like RightScale,for example.
      1. http://www.rightscale.com/lp/azure.php
        1. Manage your Windows Azure public cloud deployments alongside your private cloud deployments – using the same configuration and automation methodology for both
        2. Automate Provisioning and Operations: Use customizable pre-built RightScale ServerTemplates™ for dynamic configuration, including an out-of-the-box scalable 3-tier .NET deployment.

    Enter Robot – Your faithful servant


    005
    1. In the world of Platform as a Service, the Fabric Controller does all the heavy lifting.
    2. The Fabric Controller is simply the operating system for the data center.
    3. It is the robot automating everything.
    4. For starters, there is no need to telnet or manually copy setup files and scripts.
    5. VMs are present with PaaS, but the developer is at a higher level of abstraction.
      • Developer only worries about their application and the data
      • There are fewer concerns with such things as opening http and tcp ports as well as setting up load balancing and networking.
    6. The Fabric Controller is engaged for some very important duties and is the operational heart of Windows Azure.
    7. The Fabric Controller provisions, stores, delivers, monitors and commands the virtual machines (VMs).
    8. Azure is essentially a highly automated collection of virtual machines.
    9. The Fabric Controller is a distributed stateful application distributed across data center nodes and fault domains.
    10. Fault domains are points of failure, something the Fabric Controller needs to understand well, since controlling failure conditions one of its primary operational goals.
    11. There are many running instances of the Fabric Controller in a data center.
    12. After all, there needs to be redundancy everywhere, not the least of which is the Fabric Controller instances.

    The Fabric Controller is running the data center

    hmaru2zu
    1. The fabric controller deploys host operating systems to the hardware in a data center.
    2. It uses a PXE boot server approach and then adds all the need components that makes up an Azure host machine.
    3. Sysprep, which has been around for many years, is a tool used by system administrators to automate the deployment of operating systems.
      • The fabric controller uses this tool.
      • The fabric controller takes that mundane chore out of system administrator's to-do list.
    4. The fabric controller works with a special service that is installed on each Windows Azure host machine.
      • Note the black boxes labeled Special Azure Host Service.
    5. This special service is a mini state machine, tracking two things: the current state of the server and the goal state.
    6. A goal state might be to run a worker role.
      • A worker role is a long running background process.
      • But the goal state could be to host a web role.
        • A web role is a process running within Internet Information Server (IIS).
      • It might also be to remain idle as part of the free inventory of host machines.
    7. The Fabric Controller and this special service manage how the system gets to the goal state from the current state.
    8. If the host machine ever reaches the undesirable faulted state, the fabric controller and the special host service must work together to get to the goal state
      • This might mean forcing a reboot or reprovisioning the entire software stack on the faulted machine.
    9. Under PaaS the developer rarely needs to telnet into the server.
      • Instead the developer communicates to the fabric controller through configuration files.
      • The developer defines operational parameters through configuration files that are part of the Visual Studio project setup files.
        • Developers can indicate such things as operating system, CPU size, instance count, and open endpoints.
      • The fabric controller must know these parameters when it deploys your application to Azure host machines.
    10. During the provisioning process, the fabric controller uses machine learning techniques to take into account the probability of failure, given where an application is deployed, relative to the rack, router and switch placement in a data center.
    11. Azure breaks down a data center into various update and fault domains, which are statistically managed methods to minimize failure.
    12. There are multiple copies of the fabric controller running inside a Microsoft data center.
    13. The Azure machines that host applications in Microsoft data centers are known as nodes to the fabric controller.
    14. The state of each node is replicated and synchronized across all the redundant fabric controllers, ensuring that all state tracking is 100% up to date among all fabric controllers in a data center.
    15. If any of the "fabric controllers" go down, all existing services will still continue to run.

    It slices, it dices – but that’s not all

    007
    1. The fabric controller protects developers from all sorts of hazards.
      • Regardless of whether the error is in software or hardware, the fabric controller can keep applications up and running, even during upgrades, patches, and updates.
    2. Increase/Decrease Scale
      • With PaaS, the fabric controller also helps tremendously with increasing and decreasing scale. There are many ways to communicate with the Fabric controller, although never directly, to tell it to scale up more instances of your application.
        • One way is with the Windows Azure Portal, where the instance count for a particular deployment can be increased or decreased.
        • There are also frameworks that can automatically change scale based on some performance counter.
        • Microsoft has also released a series of PowerShell cmdlets to support automation through scripting.
        • A RESTful management API also exists to support adjustable scale.
    3. The Fabric Controller can do upgrades with the utmost of grace, keeping your application up and running throughout.
    4. The fabric controller also performs "rolling upgrades", allowing your deployments to be upgraded or patched without downtime.
    5. The core value of PaaS is that it lowers risk and saves money.
      • PaaS is more economical simply because there is more automation and fewer areas where developers can make mistakes.
      • Fewer mistakes occur because PaaS applications tend to be more standardized and more homogeneous
        • Integration with other systems is generally easier.
    6. Lower Risk (Key Point)
      • PaaS architectures also lower risk because the fabric controller is always monitoring uptime and will restart failed instances automatically.
    7. Some Guarantees
      • With PaaS Microsoft offers a SLA of 99.95%.
    8. Of course some downsides do exist.
      • There are two primary downsides to PaaS as a way to architect applications.
        • First is the fact that there is less architectural flexibility as compared to directly managing VMs, where developers can install practically anything.
    9. Converting to PaaS from other architectures often takes re-writes, although much of the code can often be re-used.
      • The other downside to PaaS is that there is more vendor lock in.
        • Essentially, you are writing to the PaaS specification as defined by Microsoft.
    10. The Windows Azure Storage Service works with both PaaS and IaaS technologies
      • Microsoft provides a lot of data storage options for developers using Windows Azure.
        • First, there is SQL Database, formerly known as SQL Azure Database, which enables organizations to leverage familiar tools and the power of Microsoft SQL Server technology.
        • Outside the relational world are NoSQL-like capabilities, such as Azure Tables which offer virtually unlimited scaling capabilities at a low cost.
        • Blobs provide inexpensive storage for collections of large single large binary objects, such data such as video, audio, and images.
      • All data is replicated 3 times.
    11. Run almost any database supported by Windows and Linux
      • Windows Azure also offers the ability to run SQL Server in a virtual machine on Windows Azure.
      • Using Microsoft’s IaaS offering, developers can host both Windows and Linux based database software systems.
        • IaaS technologies do not have a fabric controller But the downside there are no guarantees about database availability.

    Fabric – A data center ruled by robots

    008
    1. One way to think about the cloud is that it is composed of various fabrics
    2. Fabrics are clusters or racks of computers with an intelligent robot doing the management
    3. One fabric could be the web fabric
      • This fabric focuses on making web roles available
    4. Another fabric could be the data fabric.
      • Developers should choose from an array of data options
    5. All the fabrics discussed represent ways to use compute and storage resources flexibly and at scale
      • The metaphor would be the electrical plant that needs to spin up new power generators if demand for electricity increases.

    A collection of background processes

    009
    1. You can visualize your background processes as a bunch of worker roles (or worker processes) running on some VM of your choice.
      • You may choose from various flavors of Windows and Linux
    2. You may want options in terms of the programming languages.
      • Use C#, Java, Python, F#, including almost any Linux-based implementation

    The Fabric Controller at work

    010
    1. Platform as a Service involves a sophisticated Fabric controller as explained previously.
    2. Currently, Azure does not support PaaS functionality for Linux.
      1. Notice the VMs are Windows

    IaaS – Windows or Linux

    011
    1. Notice this represents the IaaS offerings
    2. Recall from the previous points raised that this does not have fabric controller to automate routine tasks


    The Azure Storage Service is available to IaaS and PaaS
    012
    1. The takeaway on this slide is that there a huge amount of data options with Azure

    And the winner is…

    013
    1. This post had 3 goals:
      • PaaS is the future because it makes business sense
        • Fewer errors, greater standardization, easier to scale, greater automation, better economics, more fault tolerant.
          image
      • IaaS is more flexible but more labor intensive.
        • Developers are currently more comfortable and familiar with IaaS
        • IaaS is easier when migrating to the cloud
      • At the end of the day, PaaS is the way to go.
        • The level of automation provided by the Fabric Controller is the key to its future success.

    lahxjo2d[3]



    Page 1 of 1 (3 items)
    Leave a Comment
    • Please add 7 and 7 and type the answer here:
    • Post