Thursday, 28 October 2010

Running the Show: Configuration Management with Chef: RailsConf 2009 - O'Reilly Conferences, May 04 - 07, 2009, Las Vegas, NV!

RUNNING THE SHOW: CONFIGURATION MANAGEMENT WITH CHEF

Edd Dumbill (O'Reilly Media, Inc. )
Tutorial
Location: Pavilion 2 - 3

Few completed Rails apps are architecturally simple. As soon as you grow, you find yourself using multiple subsystems and machines to scale. Cloud-based environments such as EC2 make this an attractive and cost-efficient option, but create new headaches in configuration management.

Chef is the latest development in open source systems integration, a powerful Ruby-based framework for managing servers in a way that integrates tightly with your applications and infrastructure. As developers become increasingly responsible for operations, Chef lets you manage your servers by writing code, not running commands.

In this tutorial we cover:

  • Your first Chef cookbook
  • Chef concepts such as nodes, cookbooks and nodes
  • Anatomy of a cookbook
  • Storing and versioning your cookbooks
  • What happens when you run Chef
  • Using Chef’s Web UI
  • Configuring per-instance data using JSON
  • Lightweight configuration with Chef Solo
  • What comes for free: managing Apache, Ubuntu, MySQL and friends
  • Chef for Rails apps
  • Setting up your Rails environment
  • Deploying your application: Chef vs Capistrano

Wednesday, 27 October 2010

From Zero to the Cloud with Todd Deshane and Patrick F. Wilbur � Linux, Todd, Open, LISA, Patrick, Cloud � USENIX Update

From Zero to the Cloud with Todd Deshane and Patrick F. Wilbur � Linux, Todd, Open, LISA, Patrick, Cloud � USENIX Update
Todd Deshane: Sure. I’m a recent graduate from Clarkson University, where I got a Ph.D in Engineering Science; I’ve been a member of xen.orgcommunity for quite sometime, basically ever since it came out.
Patrick Wilbur: I’m a graduate student, Ph.D in Computer Science at Clarkson University, I’ve been involved with Xen for a couple of years, and this is related to the research that I’ve been doing at the university, and with Todd we are both co-authors of the book “Running Xen: A Hands-on Guide to the Art of Virtualization”.

MD: You mentioned your book; I’m curious how did you guys end up writing a book? Can you talk about your experience in doing that?
TD: Since we were involved with Xen in our research and published a paper right after Xen came out, the publishing company thought that we were the best ones to write this book external to the group at Cambridge that developed Xen, so they contacted our advisor Jeanna Matthews and a group of people from our lab were interested to work on this and write the book. This is how it all started.

MD:There are seven co-authors to your book; how did you collaborate with so many people working on this?
TD: It is a lot of work to write a book. We spent a lot of time working on this, and split the chapters based on the expertise each one of us had in different areas. Of course later we had to get together and read each others chapters and make it a uniform book. This was challenging as there was quite a large group of people involved.
PW: As Todd mentioned, it was definitely not easy, but it was really a good experience, working with a great group of people.

MD: You have a training class this year at LISA “Introduction to the Open Source Xen Hypervisor”; can you briefly tell us what will this cover; also how is it different from your previous trainings at LISA?
TD: Me and Patrick presented first this material at LISA’08, and this was at that time heavily based on the book, because the book itself is a hands-on guide for new users, for people that don’t have experience with Xen and we would basically take you from zero to running virtualization in your datacenter. This year we updated the content to the current times and extended it to the cloud technologies where people are using virtualization to run their public and private clouds, and many times a hybrid mode between them. Also we’ve added the Xen Cloud Platform that is also new; we’re still going from zero to virtualization, but this time we are going from zero to the cloud.
PW: Also, I would like to add that one of the neat things of this version of our class will bring in new technologies like the cloud computing, and this is relevant even for system administrators that have only a few machines (even if they don’t administer a cloud it is very valuable to understand it as consumers) but also for the enterprise administrators that use virtualization a lot even if they don’t use the term cloud, but will find platforms like Xen Cloud Platform very interesting.


MD: You guys also have a BOF:
“Open Source and Open Standards-based Cloud Computing”. Can you talk about that a little?
TD: What is great about the BOF is that it will be an extension of our tutorial. This means that if you were in our session you will be in the right spot; if you haven’t, still you’re in a great spot because we are going to cover the basics for the Xen Cloud Platform again to make sure everyone is on the same page. Also we are going to have Ben Pfaff from Nicira Networks and he’s going to talk about Open vSwitch and what they are doing to take network virtualization to the next level; Jason Faulkner from Rackspace will talk about OpenStack and their efforts to create an open standards for cloud computing.

MD:You mentioned OpenStack; another similar project would be Eucalyptus. Such abstractions are built on top of the virtualization layer and hide many things to the administrator; is it still relevant to have a basic Xen understanding and knowledge?
TD: The main reason why we started teaching about Xen it was because it was difficult to setup and use, it wasn’t polished, it wasn’t quite user friendly; it was not the product it is today. Nowadays people spend less time getting it to work, and the focus is on different levels of the stack and using them, and we’ve updated our tutorial to take this into consideration. We still teach you all the things you need in case you have to debug it.

MD: We’ve seen a lot of traction related to KVM; many distros have switched to KVM instead of Xen. Why do you think that happened?
TD: The basic reason why KVM got popular quickly is because it is a simple Linux virtualization system that is integrated into the kernel itself. It relies on Linux and QEMU and it is not a stand-alone hypervisor. The reason why many Linux distributions currently have KVM support and not necessarily Xen support is that KVM is fully integrated in the mainline kernel (it comes with the Linux kernel). Xen domain0 support (Linux as the Xen management domain is in progress), but Xen (the hypervisor) is not intended to be included in Linux, but is a stand-alone hypervisor, which allows for various management domains to run on top of it (for example, Linux, Solaris, BSD). Linux distributions will (and many already are) starting to add Xen support back into the their standard distributions.


MD: You guys will be busy with a class and a BOF; I’m curious if you come to LISA just for teaching those, or if you stay around for other talks?
PW: I will be there for the whole week and will attend several different sessions. Actually I will be sticking around after LISA also for CHIMIT 2010, that will be located in the same area as this is a good opportunity to attend both conferences.
TD: Unfortunately myself, I will not be able to stay all the week, but I would have liked to been able to attend some of the many great talks, but I will not be able to do it this year.

MD: What other interesting things are you working on these days?
TD: I’m doing some interesting work these days in a consulting project, where we are taking their Xen deployment more into the cloud dynamic type of environment: hadoop clustering, Xen Cloud Platform, OpenStack, puppet are things that we are working on, setting up hybrid cloud deployments with public clouds like amazon, rackspace, and private clouds. I’m also working on a very interesting research project where we are trying to combine an organization’s mission space with cyber space. Finally, I’ve been spending more time helping the xen.org community and I will be taking on the role of Technology Evangelist for Citrix/Xen.org. We are also looking to hire a new community manager for xen.org.
PW: I’m looking into the usable security space, where human computer interaction meets security and actually I’m working with virtualization to segregate users applications into different privilege spaces and isolate various applications. Related to this I’m also hosting another BOF at the end of the week on Thursday“Human-Computer Interaction: Experiences and Difficulties in IT Management, Security, and Privacy” that should be interesting to meet and exchange ideas with different people in the usable security space.


Tuesday, 26 October 2010

Google search index splits with MapReduce • The Register

Google search index splits with MapReduce

Welds BigTable to file system 'Colossus'
Exclusive Google Caffeine — the remodeled search infrastructure rolled out across Google's worldwide data center network earlier this year — is not based on MapReduce, the distributed number-crunching platform that famously underpinned the company's previous indexing system. As the likes of Yahoo!, Facebook, and Microsoft work to duplicate MapReduce through the open source Hadoop project, Google is moving on.
According to Eisar Lipkovitz, a senior director of engineering at Google, Caffeine moves Google's back-end indexing system away from MapReduce and onto BigTable, the company's distributed database platform.
As Google's Matt Cutts told us last year, the new search infrastructure also uses an overhaul of the company's GFS distributed file system. This has been referred to as Google File System 2 or GFS2, but inside Google, Lipkovitz says, it's known as Colossus.
Caffeine expands on BigTable to create a kind of database programming model that lets the company make changes to its web index without rebuilding the entire index from scratch. "[Caffeine] is a database-driven, Big Table–variety indexing system," Lipkovitz tells The Reg, saying that Google will soon publish a paper discussing the system. The paper, he says, will be delivered next month at the USENIX Symposium on Operating Systems Design and Implementation (OSDI).
Before the arrival of Caffeine, Google built its search index — an index of the entire web — using MapReduce. In essence, the index was created by a sequence of batch operations. The MapReduce platform "maps" data-crunching tasks across a collection of distributed machines, splitting them into tiny sub-tasks, before "reducing" the results into one master calculation.
MapReduce would receive the epic amounts of webpage data collected by Google's crawlers, and it would crunch this down to the links and metadata needed to actually search these pages. Among so many other things, it would determine each site's PageRank, the site's relationship to all the other sites on the web.
"We would start with a very large [collection of data] and we would process it," Lipkovitz tells us. "Then, eight hours or so later, we'd get the output of this whole process and we'd copy it to our serving systems. And we did this continuously."
But MapReduce didn't allow Google to update its index as quickly as it would like. In the age of the "real-time" web, the company is determined to refresh its index within seconds. Over the last few years, MapReduce has received ample criticism from the likes of MIT database guru Mike Stonebraker, and according to Lipkovitz, Google long ago made "similar observations." MapReduce, he says, isn't suited to calculations that need to occur in near real-time.
MapReduce is a sequence of batch operations, and generally, Lipkovitz explains, you can't start your next phase of operations until you finish the first. It suffers from "stragglers," he says. If you want to build a system that's based on series of map-reduces, there's a certain probability that something will go wrong, and this gets larger as you increase the number of operations. "You can't do anything that takes a relatively short amount of time," Lipkovitz says, "so we got rid of it."
With Caffeine, Google can update its index by making direct changes to the web map already stored in BigTable. This includes a kind of framework that sits atop BigTable, and Lipkovitz compares it to old-school database programming and the use of "database triggers."
"It's completely incremental," he says. When a new page is crawled, Google can update its index with the necessarily changes rather than rebuilding the whole thing.
Previously, Google's index was separated into layers, and some layers updated faster than others. The main layer wouldn't be updated for about two weeks. "To refresh a layer of the old index, we would analyze the entire web, which meant there was a significant delay between when we found a page and made it available to you," Google said in a blog post when Caffeine was rolled out.
"With Caffeine, we analyze the web in small portions and update our search index on a continuous basis, globally. As we find new pages, or new information on existing pages, we can add these straight to the index. That means you can find fresher information than ever before — no matter when or where it was published."
There's also a "compute framework," Lipkovitz says, that lets engineers execute code atop BigTable. And the system is underpinned by Colossus, the distributed storage platform also known as GFS2. The original Google File System, he says, didn't scale as well as the company would like.
Colossus is specifically designed for BigTable, and for this reason it's not as suited to "general use" as GFS was. In other words, it was built specifically for use with the new Caffeine search-indexing system, and though it may be used in some form with other Google services, it isn't the sort of thing that's designed to span the entire Google infrastructure.
At Wednesday's launch of Google Instant, a new incarnation of Google's search engine that updates search results as you type, Google distinguished engineer Ben Gomes told The Reg that Caffeine was not built with Instant in mind, but that it helped deal with the added load placed on the system by the "streaming" search service.
Lipkovitz makes a point of saying that MapReduce is by no means dead. There are still cases where Caffeine uses batch processing, and MapReduce is still the basis for myriad other Google services. But prior the arrival of Caffeine, the indexing system was Google's largest MapReduce application, so use of the platform has been significantly, well, reduced.
In 2004, Google published research papers on GFS and MapReduce that became the basis for the open source Hadoop platform now used by Yahoo!, Facebook, and — yes — Microsoft. But as Google moves beyond GFS and MapReduce, Lipkovitz stresses that he is "not claiming that the rest of the world is behind us."
"We're in business of making searches useful," he says. "We're not in the business of selling infrastructure." ®

Dawn of a New Day « Ray Ozzie

Dawn of a New Day « Ray Ozzie

Dawn of a New Day

To:           Executive Staff and direct reports
Date:         October 28, 2010
From:         Ray Ozzie
Subject:      Dawn of a New Day
Five years ago, having only recently arrived at the company, I wrote The Internet Services Disruption in order to kick off a major change management process across the company. In the opening section of that memo, I noted that about every five years our industry experiences what appears to be an inflection point that results in great turbulence and change.
In the wake of that memo, the last five years has been a time of great transformation for Microsoft. At this point we’re truly all in with regard to services. I’m incredibly proud of the people and the work that has been done across the company, and of the way that we’ve turned this services transformation into opportunities that will pay off for years to come.
In the realm of the service-centric ‘seamless OS’ we’re well on the path to having Windows Live serve as an optional yet natural services complement to the Windows and Office software. In the realm of ‘seamless productivity’, Office 365 and our 2010 Office, SharePoint and Live deliverables have shifted Office from being PC-centric toward now also robustly spanning the web and mobile. In ‘seamless entertainment’, Xbox Live has transformed Xbox into a real-time, social, media-rich TV experience.
And in the realm of what I referred to as our ‘services platform’, I couldn’t be more proud of what’s emerged as Windows Azure & SQL Azure. Inspired by little more than a memo, a few decks and discussions, intrapreneurial leaders stepped up to build and deliver an innovative service that, while still nascent, will over time prove to be transformational for the company and the industry.
Our products are now more relevant than ever. Bing has blossomed and its advertising, social, metadata & real-time analytics capabilities are growing to power every one of our myriad services offerings. Over the years the Windows client expanded its relevance even with the rise of low-cost netbooks. Office expanded its relevance even with a shift toward open data formats & web-based productivity. Our server assets have had greater relevance even with a marked shift toward virtualization & cloud computing.
Quite important to me, I’m also quite proud of the degree to which we’ve continued to grow and mature in the area of responsible competition, and the breadth and depth of our cultural shift toward genuine openness, interoperability and privacy which are now such key cornerstones of everything we do.
Yet, for all our great progress, some of the opportunities I laid out in my memo five years ago remain elusive and are yet to be realized.
Certain of our competitors’ products and their rapid advancement & refinement of new usage scenarios have been quite noteworthy. Our early and clear vision notwithstanding, their execution has surpassed our own in mobile experiences, in the seamless fusion of hardware & software & services, and in social networking & myriad new forms of internet-centric social interaction.
We’ve seen agile innovation playing out before a backdrop in which many dramatic changes have occurred across all aspects of our industry’s core infrastructure. These myriad evolutions of our infrastructure have been predicted for years, but in the past five years so much has happened that we’ve grown already to take many of these changes for granted: Ubiquitous internet access over wired, WiFi and 3G/4G networks; many now even take for granted that LTE and ‘whitespace’ will be broadly delivered. We’ve seen our boxy devices based on ‘system boards’ morph into sleek elegantly-designed devices based on transformational ‘systems on a chip’. We’ve seen bulky CRT monitors replaced by impossibly thin touch screens. We’ve seen business processes and entire organizations transformed by the zero-friction nature of the internet; the walls between producer and consumer having now vanished. Substantial business ecosystems have collapsed as many classic aggregation & distribution mechanisms no longer make sense.
Organizations worldwide, in every industry, are now stepping back and re-thinking the basics; questioning their most fundamental structural tenets. Doing so is necessary for their long-term growth and survival. And our own industry is no exception, where we must question our most fundamental assumptions about infrastructure & apps.
The past five years have been breathtaking. But the next five years will bring about yet another inflection point – a transformation that will once again yield unprecedented opportunities for our company and our industry catalyzed by the huge & inevitable shift in apps & infrastructure that’s truly now just begun.
Imagining A “Post-PC” World
One particular day next month, November 20th 2010, represents a significant milestone. Those of us in the PC industry who placed an early bet on a then-nascent PC graphical UI will toast that day as being the 25th anniversary of the launch of Windows 1.0.
Our journey began in support of audacious concepts that were originally just imagined and dreamed: A computer that’s ‘personal’. Or, a PC on every desktop and in every home, running Microsoft software.
Windows may not have been the first graphical UI on a personal computer, but over time the product unquestionably democratized computing & communications for more than a billion people worldwide. Windows and Office truly grew to define the PC; establishing the core concepts and usage scenarios that for so many of us, over time, have become etched in stone.
For the most part, we’ve grown to perceive of ‘computing’ as being equated with specific familiar ‘artifacts’ such as the ‘computer’, the ‘program’ that’s installed on a computer, and the ‘files’ that are stored on that computer’s ‘desktop’. For the majority of users, the PC is largely indistinguishable even from the ‘browser’ or ‘internet’.
As such, it’s difficult for many of us to even imagine that this could ever change.
But as the PC client and PC-based server have grown from their simple roots over the past 25 years, the PC-centric / server-centric model has accreted simply immense complexity. This is a direct by-product of the PC’s success: how broad and diverse the PC’s ecosystem has become; how complex it’s become to manage the acquisition & lifecycle of our hardware, software, and data artifacts. It’s undeniable that some form of this complexity is readily apparent to most all our customers: your neighbors; any small business owner; the ‘tech’ head of household; enterprise IT.
Success begets product requirements. And even when superhuman engineering and design talent is applied, there are limits to how much you can apply beautiful veneers before inherent complexity is destined to bleed through.
Complexity kills. Complexity sucks the life out of users, developers and IT. Complexity makes products difficult to plan, build, test and use. Complexity introduces security challenges. Complexity causes administrator frustration.
And as time goes on and as software products mature – even with the best of intent – complexity is inescapable.
Indeed, many have pointed out that there’s a flip side to complexity: in our industry, complexity of a successful product also tends to provide some assurance of its longevity. Complex interdependencies and any product’s inherent ‘quirks’ will virtually guarantee that broadly adopted systems won’t simply vanish overnight. And so long as a system is well-supported and continues to provide unique and material value to a customer, even many of the most complex and broadly maligned assets will hold their ground. And why not? They’re valuable. They work.
But so long as customer or competitive requirements drive teams to build layers of new function on top of a complex core, ultimately a limit will be reached. Fragility can grow to constrain agility. Some deep architectural strengths can become irrelevant – or worse, can become hindrances.
Our PC software has driven the creation of an amazing ecosystem, and is incredibly valuable to a world of customers and partners. And the PC and its ecosystem is going to keep growing, and growing, for a long time to come. But today, as I wrote five years ago, ”Just as in the past, we must reflect upon what’s going on around us, and reflect upon our strengths, weaknesses and industry leadership responsibilities, and respond. As much as ever, it’s clear that if we fail to do so, our business as we know it is at risk.”
And so at this juncture, given all that has transpired in computing and communications, it’s important that all of us do precisely what our competitors and customers will ultimately do: close our eyes and form a realistic picture of what a post-PC world might actually look like, if it were to ever truly occur. How would customers accomplish the kinds of things they do today? In what ways would it be better? In what ways would it be worse, or just different?
Those who can envision a plausible future that’s brighter than today will earn the opportunity to lead.
In our industry, if you can imagine something, you can build it. We at Microsoft know from our common past – even the past five years – that if we know what needs to be done, and if we act decisively, any challenge can be transformed into a significant opportunity. And so, the first step for each of us is to imagine fearlessly; to dream.
Continuous Services | Connected Devices
What’s happened in every aspect of computing & communications over the course of the past five years has given us much to dream about. Certainly the ‘net-connected PC, and PC-based servers, have driven the creation of an incredible industry and have laid the groundwork for mass-market understanding of so much of what’s possible with ‘computers’. But slowly but surely, our lives, businesses and society are in the process of a wholesale reconfiguration in the way we perceive and apply technology.
As we’ve begun to embrace today’s incredibly powerful app-capable phones and pads into our daily lives, and as we’ve embraced myriad innovative services & websites, the early adopters among us have decidedly begun to move away from mentally associating our computing activities with the hardware/software artifacts of our past such as PC’s, CD-installed programs, desktops, folders & files.
Instead, to cope with the inherent complexity of a world of devices, a world of websites, and a world of apps & personal data that is spread across myriad devices & websites, a simple conceptual model is taking shape that brings it all together. We’re moving toward a world of 1) cloud-based continuous services that connect us all and do our bidding, and 2) appliance-like connected devices enabling us to interact with those cloud-based services.
Continuous services are websites and cloud-based agents that we can rely on for more and more of what we do. On the back end, they possess attributes enabled by our newfound world of cloud computing: They’re always-available and are capable of unbounded scale. They’re constantly assimilating & analyzing data from both our real and online worlds. They’re constantly being refined & improved based on what works, and what doesn’t. By bringing us all together in new ways, they constantly reshape the social fabric underlying our society, organizations and lives. From news & entertainment, to transportation, to commerce, to customer service, we and our businesses and governments are being transformed by this new world of services that we rely on to operate flawlessly, 7×24, behind the scenes.
Our personal and corporate data now sits within these services – and as a result we’re more and more concerned with issues of trust & privacy. We most commonly engage and interact with these internet-based sites & services through the browser. But increasingly, we also interact with these continuous services through apps that are loaded onto a broad variety of service-connected devices – on our desks, or in our pockets & pocketbooks.
Connected devices beyond the PC will increasingly come in a breathtaking number of shapes and sizes, tuned for a broad variety of communications, creation & consumption tasks. Each individual will interact with a fairly good number of these connected devices on a daily basis – their phone / internet companion; their car; a shared public display in the conference room, living room, or hallway wall. Indeed some of these connected devices may even grow to bear a resemblance to today’s desktop PC or clamshell laptop. But there’s one key difference in tomorrow’s devices: they’re relatively simple and fundamentally appliance-like by design, from birth. They’re instantly usable, interchangeable, and trivially replaceable without loss. But being appliance-like doesn’t mean that they’re not also quite capable in terms of storage; rather, it just means that storage has shifted to being more cloud-centric than device-centric. A world of content – both personal and published – is streamed, cached or synchronized with a world of cloud-based continuous services.
Moving forward, these ‘connected devices’ will also frequently take the form of embedded devices of varying purpose including telemetry & control. Our world increasingly will be filled with these devices – from the remotely diagnosed elevator, to the sensors on our highways and throughout our environment. These embedded devices will share a key attribute with non-embedded UI-centric devices: they’re appliance-like, easily configured, interchangeable and replaceable without loss.
At first blush, this world of continuous services and connected devices doesn’t seem very different than today. But those who build, deploy and manage today’s websites understand viscerally that fielding a truly continuous service is incredibly difficult and is only achieved by the most sophisticated high-scale consumer websites. And those who build and deploy application fabrics targeting connected devices understand how challenging it can be to simply & reliably just ‘sync’ or ‘stream’. To achieve these seemingly simple objectives will require dramatic innovation in human interface, hardware, software and services.
How It Might Happen
From the perspective of living so deeply within the world of the device-centric software & hardware that we’ve collectively created over the past 25 years, it’s understandably difficult to imagine how a dramatic, wholesale shift toward this new continuous services + connected devices model would ever plausibly gain traction relative to what’s so broadly in use today. But in the technology world, these industry-scoped transformations have indeed happened before. Complexity accrues; dramatically new and improved capabilities arise.
Many years ago when the PC first emerged as an alternative to the mini and mainframe, the key facets of simplicity and broad approachability were key to its amazing success. If there’s to be a next wave of industry reconfiguration – toward a world of internet-connected continuous services and appliance-like connected devices – it would likely arise again from those very same facets.
It may take quite a while to happen, but I believe that in some form or another, without doubt, it will.
For each of us who can clearly envision the end-game, the opportunity is to recognize both the inevitability and value inherent in the big shift ahead, and to do what it takes to lead our customers into this new world.
In the short term, this means imagining the ‘killer apps & services’ and ‘killer devices’ that match up to a broad range of customer needs as they’ll evolve in this new era. Whether in the realm of communications, productivity, entertainment or business, tomorrow’s experiences & solutions are likely to differ significantly even from today’s most successful apps. Tomorrow’s experiences will be inherently transmedia & trans-device. They’ll be centered on your own social & organizational networks. For both individuals and businesses, new consumption & interaction models will change the game. It’s inevitable.
To deliver what seems to be required – e.g. an amazing level of coherence across apps, services and devices – will require innovation in user experience, interaction model, authentication model, user data & privacy model, policy & management model, programming & application model, and so on. These platform innovations will happen in small, progressive steps, providing significant opportunity to lead. In adapting our strategies, tactics, plans & processes to deliver what’s required by this new world, the opportunity is simply huge.
The one irrefutable truth is that in any large organization, any transformation that is to ‘stick’ must emerge from within. Those on the outside can strongly influence, particularly with their wallets. Those above are responsible for developing and articulating a compelling vision, eliminating obstacles, prioritizing resources, and generally setting the stage with a principled approach.
But the power and responsibility to truly effect transformation exists in no small part at the edge. Within those who, led or inspired, feel personally and collectively motivated to make; to act; to do.
In taking the time to read this, most likely it’s you.
Realizing a Dream
In 1939, in New York City, there was an amazing World’s Fair. It was called ‘the greatest show of all time’.
In that year Americans were exhausted, having lived through a decade of depression. Unemployment still hovered above 17%. In Europe, the next world war was brewing. It was an undeniably dark juncture for us all.
And yet, this 1939 World’s Fair opened in a way that evoked broad and acute hope: the promise of a glorious future. There were pavilions from industry & countries all across the world showing vision; showing progress: The Futurama; The World of Tomorrow. Icons conjuring up images of the future: The Trylon; The Perisphere.
The fair’s theme: Dawn of a New Day.
Surrounding the event, stories were written and vividly told to help everyone envision and dream of a future of modern conveniences; superhighways & spacious suburbs; technological wonders to alleviate hardship and improve everyday life.
The fair’s exhibits and stories laid a broad-based imprint across society of what needed to be done. To plausibly leap from such a dark time to such a potentially wonderful future meant having an attitude, individually and collectively, that we could achieve whatever we set our minds to. That anything was possible.
In the following years – fueled both by what was necessary for survival and by our hope for the future – manufacturing jumped 50%. Technological breakthroughs abounded. What had been so hopefully and optimistically imagined by many, was achieved by all.
And, as their children, now we’re living their dreams.
Today, in my own dreams, I see a great, expansive future for our industry and for our company – a future of amazing, pervasive cloud-centric experiences delivered through a world of innovative devices that surround us.
Without a doubt, as in 1939 there are conditions in our society today that breed uncertainty: jobs, housing, health, education, security, the environment. And yes, there are also challenging conditions for our company: it’s a tough, fast-moving, and highly competitive environment.
And yet, even in the presence of so much uncertainty, I feel an acute sense of hope and optimism.
When I look forward, I can’t help but see the potential for a much brighter future: Even beyond the first billion, so many more people using technology to improve their lives, businesses and societies, in so many ways. New apps, services & scenarios in communications, collaboration & productivity, commerce, education, health care, emergency management, human services, transportation, the environment, security – the list goes on, and on, and on.
We’ve got so far to go before we even scratch the surface of what’s now possible. All these new services will be cloud-centric ‘continuous services’ built in a way that we can all rely upon. As such, cloud computing will become pervasive for developers and IT – a shift that’ll catalyze the transformation of infrastructure, systems & business processes across all major organizations worldwide. And all these new services will work hand-in-hand with an unimaginably fascinating world of devices-to-come. Today’s PC’s, phones & pads are just the very beginning; we’ll see decades to come of incredible innovation from which will emerge all sorts of ‘connected companions’ that we’ll wear, we’ll carry, we’ll use on our desks & walls and the environment all around us. Service-connected devices going far beyond just the ‘screen, keyboard and mouse’: humanly-natural ‘conscious’ devices that’ll see, recognize, hear & listen to you and what’s around you, that’ll feel your touch and gestures and movement, that’ll detect your proximity to others; that’ll sense your location, direction, altitude, temperature, heartbeat & health.
Let there be no doubt that the big shifts occurring over the next five years ensure that this will absolutely be a time of great opportunity for those who put past technologies & successes into perspective, and envision all the transformational value that can be offered moving forward to individuals, businesses, governments and society. It’s the dawn of a new day – the sun having now arisen on a world of continuous services and connected devices.
And so, as Microsoft has done so successfully over the course of the company’s history, let’s mark this five-year milestone by once again fearlessly embracing that which is technologically inevitable – clearing a path to the extraordinary opportunity that lies ahead for us, for the industry, and for our customers.
Ray

Saturday, 23 October 2010

Writing Parsers in Ruby using Treetop

Writing Parsers in Ruby using Treetop: "
treetop.pngTreetop is one of the most underrated, yet powerful, Ruby libraries out there. If you want to write a parser, it kicks ass. The only problem is unless you're into reading up about and playing with parsers, it's not always obvious how to get going with them, or Treetop in particular. Luckily Aaron Gough, Toronto-based Ruby developer, comes to our rescue with some great blog posts.

Aaron, who has a passion for messing around with parsers and language implementations, recently released Koi - a pure Ruby implementation of a language parser, compiler, and virtual machine. If you're ready to dive in at the deep end, the code for Koi makes for good reading.

Starting more simply, though, is Aaron's latest blog post: A quick intro to writing a parser with Treetop. In the post, he covers building a 'parsing expression grammar' (PEG) for a basic Lisp-like language from start to finish - from installing the gem, through to building up a desired set of results. It's a great walkthrough and unless you're already au fait with parsers, you'll pick something up.

If thinking of 'grammars' and Treetop is enough to make your ears itch, though, check out Aaron's sister article: Writing an S-Expression parser in Ruby. On the surface, this sounds like the same thing as the other one, except that this is written in pure Ruby with no Treetop involvement. But while pure Ruby is always nice to see, it's a stark reminder of how much a library like Treetop offers us.

[ad] Check out Rails Cloud Hosting from Joyent. You can get started from a mere 83 cents per day and you get free bandwidth and persistent local storage with a 100% SLA.


"

The CAP Theorem... Again

The CAP Theorem... Again: "
Today looks to be (again) the day of the CAP theorem[1][2], so let’s do a quick summary:


  1. We had Coda Hale’s ☞ You can’t sacrifice partition tolerance:


    Of the CAP theorem’s Consistency, Availability, and Partition Tolerance, Partition Tolerance is mandatory in distributed systems. You cannot not choose it. Instead of CAP, you should think about your availability in terms of yield (percent of requests answered successfully) and harvest (percent of required data actually included in the responses) and which of these two your system will sacrifice when failures happen.



  2. Jeff Darcy followed up with ☞ Another CAP article:


    It seems to me that there is a consensus emerging. Even if Gilbert and Lynch only formally proved a narrower version of Brewer’s original conjecture, that conjecture and the tradeoffs it implies are still alive and well and highly relevant to the design of real working systems that serve real business needs.


    and ☞ Reactions to Coda’s CAP post:


    The last point is whether CAP really boils down to “two out of three” or not. Of course not, even though I’ve probably said that myself a couple of times. The reason is merely pedagogical. It’s a pretty good approximation, much like teaching Newtonian physics or ideal gases in chemistry. You have to get people to understand the basic shape of things before you start talking about the exceptions and special cases, and “two out of three” is a good approximation. Sure, you can trade off just a little of one for a little of another instead of purely either/or, but only after you thoroughly understand and appreciate why the simpler form doesn’t suffice. The last thing we need is people with learner’s permits trying to build exotic race cars. They just give the doubters and trolls more ammunition with which to suppress innovation.



  3. Henry Robinson’s ☞ CAP Confusion: Problems with ‘partition tolerance’ popped up too:


    Not ‘choosing’ P is analogous to building a network that will never experience multiple correlated failures. This is unreasonable for a distributed system – precisely for all the valid reasons that are laid out in the CACM post about correlated failures, OS bugs and cluster disasters – so what a designer has to do is to decide between maintaining consistency and availability. Dr. Stonebraker tells us to choose consistency, in fact, because availability will unavoidably be impacted by large failure incidents. This is a legitimate design choice, and one that the traditional RDBMS lineage of systems has explored to its fullest, but it implicitly protects us neither from availability problems stemming from smaller failure incidents, nor from the high cost of maintaining sequential consistency.



  4. Many of the above articles were referring to Michael Stonebraker’s ☞ Errors in Database Systems, Eventual Consistency, and the CAP Theorem:


    In summary, one should not throw out the C so quickly, since there are real error scenarios where CAP does not apply and it seems like a bad tradeoff in many of the other situations.


So, we pretty much went full circle. I just hope that Eric Brewer will do ☞ follow up:


I really need to write an updated CAP theorem paper




  1. Michael Stonebraker’s clarifications on the CAP theorem and the older but related Daniel Abadi’s Problems with CAP
    (↩)
  2. Nati Shalom’s ☞ NoCAP and my own NoCAP… is wrong (nb make sure you also read the comments)
    (↩)


Original title and link: The CAP Theorem… Again (NoSQL databases © myNoSQL)

"

What is Network-based Application Virtualization and Why Do You Need It?

What is Network-based Application Virtualization and Why Do You Need It?: "
With all the attention being paid these days to VDI (virtual desktop infrastructure) and application virtualization and server virtualization and <insert type> virtualization it’s easy to forget about network-based application virtualization. But it’s the one virtualization technique you shouldn’t forget because it is a foundational technology upon which myriad other solutions will be enabled.

WHAT IS NETWORK-BASED APPLICATION VIRTUALIZATION?


This term may not be familiar to you but that’s because since its inception oh, more than a decade ago, it’s always just been called “server virtualization”. After the turn of the century (I love saying that, by the way) it was always referred to as service virtualization in SOA and XML circles. With the rise of the likes of VMware and Citrix and Microsoft server virtualization solutions, it’s become impossible to just use the term “server virtualization” and “service virtualization” is just as ambiguous so it seems appropriate to give it a few more modifiers to make it clear that we’re talking about the network-based virtualization (aggregation) of applications.
"