brew install https://gist.githubusercontent.com/chrislusf/8b4e7c19551ba220232f037b43c0eaf3/raw/01465b867b8ef9af7c7c3fa830c83666c825122d/thrift.rb
[......]
brew修改国内镜像
# 替换brew.git:
cd "$(brew --repo)"
git remote set-url origin https://mirrors.ustc.edu.cn/brew.git
# 替换homebrew-core.git:
cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core"
git remote set-url origin https://mirrors.ustc.edu.cn/homebrew-core[......]
Google Analytics(GA)埋点教程
https://tate-young.github.io/2019/04/24/google-analytics.html[......]
es常用命令
1 查看所有索引
GET /_cat/indices?v
2 集群状态监控
GET _cluster/health
3 集群某索引的详细统计信息
GET /index-name/_stats
4 查看索引的分片在不同结点之间的分布
GET _cat/shards/索引名
5 索引的统计信息
GET _all/_stats
6 查看索引mapping
GET /index-name/_mapping?pretty
7 给索引mapping添加字段
POST /index-[......]
fio测试磁盘随机读写性能(iops)
随机读
fio --randrepeat=1 --ioengine=libaio --direct=1 --gtod_reduce=1 --name=wtest --filename=wtest --bs=4k --iodepth=64 --size=1G --readwrite=randread
在我本地测试,SSD是80K,HDD是0.6K
阿里云测试,高效云盘21K,SSD云盘24K,ESSD云盘28K
随机写
fio --randrepeat=1 --ioengine=[......]