Live data from Hacker News

New AWS UDP Load Balancing for Network Load Balancer

aws.amazon.com

1–10 of 35 posts

Re: New AWS UDP Load Balancing for Network Load Balancer

#7

That's great! Any idea what Load balancing algorithm this would use? We have a need for some stickiness in the load balancer (for example: UDP Packets from a source must be routed to the same instance, at least for a short while)

It's documented as:

> For UDP traffic, the load balancer selects a target using a flow hash algorithm based on the protocol, source IP address, source port, destination IP address, and destination port. A UDP flow has the same source and destination, so it is consistently routed to a single target throughout its lifetime. Different UDP flows have different sources, so they can be routed to different targets.

From the NLB docs at https://docs.aws.amazon.com/elasticloadbalancing/latest/netw...

Re: New AWS UDP Load Balancing for Network Load Balancer

#8
This is big for making services which rely on DNS much easier to roll out in a container environment (ECS, EKS, etc). Traditionally we've had to create custom AMI images, use CloudFormation to keep them running with EIPs, and then have those EIPs be part of runtime configuration for our services.

Re: New AWS UDP Load Balancing for Network Load Balancer

#9

Sweet. Now add support for multiple ports on a single service[1] and this load balancer might actually become useful. [1]: https://github.com/aws/containers-roadmap/issues/104

ALB !== NLB

It effects both (and that ticket is about both if go through the comments).

Re: New AWS UDP Load Balancing for Network Load Balancer

#10

Sweet. Now add support for multiple ports on a single service[1] and this load balancer might actually become useful. [1]: https://github.com/aws/containers-roadmap/issues/104

ALB !== NLB

With NLB targetting EC2 you can only specify one port per target group. To achieve multiple ports going to a single instance (or autoscaling group) you need to have one listener and target group per port.
Post reply on HN