added comments about common netdata tweaks
Costa Tsaousis (ktsaou) committed
Aug 30, 2017 at 23:50 UTC
135502ac04b46ebdf57bff6e2da407009bb0d296
1 file changed
+23
-7
system/netdata.service.in
+23
-7
@@ -6,13 +6,9 @@ After=network.target httpd.service squid.service nfs-server.service mysqld.servi
6
Type=simple
7
User=netdata
8
Group=netdata
9
-ExecStart=@sbindir_POST@/netdata -D
10
-
11
-# The minimum netdata Out-Of-Memory (OOM) score.
12
-# netdata (via [global].OOM score in netdata.conf) can only increase the value set here.
13
-# To decrease it, set the minimum here and set the same or a higher value in netdata.conf.
14
-# Valid values: -1000 (never kill netdata) to 1000 (always kill netdata).
15
-OOMScoreAdjust=0
9
+RuntimeDirectory=netdata
10
+RuntimeDirectoryMode=0775
11
+ExecStart=@sbindir_POST@/netdata -P /run/netdata/netdata.pid -D
12
13
# saving a big db on slow disks may need some time
14
TimeoutStopSec=60
@@ -21,5 +17,25 @@ TimeoutStopSec=60
17
Restart=on-failure
18
RestartSec=30
19
20
+# The minimum netdata Out-Of-Memory (OOM) score.
21
+# netdata (via [global].OOM score in netdata.conf) can only increase the value set here.
22
+# To decrease it, set the minimum here and set the same or a higher value in netdata.conf.
23
+# Valid values: -1000 (never kill netdata) to 1000 (always kill netdata).
24
+#OOMScoreAdjust=0
25
+
26
+# By default netdata switches to scheduling policy idle, which makes it use CPU, only
27
+# when there is spare available.
28
+# Valid policies: other (the system default) | batch | idle | fifo | rr
29
+#CPUSchedulingPolicy=other
30
+
31
+# This sets the maximum scheduling priority netdata can set (for policies: rr and fifo).
32
+# netdata (via [global].process scheduling priority in netdata.conf) can only lower this value.
33
+# Priority gets values 1 (lowest) to 99 (highest).
34
+#CPUSchedulingPriority=1
35
+
36
+# For scheduling policy 'other' and 'batch', this sets the lowest niceness of netdata.
37
+# netdata (via [global].process nice level in netdata.conf) can only increase the value set here.
38
+#Nice=0
39
+
40
[Install]
41
WantedBy=multi-user.target