Reinventing DevOps: Continuous delivery and the database

Share this post:

From time to time, we invite industry thought leaders to share their opinions and insights on current technology trends to the IBM Systems IT Infrastructure blog. The opinions in these blogs are their own, and do not necessarily reflect the views of IBM.

Modern software development teams have adopted a continuous delivery approach based upon DevOps and agile development techniques. The small and frequent code changes that result from such an approach can deliver significant benefit in terms of reduced lead time for changes, a lower failure rate, and a reduced mean time to recovery when errors are encountered. It is no wonder that DevOps and continuous delivery are popular. Today’s development organization migrates more frequent changes into the production environment than ever before.

So far, this all sounds like a good thing, right? And it can be. However, when you add database change into the mix, things get a bit more challenging. The 2017 State of Database DevOps report uncovers database development as lagging behind application development in terms of continuous delivery.

For many DevOps shops, the “Dev” tends to overshadow the “Ops” portion (where Ops includes database operations/DBA). Control of the application delivery process is driven by development, sometimes without the traditional control/oversight of the DBA group. Without the expertise of the DBA the delivery and integration process can fall apart because database change cannot be treated exactly like application change.

Application delivery usually involves copying code and executables from one environment to another. By contrast, the database is an entire configuration in each environment and changes get migrated. Each environment might be different (however so slightly). And differences can “drift” in due to things like optimization changes, emergency changes and so on. Furthermore, consider Db2 packages: access paths determined at bind time in production. The access paths are not (and cannot be) copied from the development environment. Without an experienced DBA to assist, guide and, indeed, administer the process, problems will arise.

Sometimes developers are given free rein to make database changes in the test or development environment. This can encompass simple things like adding a table, column or index; or it could be more complex, requiring an object to be dropped and re-created. Every DBA knows that dropping one database object can have a cascading effect, dropping and revoking other objects and privileges. But most developers are not aware of the wide impact of such changes.

In a test environment, large changes that drop and re-create structures may be tolerable because end users are not impacted, only other developers. But trying to do the same thing in production can cause a significant outage and perhaps even data loss if performed improperly.

When application changes rely on changes to database structures, these changes should be tightly coupled to the application changes that drive them. If the program code expects a new column to be there in order to work properly, then you do not want the new code to be moved to production without the new column… and the opposite is also true. And this should include not only making the changes, but also backing them out when necessary.

More focus is needed on coupling software/database change both at a technology level and at a personnel level. DBA-level expertise is needed on development teams to help guide and implement changes appropriately. Automated software solutions that combine and coordinate application code and database changes are also needed.

Learn more about how to digitally reinvent enterprise IT in this DevOps from APIs to z Systems for dummies book.

Get more pointers from Craig and other DevOps thought leaders in this 10 New Steps to DevOps Success guide.

10 new steps to devops success - click here

President & Principal Consultant, Mullins Consulting, Inc.

More DevOps stories

DBaaS + Security @ MongoDB World

How important are automation and security for your enterprise data? While today’s business leaders want to automate tasks to eliminate human errors and security breaches, they don’t want to spend time on technical details. Managing databases in the traditional way requires a lot of highly-specialized technical knowledge, and DB admins must know and handle nearly […]

Continue reading

IBM and SUSE Linux Enterprise 15 deliver breakthrough security

The latest major release of SUSE Linux Enterprise includes improved security, performance and virtualization optimizations for IBM’s new z14 and LinuxONE servers. SUSE Linux Enterprise 15 is now available – focusing on simplifying traditional & containerized infrastructures and making IT more efficient. SUSE Linux Enterprise Server for z Systems and LinuxONE is part of the […]

Continue reading

Cloud infrastructure designed for your business model

When we talk about cloud, one of the most important challenges for cloud service providers is changing the old thinking about protecting data. With all of the cyberattacks being launched on companies, there’s no doubt that security is extremely important. It’s even more important if we consider that data breaches can lead to the end […]

Continue reading