惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Blog — PlanetScale
Blog — PlanetScale
Y
Y Combinator Blog
G
Google Developers Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
L
LangChain Blog
S
SegmentFault 最新的问题
J
Java Code Geeks
V
Visual Studio Blog
H
Help Net Security
Stack Overflow Blog
Stack Overflow Blog
aimingoo的专栏
aimingoo的专栏
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
T
Tailwind CSS Blog
Microsoft Azure Blog
Microsoft Azure Blog
博客园_首页
H
Hackread – Cybersecurity News, Data Breaches, AI and More
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
博客园 - Franky
B
Blog RSS Feed
The Cloudflare Blog
MyScale Blog
MyScale Blog
月光博客
月光博客
Microsoft Security Blog
Microsoft Security Blog
美团技术团队

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
Automating Away SRE Toil Tasks
Prachi · 2026-05-20 · via DEV Community

Prachi

Reducing SRE Toil with Automation

The Problem

Toil, a concept introduced by Google SREs, refers to the repetitive, manual tasks that consume a significant amount of time for Site Reliability Engineers. Examples of toil include restarting a failed service by hand every time it crashes, manually running SQL queries to provision new customers, or spending hours troubleshooting issues that could be automated. Toil is the enemy of engineering productivity, as it diverts attention away from feature development and system improvement. High toil means less time for innovation, leading to stagnation in system reliability and resilience.

Technical Breakdown

To understand how to reduce toil, let's consider a common scenario where a team spends a considerable amount of time manually monitoring and restarting failed services. This process can be automated using tools like Kubernetes and scripting languages such as Bash or Python.

For instance, in a Kubernetes environment, you can automate the deployment and scaling of an application using YAML configuration files. Here's an example snippet that demonstrates how to define a deployment with automatic restart policies:

apiVersion: apps/v1
kind: Deployment
metadata:
  name: example-deployment
spec:
  replicas: 3
  selector:
    matchLabels:
      app: example-app
  template:
    metadata:
      labels:
        app: example-app
    spec:
      containers:
      - name: example-container
        image: example-image
        restartPolicy: Always

Enter fullscreen mode Exit fullscreen mode

In this example, the restartPolicy is set to Always, ensuring that the container is automatically restarted if it fails. This simple automation can significantly reduce toil associated with manual restarts.

The Fix / Pattern

To reduce toil, SREs aim to spend at least 50% of their time writing code, building tools, and automating tasks. Here are concrete steps to achieve this:

  1. Identify Toil: Regularly review team activities to identify tasks that are repetitive, manual, and consume a significant amount of time.
  2. Automate Tasks: Use scripting languages, configuration management tools (like Ansible or Terraform), and orchestration platforms (like Kubernetes) to automate identified tasks.
  3. Implement Monitoring and Alerting: Set up monitoring tools (like Prometheus and Grafana) and alerting systems (like PagerDuty) to detect issues before they become incidents, further reducing toil associated with troubleshooting.
  4. Review and Refine: Regularly review automated tasks and refine them as needed to ensure they continue to reduce toil effectively.

Key Takeaway

By automating repetitive, manual tasks and implementing efficient monitoring and alerting systems, SRE teams can significantly reduce toil, freeing up at least 50% of their time for innovation and feature development, thereby improving system resilience and reliability.