临时记录

2021-11-20
1分钟阅读时长

Go

Mac 工具

  • Cutter
  • draw.io
  • MachOView
  • dbeaver
  • licecap130
  • Sequel-Pro

云原生

https://kubernetes.io/zh/docs/tasks/extend-kubectl/kubectl-plugins/

https://github.com/kubernetes/sample-cli-plugin

https://mp.weixin.qq.com/s/r7RzGUuem1GPuKnLc8XEuw

kubectl 插件

https://krew.sigs.k8s.io/plugins/

knew

# https://krew.sigs.k8s.io/docs/user-guide/setup/install/
(
  set -x; cd "$(mktemp -d)" &&
  OS="$(uname | tr '[:upper:]' '[:lower:]')" &&
  ARCH="$(uname -m | sed -e 's/x86_64/amd64/' -e 's/\(arm\)\(64\)\?.*/\1\2/' -e 's/aarch64$/arm64/')" &&
  KREW="krew-${OS}_${ARCH}" &&
  curl -fsSLO "https://github.com/kubernetes-sigs/krew/releases/latest/download/${KREW}.tar.gz" &&
  tar zxvf "${KREW}.tar.gz" &&
  ./"${KREW}" install krew
)
export PATH="${KREW_ROOT:-$HOME/.krew}/bin:$PATH"

数据库

  • redis 集群/Proxy: Twemproxy、Codis、Redis Cluster

  • dbproxy: 小米Gaea、MyCat、ShardingSphere

  • dts: maxwell、canal

  • MySQL HA: MMM | MHA | orchestrator | XenON | arksentinel | MGR | PXC

  • 分布式事务:seata、dtm、hmily

  • 类似redis:VoltDB

数据库概念

catalog、schema、database

https://github.com/flycash/interview-baguwen

Java进阶实战

https://github.com/hefrankeleyn/JAVARebuild

https://github.com/JavaCourse00

支持多语言的微服务框架 Tars-Go

https://redisbook.com

https://try.redis.io/

《企业集成模式》

Tars

helm repo add tars-stable https://tarscloud.github.io/TarsDocker/charts/stable

kubectl create namespace tars-test

helm install tars-test tars-stable/tars --namespace tars-test \
    --set tars.namespace=tars-test,tars.replicas=1,tarsnode.replicas=1,tars.host=domain.com,tars.port=6080,tars.data=/data/shared/tars-data,mysql.data=/data/shared/mysql-data,mysql.rebuild=false


curl http://10.0.0.224:8200/json/HelloWorld.PHPTarsuser.Index/jsonfunc \
-d '{"name":"postman","req":{"x":100,"y":200,"name":"postman"}}' -vvv


curl http://10.0.0.224:8200/json/Trace.TarsTraceFrontServer.FrontendObj/Add -d '{"a":1, "b":2}' -vvv; echo ""

curl http://10.0.0.224:8200/json/Trace.TarsTraceFrontServer.FrontendObj/jsonfunc \
-d '{
	"name": "postman",
	"req": {
		"x":100,
		"y":200,
		"name": "postman"
	}
}'

curl

CURL获取http流程的耗时:speed_download,time_namelookup,time_total

汇编

其他

macOS上使用Openconnect代替Cisco Anyconnect

性能测试

  • nGrinder
  • wrk

关注公众号获得更多精彩文章

公众号:程序员大兵