mirror of
https://github.com/weaveworks/scope.git
synced 2026-03-03 02:00:43 +00:00
EbpfTracker can die when the tcp events are received out of order. This can happen with a buggy kernel or apparently in other cases, see: https://github.com/weaveworks/scope/issues/2650 As a workaround, restart EbpfTracker when an event is received out of order. This does not seem to happen often, but as a precaution, EbpfTracker will not restart if the last failure is less than 5 minutes ago. This is not easy to test but I added instrumentation to trigger a restart: - Start Scope with: $ sudo WEAVESCOPE_DOCKER_ARGS="-e SCOPE_DEBUG_BPF=1" ./scope launch - Request a stop with: $ echo stop | sudo tee /proc/$(pidof scope-probe)/root/var/run/scope/debug-bpf