From 161ba1592f5412bd378ace104979ddb66cd33973 Mon Sep 17 00:00:00 2001 From: Markos Fountoulakis <44345837+mfundul@users.noreply.github.com> Date: Mon, 16 Mar 2020 13:39:00 +0200 Subject: Fix streaming scaling (#8375) * Disallow multiple streaming connections to the same master agent * Reject multiple streaming connections quickly without blocking * Increase timeout for systemd service shutdown to give time to flush the db. * Optimize page correlation ID to use atomic counter instead of locks * Reduce contention in global configuration mutex * Optimize complexity of inserting configuration sections from O(N) to O(1) * Reduce overhead of clockgettime() by utilizing CLOCK_MONOTONIC_COARSE when applicable. * Fix unit test compile errors --- system/netdata.service.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'system/netdata.service.in') diff --git a/system/netdata.service.in b/system/netdata.service.in index 3abb16460c..e9edb229cf 100644 --- a/system/netdata.service.in +++ b/system/netdata.service.in @@ -21,7 +21,7 @@ ExecStartPre=/bin/chown -R netdata:netdata @localstatedir_POST@/run/netdata PermissionsStartOnly=true # saving a big db on slow disks may need some time -TimeoutStopSec=60 +TimeoutStopSec=150 # restart netdata if it crashes Restart=on-failure -- cgit v1.2.3