HarshadRanganathan / harshadranganathan.github.io

Personal Website
MIT License
0 stars 2 forks source link

k8s traffic management #105

Open HarshadRanganathan opened 2 years ago

HarshadRanganathan commented 2 years ago

External Traffic Policy

https://www.asykim.com/blog/deep-dive-into-kubernetes-external-traffic-policies

Local

Dedicated LB -> Health Check + Pod Anti-Affinity (prevent uneven load spread) Shared LB -> Pod in every node

Pods

https://kubernetes.io/docs/concepts/scheduling-eviction/topology-spread-constraints/

Inter-pod

https://pumpingco.de/blog/optimizing-network-traffic-across-availability-zones-in-kubernetes/

Pod disruption budget

https://itnext.io/kubernetes-draining-nodes-properly-79e18dca4d5e

Pod Anti Affinity

https://community.pivotal.io/s/article/how-do-I-evenly-distribute-my-pods-across-a-topology-without-using-pod-anti-affinity?language=en_US

Topology Spread

https://awstip.com/kubernetes-and-resilience-pod-topology-spread-constraints-1bf46205a3e1 https://medium.com/wise-engineering/avoiding-kubernetes-pod-topology-spread-constraint-pitfalls-d369bb04689e https://awstip.com/kubernetes-and-resilience-pod-topology-spread-constraints-1bf46205a3e1

Node Placement

https://itnext.io/kubernetes-pods-and-workernodes-control-the-placement-of-the-pods-on-the-nodes-359bc958a202

Istio

Istio Deployment

https://kubernetes.io/docs/concepts/scheduling-eviction/topology-spread-constraints/

https://github.com/istio/istio/pull/38558

Apps

https://istio.io/latest/docs/tasks/traffic-management/locality-load-balancing/failover/

https://aws.amazon.com/blogs/containers/addressing-latency-and-data-transfer-costs-on-eks-using-istio/

General

https://medium.com/expedia-group-tech/request-load-distribution-in-kubernetes-and-aws-e139a3fec4ba

HarshadRanganathan commented 2 years ago

image

HarshadRanganathan commented 2 years ago

image

HarshadRanganathan commented 2 years ago
image
HarshadRanganathan commented 1 year ago

https://medium.com/dlt-labs-publication/kubernetes-understanding-pod-affinity-taint-toleration-2f9b9b218dd5

HarshadRanganathan commented 1 year ago

https://medium.com/wise-engineering/avoiding-kubernetes-pod-topology-spread-constraint-pitfalls-d369bb04689e

HarshadRanganathan commented 1 year ago

HTTP connection drains kube-proxy load balancing strategies

HarshadRanganathan commented 1 year ago

https://learnk8s.io/kubernetes-long-lived-connections

https://stackoverflow.com/questions/61665267/kubernetes-service-does-not-balance-the-load-fairily-under-load

https://groups.google.com/g/kubernetes-users/c/lvfyKzUf-Vg?pli=1

HarshadRanganathan commented 1 year ago

Cluster communication

ClusterIP Service Short-lived TCP (HTTP/1) vs Long-lived TCP (HTTP/2, gRPC) connections

Long-lived -> handle client side through code (load balancing, config, keep-alive etc.) or service mesh Short-lived -> kube-proxy, ip tables (round robin - not exactly, probabilistic distribution) - for burst traffic will be uneven, for constant load traffic load balanced eventually)

High availability

Pod Anti-Affinity Topology spreads https://github.com/kubernetes-sigs/descheduler/blob/master/docs/user-guide.md

HarshadRanganathan commented 1 year ago

https://kubernetes.io/blog/2022/12/30/advancements-in-kubernetes-traffic-engineering/

HarshadRanganathan commented 1 year ago

https://aws.amazon.com/blogs/containers/exploring-the-effect-of-topology-aware-hints-on-network-traffic-in-amazon-elastic-kubernetes-service/

HarshadRanganathan commented 1 year ago

https://blog.devgenius.io/centralising-traffic-management-with-a-single-alb-and-multiple-ingresses-using-ingress-groups-4ec78d9c560f

HarshadRanganathan commented 6 months ago

https://kube.fm/pod-topology-martin