hashicorp / hashicorp/consul

consul dns unfair load balance

Open
#8,058 0 comments 0 reactions 0 assignees View on GitHub
theme/dns type/question
Dominant language
Go
Stars
30.1k
Forks
4.6k
Avg merge
2d 6h
Merged PRs (30d)
43

Description

#### Overview of the Issue

One backend server's network card is tied to multiple IPs, IP is in different segments of the network.
Consul dns with default config and has a unfair load balance.
There are about 30 TCP connections, most DNS resolvers are directed to the same server except for the native.

#### Reproduction Steps

Steps to reproduce this issue, eg:

backend server:
server1: 192.168.3.99 192.168.2.98
server2: 192.168.3.97

two consul agent:
192.168.3.166
192.168.3.89

dnsmasq config:
server=/consul/192.168.3.166#8600
server=/consul/192.168.3.89#8600

service use 192.168.3.99 to register, but most dns resolvers are directed to 192.168.3.97

Whether additional configuration is required?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.