aws-notebook

My AWS Notebook

View the Project on GitHub kyhau/aws-notebook

Elastic Load Balancing (ELB)

It offers 3 types of load balancers that all feature the high availability, automatic scaling, and robust security necessary to make your applications fault tolerant.

  1. Application Load Balancer
  2. Network Load Balancer
  3. Classic Load Balancer

See also Load Balancer Comparisons.

More about NLB:


Application Load Balancer (ALB)

Network Load Balancer (NLB)

Classic Load Balancer (CLB)

NLB vs. CLB Timeout

Ref: https://medium.com/tenable-techblog/lessons-from-aws-nlb-timeouts-5028a8f65dda

For each request that a client makes through a Network Load Balancer, the state of that connection is tracked. The connection is terminated by the target. If no data is sent through the connection by either the client or target for longer than the idle timeout, the connection is closed. If a client sends data after the idle timeout period elapses, it receives a TCP RST packet to indicate that the connection is no longer valid.

In other words, AWS NLBs silently terminates your connection upon idle timeout. If an application tries to send data on the socket after idle timeout, it receives an RST packet.

NLB - Connections time out for requests from a target (TargetType=Instance) to its load balancer

Source:

NLB Access Log Limitation

Issue: Enabled access log for NLB but no log were generated in the S3 bucket.

From AWS Support: Please note that NLB access logs are created only if the load balancer has a TLS listener and they contain information only about TLS requests [1]. NLB access log is not currently support on TCP, UDP or TCP_UDP listener.

Although the fields are slightly different, but using VPC logs [2][3] to record the flow messages for each NLB network interface is an alternative that you can consider. To find the network interfaces of your NLB, please type the name of your NLB in the search field of Network Interfaces navigation pane [4].

In addition, you can also consider using the TLS listener [5] for your NLB if it meets your needs.

References:

NLB - A target behind a NLB cannot connect to the same Network Load Balancer

Why can’t a target behind my Network Load Balancer connect to its own Network Load Balancer?