mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-09 22:59:59 +00:00
564a02f344
This commit introduces two key enhancements: the integration of Grafana Tempo for distributed tracing and the implementation of a dual-stack TCP listener for improved network compatibility. - **Observability**: - Adds the `tempo` service to the `docker-compose.yml` observability stack. - Tempo is configured to collect and store traces, integrating with the existing OpenTelemetry setup. - A custom `tempo-entrypoint.sh` script is included to manage volume permissions on startup. - **Networking**: - Modifies `http.rs` to support dual-stack (IPv4/IPv6) connections on a single socket. - By setting the `IPV6_V6ONLY` socket option to `false`, the server can now accept both IPv6 and IPv4-mapped IPv6 traffic, enhancing cross-platform support.
8 lines
379 B
Bash
Executable File
8 lines
379 B
Bash
Executable File
#!/bin/sh
|
|
# Run as root to fix directory permissions
|
|
chown -R 10001:10001 /var/tempo
|
|
|
|
# Use su-exec (a lightweight sudo/gosu alternative, commonly used in Alpine mirroring)
|
|
# Switch to user 10001 and execute the original command (CMD) passed to the script
|
|
# "$@" represents all parameters passed to this script, i.e. command in docker-compose
|
|
exec su-exec 10001:10001 /tempo "$@" |