Home/Categories/云原生

云原生

DevOps、Docker、Kubernetes、可观测性

Collection

This collection features articles and community discussions in the 云原生 space, focusing on real-world engineering scenarios, tool selection, practical paths, and risk boundaries.

The page is continuously updated and serves as a learning roadmap, technology selection reference, and technical review entry point.

@admin·28 min read·Cloud Native

Redis Cluster: Sharding, High Availability, and Failover

When one Redis instance can no longer meet memory or throughput needs, Redis Cluster scales horizontally. This article explains its 16,384-slot and hash-tag sharding model, primary-replica replication, automatic failover, MOVED/ASK client routing, cross-slot limits, and when to choose Cluster over Sentinel.

#DevOps♥ 1730 comments
@admin·16 min read·Cloud Native

Kubernetes Network Policies: A Firewall Between Pods

K8s allows all Pods to communicate by default, which is a production security risk. NetworkPolicy lets you declare which Pods may communicate. This article explains ingress and egress rules, default-deny mode, and zero-trust K8s networking practices.

#DevOps♥ 1770 comments
@admin·16 min read·Cloud Native

PostgreSQL Partitioning Strategies: Range, List, and Hash

Large tables slowing down? Partitioning splits one physical table into multiple child tables so queries scan only relevant partitions. This article explains PostgreSQL Range, List, and Hash strategies, partition pruning, when to partition at tens of millions of rows, how to choose a partition key, and how partitioning relates to indexes.

#DevOps♥ 1780 comments
@admin·20 min read·Cloud Native

PostgreSQL Advisory Locks: Application-Level Coordination Locks

Already use PostgreSQL? Advisory Locks provide application-level coordination without Redis. This guide covers session- and transaction-level locks, blocking vs. try-lock APIs, key design, task scheduling, migrations, idempotency, row-lock differences, and production pitfalls.

#DevOps♥ 1840 comments
@admin·20 min read·Cloud Native

Kubernetes ConfigMaps and Secrets: Configuration and Secret Management

Configuration should not be hard-coded into images: ConfigMaps store nonsensitive settings, while Secrets store credentials. This article covers creation and mounting, env vs. volume, base64 and encryption with etcd, KMS, and external operators, ConfigMap hot updates and the subPath trap, and production secret management with External Secrets Operator.

#DevOps♥ 1870 comments
@admin·16 min read·Cloud Native

PostgreSQL Statistics and the Query Planner

Why does PostgreSQL choose a Seq Scan over an Index Scan? Its planner uses statistics to estimate which is faster, and inaccurate statistics produce bad plans. This article explains how ANALYZE collects statistics, how they guide planning, when stale data causes slow queries, and how to intervene with statistics targets and extended statistics.

#DevOps♥ 1880 comments
@admin·19 min read·Cloud Native

Database Replication Lag: Causes, Monitoring, and Mitigation

After read/write splitting, users "can't read what they just wrote"—this is replication lag. This article explains why lag occurs (async replication network/disk/transactions), how to monitor it (pg_stat_replication), how to mitigate it (read/write consistency window/synchronous replication/reading the primary on critical paths), and the application-level

#DevOps♥ 1930 comments