Avoiding the ‘Sorcerer’s Apprentice’ Problem of Software Releases
Automation may seem like the perfect answer, but you need a better management system to make sure nothing spirals out of control.
Join the DZone community and get the full member experience.
Join For Free
one of my favorite scenes from disney’s film fantasia is that of the “sorcerer’s apprentice” (originally, a poem by goethe). mickey mouse, as the apprentice, is being trampled by an army of enchanted, cloned brooms. the brooms multiply automatically – in an endless march to “get the job done”: fetching water in buckets to fill up the room – threatening to drown mickey.
for release managers responsible for software delivery in large organizations – managing the multitude of software releases the enterprise needs to support can feel a lot like drowning/being trampled by an army of brooms release pipelines.
just like mickey, sometimes you may feel you’ve found the perfect ‘magic’: this one, simple, automated pipeline to command the release of your one application and daisy-chain your tools of the trade along the pipeline. and that feels great – as you configure this one ‘broom’ to automate your chores, and release this software to production.
and so, different groups in the organization may repeat this process across hundredths (if not thousands) of individual teams and applications, each focusing on their one ‘broom’, ignoring the implications on the bigger picture.
one application or a simple pipeline is a pretty easy – let’s get that broom! but some of our enterprise customers need to support 20,000 concurrent applications- all in various stages of being built, tested, deployed and released – what do you do then?
high volume, high complexity, high stakes.
if all you had to worry about was one single track – things would be simple. but the realities of software delivery for enterprises are rarely that simple – and the scale of software production and releases that large organizations need to support can be daunting, primarily for two reasons:
-
sheer volume:
as enterprises digitize more aspect of their business, and applications become more critical to their operations and market traction –software-production is going into hyper-drive, putting strains on the organization to release an ever-growing number of applications, at a faster and faster pace. and for some enterprises- we’re talking thousands of applications and inter-dependent components.
this volume of applications and velocity of releases are also – naturally – mirrored in the volume of large numbers of geographically distributed teams and infrastructure that develop and run these apps that need to be supported as well. -
diversification and complexity:
devops implementation usually starts with one small team, and a pretty simple pipeline. but as you want to scale devops and optimize your release processes across other teams – pretty soon, another tool – or 50 – gets introduced into the mix; another complex process-branching is required; team b needs a different pipeline all together than team a; your security officer needs to approve code promotions for teams a-through-
n
and review the output of tests; team c can’t have access to certain environments; team g has a unique snow-flake configuration mandating the use of 10 other similarly one-off tools and processes; you need a process to manage priorities when writing tests to a specific environment configuration that’s too costly to replicate across all locations, and lock-in artifacts so that teams competing for the same resource pool do not override each other; then team x needs... you get the point.
keep in mind, too, that while we all know the basic 4-stages path of the pipeline – from ci build, through testing, deployment and release – for some organizations, each of these stages can be comprised of hundreds of different processes, encompassing thousands of tasks, and sometimes millions of jobs being executed. sure, we want to keep it simple, but real-world complexities having to do with legacy code, regulatory requirements, and others, often make enterprise processes to be not as simple as “fetch water in bucket from here, and dump it there”. furthermore, software delivery pipelines become more complex as organizations find they need to support both the applications of ‘yesterday’ and those of tomorrow.
as pipelines multiply exponentially – gaining up on you – release managers are left struggling to stay afloat and bring some order, visibility and predictability to the multitudes of tracks that they need to coordinate and make sense of (in a room soon to be overflowing.)
reining it in
while it struggles to keep up, the evidence of the roi of devops – along with the continued advancements in devops adoption in the enterprise – are leading organizations to look for ways to scale devops practices throughout the organization. as a next phase to this evolution, enterprises are looking to address this “sorcerer’s apprentice” challenge of software releases:
how can you gain shared visibility, centralized management and governance over all your “brooms” across your entire software delivery processes? how can you have a system that ensures you don’t end up battling to take back control over an ever growing number of separate automation tracks running amok – that are not “aware” of each other, and are not coordinated as part of a larger effort.
as in fantasia , as devops matures, in comes the “sorcerer” to rein-in your sprawl of “automation-gone-wild”. enterprises realize the need for a seasoned “conductor”, to command and orchestrate all their disparate devops tools, processes, pipelines, and multitudes of “islands of automation” to bring order, predictability, and scale.
it’s not magic
but it does take a lot of work — and planning.
to improve developer productivity, product quality and resource utilization – as well as to enable enterprise-scale and cross-project visibility and management – organizations need to automate and orchestrate their entire end-to-end software delivery pipeline. “ automate all the things ” is a key tenant to any devops or continuous delivery initiative, and is a requirement to achieve quality, compliance, speed and efficiency – at scale.
this end-to-end orchestration enables standardization and consolidation of all tools and processes under a centralized, shared, platform. this allows for re-use across teams, shortening of cycle times, cost reduction, and more. mainly, it reduces the risk of software releases by having predictable processes, security checks, consistent monitoring and one pane of glass for the entire organization.
end-to-end orchestration and standardization are required for scaling devops effectively for today’s large enterprises. to get it right, you need to map all of your pipelines across all teams and applications and design your devops solution from the get-go in a way that will allow you to scale while avoiding the “sorcerer’s apprentice” trap.
make sure your end-to-end solution enables you to:
- model : pipeline models allow you to define your end-to-end software delivery process – encompassing all the teams, tools, stages, tasks, approval gates, artifacts and environments involved in this process. modeling your application, environments and pipeline enables reuse and consistency.
- automate: automate and orchestrate your entire toolchain and workflows to eliminate manual handoffs and silos of automation to accelerate your pipeline and improve quality.
- integrate: be able to support off-the-shelf plugins, robust dsl and apis allow for extensibility and flexibility, making it easy to tie-in any tool chain, technology stack or cloud resources to gain shared control and visibility.
- govern: role-based access control, approval gateways and automatic logging ensure security, visibility and compliance for governance and auditability.
- scale: ensure ha and scale jobs and workloads predictably and efficiently across pools of on-premises or cloud resources.
devops provides enterprises with an effective approach to eliminate risk from software releases, and support the ever-growing demand for more frequent application updates. by automating your entire end-to-end pipeline and managing all release processes in one centralized platform, organizations gain visibility into the progress of all releases and devops processes, and ensure they can control, govern and optimize their delivery pipelines as they grow exponentially – and not get run over by an army of automated ‘brooms’.
Published at DZone with permission of Anders Wallgren, DZone MVB. See the original article here.
Opinions expressed by DZone contributors are their own.
Comments