open-menu closeme
Engineering
github linkedin rss
  • Apply sysctl before systemd: a lesson from reserving ephemeral ports too late

    calendar Aug 1, 2026 · 7 min read · Linux Network Bottlerocket  ·
    Share on: twitter copy

    We run an OpenTelemetry Collector (otel-collector) as a systemd service on Bottlerocket. Its Prometheus metrics endpoint was configured on port 51000, which falls inside the default Linux ephemeral port range. On a small portion of EC2 instances, the otel-collector kept restarting, failing to bind with EADDRINUSE. …


    Read More

Peng Zhang

Software Engineer

Recent Posts

  • Apply sysctl before systemd: a lesson from reserving ephemeral ports too late
  • Don't hardcode fsync in your library
  • When enforcing OCI image spec broke customer containers
  • Why a Trailing Dot in DNS Can Break Your Customers
  • How cgo silently disables Go's deadlock detector
  • Replacing socat with systemd-socket-proxyd
  • You probably want to disable cgo: Go's stdlib has pure-Go implementations
  • Who killed my service: collecting kernel kill logs with OTEL

Tags

LINUX 22 GO 21 ALGORITHMS 8 BOTTLEROCKET 8 INTERVIEW 7 CONTAINER 5 CONCURRENCY 3 GUIDE 3 SYSTEMD 3 AWS 2 CONTAINERS 2 DISTRIBUTED SYSTEM 2 SELINUX 2 WEB 2
All Tags
ALGORITHMS8 AWS2 BOTTLEROCKET8 CONCURRENCY3 CONTAINER5 CONTAINERS2 CRYPTOGRAPHY1 DATABASES1 DISTRIBUTED SYSTEM2 DNS1 DOCKER1 EC21 GO21 GUIDE3 INTERVIEW7 LINUX22 NETWORK1 SELINUX2 SHELL1 SYSTEMD3 TESTING1 WEB2
[A~Z][0~9]
Peng Zhang

Copyright 2022-  PENG ZHANG. All Rights Reserved

to-top