JDK HashMap
JDK HashMap 知识要点 数组 + 链表 + 红黑树(JDK 8) JDK 7 并发扩容时CPU占用高问题 capacity, default table length 16 链表长度超过8时转红黑树 扩容阀值threshold = table length * load ...
prometheus quantile
histogram123456789101112131415161718192021222324Imagine that you create a histogram with 5 buckets with values: 0.5, 1, 2, 3, 5. Let’s call this hi...
Spring LDAP 认证
Spring提供了专门的LDAP集成库和解决方案。参考:https://spring.io/guides/gs/authenticating-ldap/ 参考用户文档中容易产生一个误区。 123456789101112131415161718192021222324252627@Configu...
kube proxy
kube-proxyAll of the worker nodes run a daemon called kube-proxy, which watches the API server on the master node for the addition and removal of S...
vps + shadowsocks 上网
vpsvps 可以从vultr购买,5美元一个月,ubuntu日本(1CPU,1G内存,25G SSD,1000G网络带宽/月),访问速度还行。 shadowsocksvps上安装shadowsocks服务端12345678910apt-get updateapt-get insta...
程序员Mac环境下的文本编辑器
window下用UE,editor++,记事本等,转到mac下开发后经常发现存点东西很不方便。经同事推荐分别试用了ATOM和Visual Studio Code。 ATOM一开始试用的是ATOM,因为github渊源。样式定义也很方便大气,唯一不爽的是命令行集成的不是很好。 Visual St...
Jdk8 Upgrade
jdk6 升级到 jdk8 注意事项 二进制兼容 源代码兼容 中间件(tomcat/spring)开源库版本升级 jvm启动参数permSize->meta space spring3 -> spring 4 代码覆盖率工具 emma -> Jacoco 通过设置 ...
MBP install minikube
MBP install minikube背景MBP can access google via shadowsocks locally. 本来想用mac docker-for-desktop方案,参考https://github.com/maguowei/k8s-docker-for-mac,...
Docker Cheat Sheet
Docker Cheat SheetWant to improve this cheat sheet? See the Contributing section! Table of Contents Why Docker Prerequisites Installation Containe...