Skip to main content

Overview

This guide provides operational procedures for managing MCP Server LangGraph on GKE Autopilot in production, including incident response, maintenance tasks, and troubleshooting.
This guide provides essential operational procedures for managing GKE Autopilot deployments in production.

Daily Health Check (5 minutes)

Run this every morning to ensure system health:
1

Check Cluster Status

Should return: RUNNING
2

Check Pod Health

All pods should show Running status with 0-1 restarts
3

Review Recent Events

No ERROR or WARNING events in last hour
4

Check Database Status

State should be: RUNNABLE
5

View Recent Errors

No critical errors in last hour

Incident Response

P0: Service Down (Complete Outage)

Symptoms: All pods crashing, health checks failing, users cannot access service
Response Time: 5-10 minutes
1

Immediate Assessment

2

Quick Fixes

3

Verify Recovery

4

Post-Incident Analysis

Escalation: If not resolved in 10 minutes, escalate to on-call architect

P1: Performance Degradation

Symptoms: Slow response times, high CPU/memory, increased error rates
1

Check Resource Usage

2

Check HPA Status

3

Review Database Performance

4

Temporary Scale Up

Permanent Fix: Adjust resource requests/limits based on actual usage

P2: Database Connection Issues

Check Cloud SQL Proxy:
Verify Instance Running:
Restart Proxy:
Check Connection Count:
Kill Idle Connections:
Increase Max Connections (via Terraform):

Deployment Operations

Standard Deployment (via CI/CD)

Recommended: Use the automated GitHub Actions workflow for production deployments.
1

Create Release

2

Monitor CI/CD

The workflow automatically:
  • Builds and scans image
  • Requests manual approval
  • Deploys to production
  • Runs validation tests
  • Rolls back on failure
Monitor at: https://github.com/USER/REPO/actions
3

Verify Deployment

Manual Deployment (Emergency)

Use only for emergencies. Bypasses automated testing and approval gates.

Rollback Deployment


Database Operations

Manual Backup

Restore from Backup

Caution: Restoring to the same instance is destructive. Restore to a new instance first for safety.
Recommended: Test on new instance, then switch connection if successful

Database Maintenance

Check Maintenance Window:
Reschedule Maintenance:

Scaling Operations

Manual Scaling

Cluster Resource Monitoring


Security Operations

Rotate Secrets

1

Generate New Secrets

2

Update Secret Manager

3

Pods Auto-Restart

External Secrets Operator automatically syncs secrets and Reloader restarts pods.Monitor:

Audit Access Logs

Review Binary Authorization Denials


Common Tasks


Maintenance Windows

Cluster Upgrades

GKE Autopilot upgrades automatically based on release channel (STABLE for production).
Release Channels:
  • RAPID: Weekly (for testing)
  • REGULAR: Monthly (for general use)
  • STABLE: Quarterly (for production) ✅
Check upgrade status:
Manual upgrade (if needed):

Database Maintenance

Scheduled maintenance: Sunday 3 AM UTC (configured in Terraform) Reschedule:
Defer one-time:

Monitoring & Alerting

Active Alerts

Create Custom Alert

View Metrics

Access Cloud Monitoring dashboards:

GKE Dashboard

Pod metrics, cluster health, node status

Custom Dashboard

Custom metrics created by setup script

Disaster Recovery

Cloud SQL Failover

Manual Failover (for testing):
Recovery Time: 2-3 minutes for automatic failover

Full DR Procedure

For complete disaster recovery automation:

Complete DR Guide

Multi-region failover, backup restoration, RTO/RPO targets

Emergency Procedures

Emergency Stop

This stops all traffic. Use only in critical situations (security breach, data corruption).

Emergency Maintenance Mode


Contacts & Escalation

On-Call Rotation

Configure in PagerDuty/OpsgenieEscalation Path:
  1. P0/P1: On-call engineer (immediate)
  2. P2: Engineering team lead (within 4 hours)
  3. P3: Ticket for next sprint
Communication: #production-incidents (Slack)

Troubleshooting Guide

Detailed debugging procedures

Security Hardening

Security operations and auditing

Cost Optimization

Resource rightsizing and cost controls

Deployment Guide

Production deployment procedures