腾讯云 Kubernetes 高性能网络技术揭秘——使用 eBPF 增强 IPVS 优化 K8s 网络性能-范建明
管理service • IPVS 仅仅提供了DNAT,还需要借用 iptables+conntrack 做SNAT • 控制面和数据面算法复杂度都是O(1) • 经历了二十多年的运行,比较稳定成熟 • 支持多种调度算法 优势 IPVS mode 不足之处 • 没有绕过conntrack,由此带来了性能开销 • 在k8s的实际使用中还有一些Bug 02 优化的方法 编译成eBPF中间代码 • 注入内核 • 挂载到network traffic control • 报文激发eBPF代码 技术创新点一 • IPVS 对conntrack的功能依赖 • Iptables SNAT • 具体如何绕过conntrack? • 进报文 • 将处理请求的钩子从nf local-in 前移到nf pre-routing • skb的路由指针是NULL • 处理分片 ip_output -> NF postrouting -> ip_finish_output • 修改成: • 对kenel 做了hack,直接访问ip_finish_output IPVS 绕过conntrack 技术创新点二 • 在linux traffic control上挂一段eBPF 代码,在网卡出报文之前做SNAT • 尽量将大部分代码放在eBPF中,方便升级和维护。 • eBPF loader0 码力 | 27 页 | 1.19 MB | 9 月前336-云原生监控体系建设-秦晓辉
所在宿主 的监控 Kubernetes所在宿主的监控 宿主的监控,比较常规和简单,无非就是 CPU、Mem、Disk、DiskIO、Net、Netstat、Processes、 System、Conntrack、Vmstat 等等。原理就是读取 OS 的数据(通过 /proc 和 syscall 等)做一些简 单计算。有很多采集器可以选择: Telegraf Grafana-agent Datadog-agent0 码力 | 32 页 | 3.27 MB | 5 月前3Oracle VM VirtualBox 4.1.40 User Manual
IPv6 (bug #9380) • Linux hosts / Bridged Networking: fixed the problem with leaking connections in conntrack (bug #11178) • Audio: fixed broken ALSA & PulseAudio on some Linux hosts due to invalid symbol reso-0 码力 | 310 页 | 4.87 MB | 5 月前3Oracle VM VirtualBox 4.2.32 User Manual
(bug #10905) • Linux hosts / Bridged Networking: fixed the problem with leaking connections in conntrack (bug #11178) • Linux Additions: added support for ConsoleKit sessions in the vminfo service of VBoxSer-0 码力 | 348 页 | 5.93 MB | 5 月前3Oracle VM VirtualBox 4.3.36 User Manual
15 Change log • Linux hosts / Bridged Networking: fixed the problem with leaking connections in conntrack (bug #11178) • Linux Additions: added support for ConsoleKit sessions in the vminfo service of VBoxSer-0 码力 | 380 页 | 3.79 MB | 5 月前3
共 5 条
- 1