devops icon indicating copy to clipboard operation
devops copied to clipboard

devops 经验总结实践与产品化

Results 126 devops issues
Sort by recently updated
recently updated
newest added

# ngcloud.conf ``` server { listen 80; server_name www.ngcloud.cc; charset utf-8; access_log /var/log/nginx/ngcloud.access.log main; location / { proxy_pass http://127.0.0.1:18080; } #配置一个静态web服务,web服务使用前端路由 location /cmp { alias /opt/ngcloud/dist; index index.html index.htm; }...

按照你的https://www.cnblogs.com/heidsoft/p/7698002.html 这个贴安装的, kubectl get nodes 报错: the server doesn't have a resource type "nodes" 请问这是什么原因呢?

ls -l --time-style=full-iso ls -l --time-style=long-iso ls -l --time-style=iso ls -l --time-style=locale ls -l --time-style=+%H:%M:%S:%D ls --full-time ls –-format=across ls --format=comma ls --format=horizontal ls --format=long ls --format=single-column ls --format=verbose ls...

``` 说明: netstat命令用于显示各种网络相关信息,如网络连接,路由表,接口状态 (Interface Statistics),masquerade 连接,多播成员 (Multicast Memberships) 等等。 语法: -a或--all 显示所有连线中的Socket。 -A或-- 列出该网络类型连线中的相关地址。 -c或--continuous 持续列出网络状态。 -C或--cache 显示路由器配置的快取信息。 -e或--extend 显示网络其他相关信息。 -F或--fib 显示FIB。 -g或--groups 显示多重广播功能群组组员名单。 -h或--help 在线帮助。 -i或--interfaces 显示网络界面信息表单。 -l或--listening 显示监控中的服务器的Socket。...

# Ubuntu GPU 驱动安装 ``` #!/bin/bash # install CUDA Toolkit v8.0 # instructions from https://developer.nvidia.com/cuda-downloads (linux -> x86_64 -> Ubuntu -> 16.04 -> deb (network)) CUDA_REPO_PKG="cuda-repo-ubuntu1604_8.0.61-1_amd64.deb" wget http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64/${CUDA_REPO_PKG} sudo dpkg...

https://tldp.org/LDP/tlk/tlk.html

https://www.alibabacloud.com/help/zh/alinux/user-guide/disable-the-estimation-feature-of-ipvs https://www.ebpf.top/post/ebpf_network_kpatch_ipvs/ https://lore.kernel.org/netdev/[email protected]/T/ https://docs.kernel.org/networking/ipvs-sysctl.html https://zhuanlan.zhihu.com/p/627514565 https://blog.tianfeiyu.com/2019/11/18/kube_proxy_ipvs/ https://elixir.bootlin.com/linux/v5.8.18/source/net/netfilter/ipvs/ip_vs_core.c#L1 https://blog.gmem.cc/ipvs-and-keepalived https://kubernetes.io/docs/reference/networking/virtual-ips/#proxy-mode-ipvs https://medium.com/google-cloud/load-balancing-with-ipvs-1c0a48476c4d https://www.tkng.io/services/clusterip/dataplane/ebpf/ https://arthurchiao.art/blog/cracking-k8s-node-proxy/ https://blog.tianfeiyu.com/2019/10/31/k8s_service_theory/ https://plantegg.github.io/2020/01/22/kubernetes%20service/

![image](https://github.com/heidsoft/devops/assets/1329974/64b2a6b3-de69-4ba4-93b3-630469c15d36)

Keepalived是一种为了实现Linux服务器高可用的软件,它主要使用的是VRRP(Virtual Router Redundancy Protocol)协议,也就是虚拟路由冗余协议。 VRRP协议可以使得在主路由器出现故障时,备用路由器能够迅速接管网络,保证网络的正常运行。VRRP协议可以确保网络不间断,并且在切换过程中,网络用户无感知。 Keepalived不仅可以用来实现网络服务的高可用,还可以用来实现负载均衡以及故障恢复。 Keepalived的工作原理是,通过VRRP协议,将两台或者多台服务器配置成一组,其中一台作为Master(主),其他的作为Backup(备)。在正常情况下,所有的网络请求都会发送到Master服务器,如果Master服务器出现故障,那么网络请求会自动切换到Backup服务器,从而实现高可用。 在Keepalived中,抢占模式与非抢占模式是通过"nopreempt"参数进行配置区别的。 在配置文件中,如果加上了"nopreempt"这一行,那么就是非抢占模式。如果没有这一行,那么就是抢占模式。 在抢占模式中(preempt_mode),一旦主服务器恢复,它会立即从备份服务器中抢占回虚拟IP,恢复主服务器的角色。而在非抢占模式中(nopreempt),即使主服务器恢复,也要等到备份服务器出现故障或者宕机,才会切换回主服务器。 例如: ``` vrrp_instance VI_1 { state MASTER interface eth0 virtual_router_id 51 priority 101 nopreempt #非抢占模式 advert_int 1 authentication { auth_type...

perf stat -e LLC-loads,LLC-load-misses -a -I 1000 root@dev01:~# perf list List of pre-defined events (to be used in -e): alignment-faults [Software event] bpf-output [Software event] context-switches OR cs [Software event]...