The Cast AI blog
Guides, tutorials, and tips on Kubernetes automation, from cost optimization to cloud security and everything in between.
How to Fix Slow MySQL Queries: The Five Usual Suspects and the Command for Each
Enable the slow query log, read EXPLAIN, and diagnose slow MySQL queries caused by indexes, N+1 patterns, connection pressure, repeated reads, and locks.

Collecting JVM Metrics in Kubernetes Without Rebuilding a Single Image
Collect JVM metrics in Kubernetes without rebuilding images. Compare Java-agent injection, JMX sidecars, and eBPF,…

How to Optimize a Database: The Complete Guide to the Six Levers
Optimize PostgreSQL and MySQL across six levers: queries, connections, caching, configuration, workload design, and measurement.

AutoLifecycle: EKS component upgrades without the Friday-night fear
Standard EKS gives teams full control over their cluster’s core components: networking, DNS, storage, load…

N+1 Queries: Find and Fix Them in Production
Learn what causes N+1 queries, how to confirm them with PostgreSQL or MySQL statistics and…

How to rightsize DaemonSet requests with Cast AI
In part 1, we explored why one resource request cannot fit every pod of a…

DaemonSet Resource Requests: Why One Size Doesn’t Fit
The problem: one request, many kinds of nodes A DaemonSet runs one pod on every…

Java and JVM Rightsizing on Kubernetes: Heap, Limits, Requests
Rightsize Java workloads on Kubernetes using heap, GC, and container memory signals. Coordinate requests, limits,…

11 Database Optimization Techniques for Production Workloads
Improve PostgreSQL and MySQL performance with query analysis, indexing, batching, pooling, caching, and measured validation.…

Best Database Optimization Tools in 2026
Compare database optimization tools for PostgreSQL and MySQL: query analysis, index advice, connection pooling, caching,…
