I had the privilege of attending the Velocity Conference in Santa Clara, CA at the end of May.  While the theme was "DevOps Web Performance", it focused primarily on DevOps and cloud computing. While neither of these were new to me, I learned a lot about the culture and benefits of both, as well as how cloud computing benefits DevOps.

DevOps

So, what is DevOps?  I can't define DevOps any better than the following snippets from Wikipedia:

What is DevOps?

DevOps is a software development method that stresses communication, collaboration, integration, automation, and measurement of cooperation between software developers and other information-technology (IT) professionals.

The method acknowledges the interdependence of software development, quality assurance, and IT operations, and aims to help an organization rapidly produce software products and services and to improve operations performance. In traditional organizations there is rarely cross-departmental integration of these functions with IT operations.

DevOps promotes a set of processes and methods for thinking about communication and collaboration between development, QA, and IT operations.

DevOps Goals

Understanding the purpose of the DevOps method is more useful to me than rigidly defining it.  The following are key goals that I see with DevOps:

  • Faster Deployment - Allowing the developers to deploy with less effort can result in faster time to release (market), lower failure rate of releases, shortened lead time between fixes, and faster mean time to recovery of code.
  • Collaboration - This is more than just better communication. Standardizing development environments that are highly collaborative aids in the software application release management for an organization. Incidents, documentation, deployments, and other events easily tracked across all teams involved. Barriers are removed between developers, QA, operations, and support roles.
  • Integration - Developers find value in an integrated system for product delivery, quality testing, feature development, and maintenance releases.
  • Automation - Simplifying processes allows those processes to become increasingly programmable and dynamic. This allows automation which can maximize predictability, efficiency, security, and maintainability of operational processes.
  • Measurement - Without measurement you can't tell if you're actually improving the systems. Simple metrics of key processes allow for quick analysis of the process involved. Think of this as applying the scientific method to continuously measure your results.
  • Empowering & Trusting Developers - Perhaps most important is the idea of granting the developers more control of the environment. The infrastructure is in place to support the applications, not the other way around.

DevOps Culture

Every organization needs to leverage it's resources to maximize their goals, typically related to money. Using a method like DevOps give an organization tools to better identify their constraints and reduce bottlenecks in processes and procedures. Again, key metrics are critical to identifying issues and measuring the improvement, ideally in realtime.

We all know to "expect the unexpected". But the key is to have methods in place that provide speed and flexibility, which allow the organization to actually deal with the unexpected. Metrics allow you to see the unexpected, while easy collaboration and deployment allows you to respond quickly. And when things do fail, we want processes to fail gracefully or even partially, then learn from that failure.

Providing good tools within an organization helps steers toward good behavior of the people and teams. Which comes first... the efficient teams, or the tools? Obviously it's an evolutionary process of improvement, but once the tools hit critical mass, the whole organization benefits and learns from them.

I notice a lot of DevOps shops make heavy use of OpenSource products. It's less of a love of the OpenSource culture, but more of an understanding that it allows for more customization and flexibility of the tools. If something doesn't quite work like needed, a DevOps team can fork or add new features to OpenSource tools. Yet at the same time, these teams realize the value in not reinventing every tool. If it works, don't waste time fixing it.

While DevOps focuses a lot on processes and tools, it loses it's value if it doesn't put the human element first. It's more about developing empathy among the team. It's not developers vs operations, or management vs engineering. It's about understanding the individuals, the teams, and the organization, then working together in trust and with power.

DevOps Tools

Below is a summary of the types of tools typically associated with DevOps, along with some specific examples of each type:

  • Communication & Collaboration
  • Deployment
  • Automation
    • Configuration management
      • Chef
      • Puppet
      • Ansible - more realtime than others, you push configs when you want
      • zookeeper - HA configuration cluster
      • Etcd - distributed keystore for shared configuration and service discovery
      • Consul - shared configuration and service discovery
    • Cloud & scaling
      • Let the infrastructure scale and heal dynamically. I discuss this more below.

DevOps Gets Personal

Coming from scientific computing, I was one of the few attendees who wasn't at a technology company already drinking the DevOps "Kool-Aid". Over the past few years I've wavered in my desire for making use of DevOps, but this conference helped me better understand why it is much harder to implement DevOps, than to simply like it.

While utilizing various components of DevOps has tremendous value (e.g. configuration management, monitoring, source control), picking and choosing doesn't make you a DevOps shop. They key ingredient to DevOps is the empowerment and trust of the developers. It revolutionizes the work culture when the organization streamlines the process for the developers to be able control this applications.

As a system administrator on the Ops side of things, it's easy for me to (mostly inadvertently) slow down the developers. I'm not trying to make things difficult for the developers, but it comes down to three things:

  1. I don't always trust the developers
  2. I haven't prioritized setting up systems to empower the developers
  3. The organization doesn't always value the deployment of key tools and processes

Even if my team or organization doesn't fully endorse DevOps, there are things I can do to build my trust of my developers and to empower them to do even better work.

Cloud Computing

Virtualization and cloud computing aren't just the new hip trend. Their real benefit comes from letting the infrastructure dynamically scale and repair itself. To maintain efficiency systems should scale based upon actual current requirements (from metrics). And in the event of failures, the infrastructure should monitor itself and recover. Cloud computing provides for this dynamic infrastructure.

But, which technologies should we focus on?

Docker

Docker is very attractive for developers of multi-tiered architecture systems. Each individual application service (e.g. presentation, processing, data, etc.) are setup in individual containers. These are resources that are isolated to allow multiple independent containers to run on a single kernel instance.

Docker containers make it convenient for the developer to develop each service independently without having to spend a lot of effort focusing on the overall system. But, they also simplify the deployment process as well, because the packaged container can be copied over to other environments and easily started up there as well.

The real cloud power of Docker containers is achieved through one of the "container management" tools or frameworks. Container management tools provide functionality for bootstrapping, scheduling, discovery, configuration, proxies, application monitoring, replication, and software defined network fabrics. You can sort of think of these tools as vCenter for your containers and applications. There are currently three major frameworks for container management:

These container management tools can be used independently, or as combinations of various components of each (since they are each OpenSource projects). The Tectonic Platform is an example of a commercial product that includes the best of CoreOS Stack and Kubernetes.

These are generally implemented on top of public clouds (e.g. AWS), bare metal servers, or private clouds (e.g. OpenStack or even VMware).

Other Learnings

In addition to the core focus of the conference, I picked up some other useful stuff that is less on topic.

Linux Performance Tools

Brendan Gregg from NetFlix presented an amazing tutorial on linux performance tools. He first did a run down of how important it is to have a standard methodology for diagnosing performance issues. A standard methodology gives you a checklist of where to start and stop. Most of us tend to use anti-methods that are not methodical at all. We tend to use popular tools at random, try random stuff till the problem goes away, or blame someone else. His website details actual, useful, standardized methods that are useful. He then walked us through lots of actual tools that can be used for observabilitybenchmarkingtuning, states, and tracing. One useful tool he had created were block diagrams of the entire system that he then overlayed tools for various types of performance analysis (e.g. observability with sar). He has lots of this content on his website and several video presentations online.

Best Practices for MySQL HA

Colin Charles from MariaDB presented a tutorial that basically outlined the current state of options for high availability MySQL and his recommendations. His review of various options was very extensive. Here are a few of my snippets of takeaways:

  • The larger your innodb_log_file_size, the longer your recovery times will be. Keep them as relatively small as possible.
  • MySQL sandbox gives you easy way of installing a various MySQL server configurations via perl module.
  • Generally the best redundancy is with MySQL replication with essentially no performance penalty
    • The 2nd iteration of semi-synchronous replication in 5.6 - waits for 1 slave to acknowledge.
    • Replication is greatly improved in 5.6 with global transaction IDs, group commits, binlog checksums, crash safe binlogs & relay logs, parallel replication, etc.
    • Can create new slaves without locking tables and flushing master database.
    • There are several replication monitoring tools available, e.g. Percona toolkit.
    • Multithreaded slave replication is now possible.
  • Tungsten replicator (open source) provides hererogenious, multi-master, and Oracle replication.
  • Galera and NBD are high performance cluster solutions.
  • Current frameworks for MySQL failure and load balancing:
  • Colin's recommendations:
    • Keep with innoDB. It has lots of support and users.
    • Use row based replication.
    • gtid and semisync help with replication failover.
    • Use multi-threaded slaves for faster performance.

Scaling Ingest

Rajiv Kurian from SignalFx gave an overview of some scaling issues they were having with metrics ingest. A lot of this was very technical, but here are a few takeaways I did have:

  • L1 cache on the processor is generally 200 times faster than main memory. They optimized data structures to keep data in L1 cache.
  • Measure your real application in preference over just using micro benchmarks of your system.

Off topic thought, triggered by the word "ingest"... we should consider doing workflow and data ingests via containers in a container management framework. It could be a much more resilient and dynamic infrastructure.

Vagrant & Virtualbox

Several presenters made use of Vagrant and VirtualBox. While I'd heard of this before, it was the first time I'd played with it. Vagrant provides an almost cloud-like command line interface to spin up and use VMs on your local system. It's very slick for prototyping stuff on your laptop or desktop.

 

Conference Resources

Conference: http://velocityconf.com/devops-web-performance-2015/
Videos: http://velocityconf.com/devops-web-performance-2015/public/content/video
Slides: http://velocityconf.com/devops-web-performance-2015/public/schedule/proceedings

1 Comment

  1. Anonymous

    http://www.metatron4025.com
    http://www.hunter4025.com
    http://www.laser-watch.com
    http://www.health-machine.org
    http://www.e-healthmachine.net
    http://www.e-healthmachine.org
    http://www.e-healthmachine.com
    http://www.health-machine.net
    http://www.boruhealthmachine.net
    http://www.boruhealthmachine.org
    http://www.boruhealthmachine.com
    http://www.shengshou.cc
    http://www.o-bd.org
    http://www.3d-nls-health-analyzer.com
    http://www.skintestsystem.com
    http://www.health-machine.com
    http://www.3dnlshealthanalyzer.com
    http://www.maikong.cc
    http://www.e-dentaltools.com
    http://www.skin-analyser.com
    http://www.iridologycamera.org
    http://www.ion-cleanser.org
    http://www.quantum-resonance-magnetic-analyzer.com
    http://www.shengshou.cc
    http://www.e-iphoneparts.com
    http://www.iris160.com
    http://www.iriscope.org
    http://www.lasertherapymachine.com
    http://www.monkong.net
    http://www.high-voltage-therapy.com
    http://www.skin-observed-system.com
    http://www.monkon.net
    http://www.hongmoyi.org
    http://www.qra-software.com
    http://www.healthfactory160.com
    http://www.healthfactory160.net
    http://www.healthfactory160.org
    http://www.8dnls.net
    http://www.vector-9d-nls.com
    http://www.skin-observed-system.com
    http://www.nls-software.com
    http://www.ipp-metatron.com
    http://www.hydrogen-machine.com
    http://www.veterinary-ultrasound.cc
    http://www.hair-extensions.cc
    http://www.monkonhair.com
    http://www.human-hair.org
    http://www.cheap-hair-extensions.net
    http://www.wigs-for-sale.net
    http://www.virgin-brazilian-hair.com
    http://www.cheap-hair-extensions.net
    http://www.virgin-indian-hair.com
    http://www.virgin-european-hair.com
    http://www.virgin-peruvian-hair.com