# Degraded LoadBalancer Ingress Endpoint Performance (AWS)

## Problem

A Kubernetes LoadBalancer Ingress endpoint for a particular service is slow to respond (± \~3 seconds).

{% tabs %}
{% tab title="None" %}

```none
❯ httpstat http://[SVC/LB Ingress FQDN]:8080/health
Connected to X.X.X.X:8080 from 127.0.0.1:62137
HTTP/1.1 200x-request-id: fae0bb7f-9a9b-402d-84a6-a1d1438820a7
Content-Type: application/vnd.spring-boot.actuator.v3+json
Content-Length: 15  
DNS Lookup TCP Connection Server Processing Content Transfer[ 6ms | 0ms | 20045ms | 1ms ] | | | | namelookup:6ms | | | connect:6ms | | starttransfer:20051ms | total:20052ms
```

{% endtab %}
{% endtabs %}

## Environment

* Platform9 Managed Kubernetes - All Versions
* AWS Cloud Provider
* Flannel

## Cause

Flannel is unable to contact etcd. A firewall appliance may be present within the VPC which is blocking the traffic, especially on Port 4001 which is required for etcd communication as per the [Networking Prerequisites](https://platform9.com/docs/bare-metal/networking-prerequisites).

## Resolution

1. Whitelist the ports called out in the [Networking Prerequisites](https://platform9.com/docs/bare-metal/networking-prerequisites), especially for etcd.
2. Restart Flannel on the worker node(s).

{% tabs %}
{% tab title="None" %}

```none
$ docker stop flannel
$ docker start flannel
```

{% endtab %}
{% endtabs %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://platform9.com/kb/pmk/solutions/degraded-loadbalancer-ingress-endpoint-performance-aws.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
