Lesson 1 of 7 · Automation

What Is Automation

What automation is in today's IT, the problems it solves, the levels of automation from manual to self-service, and why it matters now.

Beginner 6 sections 4 min read

What automation is

Automation in IT means having systems carry out work that people used to do by hand: building servers, installing software, applying patches, running checks, and fixing common problems. The work is written down once as code, then runs the same way every time, on one server or a thousand, without someone typing each step.

Automation isn't new. DBAs have scheduled backup scripts with cron for decades. What's changed is the scale and the expectations. Companies now run hundreds or thousands of databases across data centers and clouds, and expect new environments in minutes, not weeks. That's only possible when most routine work runs itself.

The problem automation solves

Manual work has the same weaknesses wherever it's done:

Manual workWith automation
Slow: a new database server takes days of tickets and hand-offsMinutes, on demand
Error-prone: a skipped step or a typo in productionThe same tested steps, every time
Inconsistent: every server set up slightly differently, so problems are hard to reproduceEvery server built from the same code
Doesn't scale: patching 300 databases by hand takes weeksPatch them in waves, in a night
Depends on people: knowledge lives in someone's headKnowledge lives in code, readable by everyone
Hard to audit: who did what, and was it approved?Every run logged, every change reviewed in Git
Burns people out: repetitive nights and weekendsPeople spend time on design and improvement

The repetitive, manual work that automation removes is called toil, from the Database Reliability Engineering lesson. Every hour of toil automated is an hour that comes back every week.

Levels of automation

Automation grows in stages. Most DBA teams have some work at every level, and the goal is to move the most common work up the ladder:

1 MANUAL2 SCRIPTED3 AUTOMATED4 ORCHESTRATED by hand, froma runbook scripts a personstarts and watches runs by itself, ona schedule or event many steps andsystems, in order 5 SELF-SERVICE users ask, thesystem delivers Moving up: less toil, fewer errors, more scale →
1. Manual
A DBA follows a runbook step by step. Fine for rare tasks, but slow and error-prone for frequent ones.
2. Scripted
The steps are in a script, but a person still runs it, on each server, and watches what happens.
3. Automated
The task runs by itself, on a schedule or when something happens, such as a new server appearing or an alert firing.
4. Orchestrated
Many automated steps across different systems run in the right order, usually from a pipeline: create the server, configure the OS, install the database, register monitoring.
5. Self-service
Other teams request what they need, such as a new database or a refresh of test data, through a form or API, and the automation delivers it, within rules the DBAs have built in.

Why automation matters so much today

  • Scale. Database estates have grown far faster than DBA teams. Automation is the only way a small team can look after a large estate.
  • The cloud is programmable. Every cloud resource can be created and changed through an API, so everything can be automated.
  • Speed of delivery. Application teams release weekly or daily. Databases have to keep up.
  • Security and compliance. Patches must be applied quickly everywhere, and auditors expect evidence. Automation does both, and leaves a record.
  • Reliability. Most outages are caused by changes. Tested, repeatable automation makes changes safer than doing them by hand.

In practice: climbing the ladder with one task

Developers often ask Kofi's team to refresh a test database with a copy of production data. Over a year, the same task climbs every level:

  1. Manual: a DBA follows a 40-step runbook. It takes most of a day, and steps are sometimes missed, such as masking customer emails.
  2. Scripted: the steps become a script. Faster, but a DBA still runs and watches it on each server.
  3. Automated: the script becomes an Ansible playbook in Git, with masking built in and a check that it worked.
  4. Orchestrated: a pipeline clones the database, runs the playbook, runs the masking checks, and updates the ticket.
  5. Self-service: developers request a refresh from a form. It's done in under an hour, with no DBA involved, and masking can't be skipped.

The DBA's knowledge is still in every refresh. It's just built into the automation, instead of carried out by hand each time.

Key takeaways

  • Automation means writing work down once as code, so systems do it the same way every time.
  • It solves the problems of manual work: slow, error-prone, inconsistent, unscalable, person-dependent, and hard to audit.
  • Automation grows in levels: manual, scripted, automated, orchestrated, and self-service.
  • Scale, the programmable cloud, faster delivery, compliance, and reliability make it essential today.