You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
git bisect gave me this commit: (A manual test of that vs HEAD~ (relative to that) agrees)
c7e76967c8a192d39fb201c844cd4f42ed70cd52 is the first bad commit
commit c7e76967c8a192d39fb201c844cd4f42ed70cd52
Author: Clayton O'Neill <claytono@github.com>
Date: Sun May 26 09:08:54 2019 -0400
Add internal event queuing and flushing
At high traffic levels, the locking around sending on channels can cause
a large amount of blocking and CPU usage. These adds an event queue
mechanism so that events are queued for short period of time, and
flushed in batches to the main exporter goroutine periodically.
The default is is to flush every 1000 events, or every 200ms, whichever
happens first.
Signed-off-by: Clayton O'Neill <claytono@github.com>
:100644 100644 749d1a81046def251a122bf1705254597f5c7b41 6a43b2c5c4d763e23a867601311edfcce00fe751 M README.md
:100644 100644 688d7bd86de4d591ef00358d68e41515593dbd9b e243ed16622d85c30af8a9585a2b4c81014eb9d9 M bridge_test.go
:000000 100644 0000000000000000000000000000000000000000 258b92304f65668f2076aa49eba8ed2d6263b684 A event.go
:000000 100644 0000000000000000000000000000000000000000 97a27228e89f5afdba69ff2cbccc90ed9470810f A event_test.go
:100644 100644 0485394e4b2c57690c07cbc93b26d2934fa8ae22 c252e828bb4969a3b13e2da6208f469d3eb32451 M exporter.go
:100644 100644 52cf1732a240b35a7379182815ec731de40c39f8 7978ce3c8e32d0a9d27084345bffdf5ab8732486 M exporter_benchmark_test.go
:100644 100644 747923253ab999cb8aeddf4b3d217603ef698e48 7172004212f6245b24130ab9a10e3ddb8585f6c6 M exporter_test.go
:100644 100644 26fe6172497e64212dee6c2d7df8081ce1de60d0 0379c50848e7b7dbd7d303a117d585465d4bc604 M main.go
:100644 100644 c338a4499ab32c0677f43656729613a415aa2d9e 7d77b710cbcd1c01bf64d2a55f5920bdd83667f0 M telemetry.go
bisect run success
Files added in root of repo copy to run automated bisect: (I ran the test.sh in Docker, since I was testing from WSL, where the Unix sockets does not work properly, so Docker was an easy solution) (On a Linux workstation, test_code.sh can likely just build and run test.sh directly)
Dockerfile-test (Debian used due to the need to install stuff, like ncat)
It seems like #235 might be related to this as well. (Possibly a similar oversight for the unigram listener to the TCP one) (The fix seems similar as well)
The current statds_exporter crashes with a segmentation fault if data is sent to the unix socket.
I'm using random test data sent with ncat for a quick test.
Error on the bad revision from the bisect: (Line numbers in master might be slightly different)
git bisect gave me this commit: (A manual test of that vs HEAD~ (relative to that) agrees)
Files added in root of repo copy to run automated bisect: (I ran the
test.sh
in Docker, since I was testing from WSL, where the Unix sockets does not work properly, so Docker was an easy solution) (On a Linux workstation, test_code.sh can likely just build and run test.sh directly)Dockerfile-test (Debian used due to the need to install stuff, like ncat)
test.sh (this basically works by checking whether the process is still running after sending data to the unix socket)
test_code.sh
Bisect process:
The text was updated successfully, but these errors were encountered: