简单的Wireshark远程抓包方法 一行sh命令即可: ssh root@<IP> tcpdump -i <网卡> -p -U -w - 'tcp port 80' | wireshark -i - -k -p K8S容器抓包方法 首先找到容器所
Nginx配置转发DNS 配置如下: upstream dns_servers { server <UPSTREAM> weight=2 max_fails=1 fail_timeout=5s; } server { listen 53 udp; listen 53; #tcp proxy_pass dns_servers; proxy_timeout 3s; proxy_responses 1; error_log <LOG_PATH> error; } 比较重要的是必须设置proxy_responses和
查看cluster健康状态(颜色、分片等): http://127.0.0.1:9200/_cluster/health?pretty 查看node健康状态: http://127.0.0.1:9200/_cat/nodes?v&pretty 查看node thread_pool配置: http://127.0.0.1:9200/_nodes/thread_pool?pretty 查看节点写入rejected
参考文章:http://blog.sina.com.cn/s/blog_4d88b5b50102wu8i.html 我的测试代码片段: #define FILENAME "/tmp/test" static
实现自定义的Spring AOP注解 https://www.baeldung.com/spring-aop-annotation#creating-our-aspect Controller的Exception处理 https://www.baeldung.com/exception-handling-for-rest-with-spring Jackson使用动态的Json https://www.baeldung.com/jackson-mapping-dynamic-object
kubernetes查找kube-scheduler和kube-controller-manager的leader的方法 kube-scheduler kubectl -n kube-system get endpoints kube-scheduler -o jsonpath='{.metadata.annotations.control-plane\.alpha\.kubernetes\.io/leader}' kube-controller-manager