Configure Liveness and Readiness Probes (Heartbeat for kubernetes pods)

https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/ This page shows how to configure liveness and readiness probes for Containers. The kubelet uses liveness probes to know when to restart a... Read More | Share it now!

Mount remote folder on Mac

Mount remote folder: Unmount remote folder: If Unmount failed for /mnt/localfolder: and kill the process using localfolder ... Read More | Share it now!

Git 忽略提交 .gitignore

在使用Git的过程中,我们喜欢有的文件比如日志,临时文件,编译的中间文件等不要提交到代码仓库,这时就要设置相应的忽略规则,来忽略这些文件的提交。 规则 作用 /mtk ... Read More | Share it now!

Nginx Metrix

https://github.com/ekho/nginx-metrix Description Nginx out-of-the-box has not the most complete status page provided by status module. It is worth noting that in Nginx Plus, this module provides more information. But... Read More | Share it now!

Cassandra Setting a Consistency Level

The consistency level used for a query determines how many of the replicas of the data you are interacting with need to respond for the query to be considered a success. By default, ConsistencyLevel.LOCAL_ONE will be used for all queries. You... Read More | Share it now!

Connect to cassandra from remote

Alternate solution to Kat. Worked with Ubuntu 16.04 ssh into server server_user@**.**.**.** Stop cassandra if running: Check if running with ps aux | grep cassandra If running, will output a large block of commands / flags, e.g.ubuntu 14018... Read More | Share it now!

docker save / load image

docker save Estimated reading time: 1 minute Description Save one or more images to a tar archive (streamed to STDOUT by default) Usage Options Name, shorthand Default Description --output , -o Write to a file, instead of STDOUT Parent... Read More | Share it now!

用 Touch ID 解锁 sudo 密码?一条命令就够了

https://zhuanlan.zhihu.com/p/31529925 前言 经常使用命令行的小伙伴一定对 sudo 命令不陌生,它可以以特定用户身份执行特定的命令。很多时候我们也会用它来执行系统管理命令。 但是,每次以非... Read More | Share it now!

DUMP LOAD data from mysql to mysql

The ‘mysqldump’ command is used to dump databases managed by MySQL. Let’s consider three the most useful cases of MySQL database dumping. Load table ... Read More | Share it now!