Summary of some jq use cases and caveats daily. Quick reference: cheat sheet Need to read through some common use cases: offici ...
Python Click
Command line application ingredients: arguments, options(flags) stdin, stdout, stderr meaningful exit code and logging signal han ...
On-Call Helm3
Cheatsheet to help install/upgrade/rollback helm charts. Repo Chart Note chart release name can be different from chart name. Ad ...
Docker Multi-process
应用容器,一般来说只有一个main serivce process(it can spawn child processes). 需要一个 init process(PID 1) 去管理 children reaping, handle signals, 也就 ...
On-Call System Performance
Benchmark Need to first install stress, stress-ng packages, benchmark with multi-process. # stress cpu with 1 processstress --cpu ...
Docker Base Image Choice
最近针对目前的pipeline 有2个优化: 把deployer base image 单独分出来,在这一阶段安装一些general common packages. 把base image flavor 从 Alpine 换到 Debian. 对于1, ...
Grafana Quick Start
Docker Compose Demo Github repo: https://github.com/chengdol/InfraTree/tree/master/docker-monitoring The steps are in README. Graf ...
Pod/Container Memory/CPU Usage
top command ran in container within the pod shows the host machine overview metrics and container level process metrics. The reaso ...
Prometheus Quick Start
//TODO: [ ] see reading section [ ] series https://blog.freshtracks.io/a-deep-dive-into-kubernetes-metrics-b190cc97f0f6 [ ] prom c ...
On-Call Kafka Quick Check
On any of Kafka cluster nodes runs following commands. Topic # list topics created./bin/kafka-topics.sh \--bootstrap-server localh ...