Practical Technology

for practical people.

July 23, 2012
by sjvn01
0 comments

Juju: DevOps for Cloud Services

PORTLAND, OR: Canonical, Ubuntu Linux’s parent company, is trying to make Development/Operations (DevOps) on the cloud easy with its Juju framework. The Juju project has been around for a while, but frankly it wasn’t that impressive… until now. At a demo at the Open Source Conference (OSCON), Jorge Castro, a Canonical developer relations executive, and Mark Mims, a software engineer, showed that Juju is finally ready for cloud prime time.

As Castro explained, the main idea of Juju is to get rid of “metawork,” which Castro explains is “all the work you have to go through, such as setting the program up, before you can start using the program.” He gave an example of Subway, an Internet Relay Chat (IRC) client that’s rapidly gathering fans. When Subway first gained attention, its developer was flooded with requests – on how to install its back-engine DBMS, MongoDB. Anyone with time in service in IT has seen this kind of thing; sometimes it’s called “yak shaving.”

What Juju does is give developers and system administrators the tools needed, according to Castro, at the service level, not the machine level. “It’s an app get [the popular Debian/Ubuntu shell software install program] for the cloud,” he says.

Juju is not, Castro emphasizes, a replacement for tools such as Puppet and Chef, which automate machine configuration, so that every server has an identical software configuration and is running the correct services. No: Juju manages services not machines.

In particular, Juju can be used for Ubuntu services on the Amazon and OpenStack clouds, on bare metal via Management as a Service (MaaS), and locally with lxc, a virtual environment system. It’s also available as an experimental service on Microsoft’s Azure.

What Juju actually provides are charms. “These are shareable, re-usable, and repeatable expressions of DevOps best practices,” says Castro. “You can use them unmodified, or easily change and connect them to fit your needs. Deploying a charm is similar to installing a package on Ubuntu. Ask for it and it’s there; remove it and it’s completely gone.”

In the demonstration, Mims showed how by simply running the appropriate handful of charms he could set up a Hadoop, a clustered server program for managing big data, master and ten slaves, along with their operating systems and other dependencies, on the Amazon cloud. He didn’t need to worry about where the servers were or how to set them up; the charms took care of all of that.

This wasn’t just a demo, though. Castro said that Ubuntu “dog-foods” Juju all the time for its own cloud work.

Each charm contains the settings for each service and how each should be configured. While Juju is written in Python, its charms can be written in any language. You can write them in Python, Bash, Puppet script, whatever works for you. Once written and proved, you can then use them to bring up services and connect them together without worrying over the dirty details.

At this time, Canonical has about 90 charms available in its public charms repository, Juju Charms. Repository? Yes, continuing the apt-get analogy, Canonical made these cloud service set-up programs available to anyone with a Charm client. Currently there are charms to set up such popular cloud/server applications as CloudFoundry, Drupal, MySQL, Tomcat, and WordPress. These applications, in turn, all run on Ubuntu 12.04 instances on whatever your supported cloud of choice is. 

However, Juju can do more than automate setting up cloud services. You can use Juju to add relationships between applications. Castro says, “Juju lets you stick together services like Legos.”

For example, you can tell Hadoop to talk to a particular DBMS or set up a LAMP stack with the specific version of each program you want for your application. You can also use it to set up multiple instances with a single command. For instance:

juju add-unit -n20 hadoop-slavecluster

is all you need to set up twenty slave instances of Hadoop. In tests, Canonical has had up to 2,000 such instances invoked and running with Juju. (Of course, if you don’t want someone at your company setting up 2,000 instances, you can write the charm to limit the possible number of instances to a more sane 100.)

These charms can do more than just install and take down service instances. For example, one MySQL charm has three settings: running-level=fast, safe, unsafe. Fast is optimized for speed; safe is faster than a vanilla MySQL installation; and unsafe sets MySQL to run with the accelerator down and no brakes. You also can tune a charm to better meet your database needs.

Let’s say that you’re provisioning a service for Ruby on Rails programmers, a group of developers who are well-known for always wanting the newest possible version of their favorite tools. You can set up an appropriately crafted charm so that every time you start instances they automatically update to the freshest possible programs. On the flip side, you can use a generic charm that always invokes, say, the same version of MySQL.

The charms are all open source. If you make changes, you can submit the charm to Canonical for inclusion in the public repository, have your own repository on Canonical’s service, or just keep your versions in your own private Juju repository.

Juju is also relatively safe. When you call a charm from the Juju repository, the connection is made through Secure Socket Layer (SSL) connections.

I can see Juju making a cloud admin’s life much easier. By focusing on high-level services instead of low-level components it makes it a snap to set up not merely machines or specific images but unique combination of services.

The Canonical crew are the first to admit that there’s a lot more work to be done. This ranges from such broad areas as storage, where Juju really does very little at this point, to such specifics as the PostgreSQL charms needing much more work. Still, Juju is already very useful, the Canonical development team wants your help to make it even better, and, as Castro says, “Anything that makes metawork easier is good.”

A version of this story first appeared in HPIO

July 22, 2012
by sjvn01
0 comments

Lies, damned lies, and Internet speeds

ISPs have a bad habit of promising to deliver Internet speeds they actually can’t deliver. But, according to the U.S.’s Federal Communication Commission (FCC) latest ISP Internet report, Measuring Broadband America, A Report on Consumer Wireline Broadband Performance in the U.S. ISPs are getting better at residential Internet broadband.

The FCC found that “participating broadband providers, actual download and upload speeds were over 80 percent of advertised speeds.” Just over 80% is a C in my school, but the ISPs are doing much better than they were last year. “In 2011, the average ISP delivered 87 percent of advertised download speed during peak usage periods [weeknights between 7:00 pm to 11:00 pm local time]; in 2012, that jumped to 96 percent. In other words, consumers today are experiencing performance more closely aligned with what is advertised than they experienced one year ago.”

The researchers also found that the “Average peak period download speeds varied from a high of 120 percent of advertised speed to a low of 77 percent of advertised speed. This is a dramatic improvement from last year where these numbers ranged from a high of 114 percent to a low of 54 percent.”

Lies, damned lies, and Internet speeds. More >

July 19, 2012
by sjvn01
0 comments

Ubuntu adds WebApps to its Linux desktop

Portland, OR: At OSCon, Mark Shuttleworth, founder of Canonical, Ubuntu Linux’s parent company announced that it’s adding a new feature to its Ubuntu desktop: the ability to use popular Internet services and Websites, such as Google’s GMail and Facebook as desktop applications, Ubuntu WebApps.

This feature will formally appear in the next release of Ubuntu 12.10, Quantal Quetzal, in October. But, users won’t have to wait until then for it. According to Jono Bacon, Ubuntu’s community manager, the Ubuntu team has been working on this for some time and the feature will be available for Ubuntu 12.04 users in the next full days.

At this time, there are about 40 WebApps. This includes apps Facebook, Twitter, Last.FM, and Google+. Ubuntu WebApp’s source code will be available on the Canonical Launchpad (https://launchpad.net/) project management service. The new feature’s functionality calls up a Firefox plug-in to achieve its results. The program also has an application programming interface (API) and an integration script engine for users to make their own desktop applications

Ubuntu adds WebApps to its Linux desktop. More >

July 18, 2012
by sjvn01
0 comments

New life for the Open Source Initiative

Portland, OR: There was a time that everyone in the Linux and open-source world knew about the Open Source Initiative (OSI). It was, and still is, the group which manages the Open Source Definition. This is the core open-source defining document for developers, governments, and businesses. All the other open-source licensees—Apache, BSD, GPL—all some of their legitimately to  the OSI. In recent years, though, the OSI has laid fallow. Now, it wants to change that and once more become a vital part of the open-source community.

At OSCon, the OSI announced that it would accepting applications for Individual Membership.The new Individual Membership category allows individuals who support the mission and work of the OSI to join discussions about that work, to be represented in the evolving governance of the OSI, and to spin up task-focused Working Groups to tackle open-source community needs. Individual Members are asked to make a tax-deductible donation to support the mission of OSI. You can find out more out OSI Individual Membership  at the site.

I asked Simon Phipps, OSI President, and long time open-source leader why someone would want to join the OSI considering how quiet the organization had been over the last few years. Phipps replied, “we looked at our mission statement on opensource.org and felt we needed to re-focus on what it says!”

The Open Source Initiative (OSI) is a non-profit corporation with global scope formed to educate about and advocate for the benefits of open source and to build bridges among different constituencies in the open source community.

New life for the Open Source Initiative. More >

July 18, 2012
by sjvn01
0 comments

Assassins, Orcs, & Zombies, oh my! Valve brings Steam games to Ubuntu Linux

For years, Valve, creator of the Steam game engine and network and such popular Windows games as Assassin’s Creed and The Elder Scrolls, has hinted that it was bring Steam and its games to Linux. But, then little came of it… until now. At long last, Valve revealed that it really has had a team working on porting Steam and its games to Linux.

According to Valve, “Our mission is to strengthen the gaming scene on Linux, both for players and developers. This includes Linux ports of Steam and Valve games, as well as partner games. We are also investigating open source initiatives that could benefit the community and game developers.”

The company has been doing this since 2011. The Steam on Linux team currently has 11 members, and they’re looking to hire more developers.

Assassins, Orcs, & Zombies, oh my! Valve brings Steam games to Ubuntu Linux. More >

July 18, 2012
by sjvn01
0 comments

A first look at Dell’s ‘Sputnik’ Ubuntu Linux developer laptop

Portland, OR: Sputnik started, Barton George, Dell’s project Sputnik lead and director of web vertical marketing,   told me at OSCon as a six-month exploratory pilot to create an Ubuntu Linux-based developer laptop, It’s not just an idea now. Dell is taking Project Sputnik from pilot to product this fall. 

This official developer laptop is based on the Dell XPS 13 with Ubuntu 12.04 Long Term Support (LTS)  This PC will offer developers a complete client-to-cloud solution. The Sputnik will allow developers to create “microclouds” on their laptops, simulating a proper, at-scale environment, and then deploy that environment seamlessly to the cloud. George explained it would use LXC virtual environments containers for the microclouds. These cloud applications can then be deployed to Ubuntu instances running on the Amazon, OpenStack, bare-metal with Management as a Service (MAAS), and, eventually, Microsoft Azure clouds.

A first look at Ubuntu 12.04 (Gallery)

The Sputnik won’t be just for cloud developers. George said that there has been an incredible amount of interest in the project. “When I first put the word out I thought it would be a success if I got 4,000 hits on the proposal. It’s now over 50,000 hits.” Since then developers have been telling Dell in great detail what they want from a developer’s laptop and Dell has been listening.
A first look at Dell’s ‘Sputnik’ Ubuntu Linux developer laptop. More >