gRPC clients wait ~20 s on DNS for each connection when serverAddress is a short name
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 55/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- go, grpc
- Lĩnh vực
- backend, networking
Hướng nghiên cứu
Start with the listed dials in core/internal/client/klioclient/grpcclient/connection.go:80 and core/cmd/admin/client.go:43, then trace the openGRPCAPIRepository dial in the Klio Kopia fork. Check how grpc-go's DNS resolver is configured and reproduce with a short serverAddress while watching CoreDNS logs. Done means short-name connections avoid the unused SRV and TXT lookups and connect without the DNS delay.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Description
When serverAddress is a short name (for example klio-local.default), each
gRPC dial to the Klio server waits about 20 s before it connects.
The grpc-go dns resolver does two DNS lookups that Klio does not use:
SRV _grpclb._tcp.<host>TXT _grpc_config.<host>
The pod has ndots:5, so these names do not match the cluster search domains.
CoreDNS sends them to the upstream DNS server. If the upstream server does not
answer, each lookup takes 10 s (5 s timeout, 2 attempts).
Kopia makes about 10 calls for each backup or restore. Because of this, a
32 MB backup takes 5 min 40 s. With the FQDN, the same backup takes 2 s.
This problem occurs in every environment where the upstream DNS is slow or
blocks SRV/TXT queries. One example is Docker Desktop 4.98.
Affected dials
- Kopia fork (
cloudnative-pg/kopia, branchklio):openGRPCAPIRepository.
This dial causes most of the delay. core/internal/client/klioclient/grpcclient/connection.go:80(WAL streaming
and WAL restore).core/cmd/admin/client.go:43.
How to reproduce
- Set
serverAddressto a short name, for exampleklio-local.default. - Make sure that the upstream DNS does not answer TXT or SRV queries.
- Run
kopia repository connect serverfrom theklio-plugincontainer. - Look at the CoreDNS logs. You see
SRV: ... i/o timeoutand
TXT: ... i/o timeoutfor the server name.
Expected result
A short serverAddress connects as fast as the FQDN. Klio does not depend on
upstream DNS answers for SRV or TXT records.
Workaround
- Use the FQDN as
serverAddressand add it to the SANs of the server
certificate. - Or set
GRPC_ENABLE_TXT_SERVICE_CONFIG=falsein the sidecar. This removes
half of the delay.
- Ngôn ngữ chính
- Go
- Star
- 40
- Fork
- 10
- Merge trung bình
- 19 giờ 58 phút
- Pull request đã merge (30 ngày)
- 175
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của cloudnative-pg/klio
-
DLQ activity is not observable through metricsCó thể đã có người làm @gabriele-wolfox đã nhận 1 ngày trước. Đang mở
cloudnative-pg/klio#610 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Tier1 WAL retention can delete WALs not yet relayed to tier2Có thể đã có người làm @gabriele-wolfox đã nhận 6 ngày trước. Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
cloudnative-pg/klio#578 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Evaluate reuse of machinery's OpenTelemetry log export to complete native OTEL support (logs, metrics, traces)Có thể đã có người làm @armru đã nhận 8 ngày trước. Đang mởenhancement
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
cloudnative-pg/klio#549 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Replace OLM catalog managementCó thể đã có người làm @jbattiato đã nhận 8 ngày trước. Đang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 48/100
cloudnative-pg/klio#526 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
cloudnative-pg/klio#525 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của cloudnative-pg/klio
Issue tương tự
-
Case detail: main-column section headers are hard to distinguish from body textCó thể đã có người làm @yubessy đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
ubie-oss/hecatoncheires#347 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[OperatorHub] Add OLM installation method to the documentation #1193Có thể đã có người làm @NiccoloFei đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
cloudnative-pg/plugin-barman-cloud#1233 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 67/100
Maintainer thường phản hồi trong vòng 2 ngày
-
build: make check-linter version tests deterministicCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
Maintainer thường phản hồi trong vòng 1 ngày