summaryrefslogtreecommitdiffstats
path: root/docs/high-performance-netdata.md
diff options
context:
space:
mode:
Diffstat (limited to 'docs/high-performance-netdata.md')
-rw-r--r--docs/high-performance-netdata.md20
1 files changed, 10 insertions, 10 deletions
diff --git a/docs/high-performance-netdata.md b/docs/high-performance-netdata.md
index a9947d9bc..553ad6da0 100644
--- a/docs/high-performance-netdata.md
+++ b/docs/high-performance-netdata.md
@@ -1,18 +1,18 @@
-# High performance netdata
+# High performance Netdata
-If you plan to run a netdata public on the internet, you will get the most performance out of it by following these rules:
+If you plan to run a Netdata public on the internet, you will get the most performance out of it by following these rules:
## 1. run behind nginx
-The internal web server is optimized to provide the best experience with few clients connected to it. Normally a web browser will make 4-6 concurrent connections to a web server, so that it can send requests in parallel. To best serve a single client, netdata spawns a thread for each connection it receives (so 4-6 threads per connected web browser).
+The internal web server is optimized to provide the best experience with few clients connected to it. Normally a web browser will make 4-6 concurrent connections to a web server, so that it can send requests in parallel. To best serve a single client, Netdata spawns a thread for each connection it receives (so 4-6 threads per connected web browser).
-If you plan to have your netdata public on the internet, this strategy wastes resources. It provides a lock-free environment so each thread is autonomous to serve the browser, but it does not scale well. Running netdata behind nginx, idle connections to netdata can be reused, thus improving significantly the performance of netdata.
+If you plan to have your Netdata public on the internet, this strategy wastes resources. It provides a lock-free environment so each thread is autonomous to serve the browser, but it does not scale well. Running Netdata behind nginx, idle connections to Netdata can be reused, thus improving significantly the performance of Netdata.
In the following nginx configuration we do the following:
-- allow nginx to maintain up to 1024 idle connections to netdata (so netdata will have up to 1024 threads waiting for requests)
+- allow nginx to maintain up to 1024 idle connections to Netdata (so Netdata will have up to 1024 threads waiting for requests)
-- allow nginx to compress the responses of netdata (later we will disable gzip compression at netdata)
+- allow nginx to compress the responses of Netdata (later we will disable gzip compression at Netdata)
- we disable wordpress pingback attacks and allow only GET, HEAD and OPTIONS requests.
@@ -65,14 +65,14 @@ Then edit `/etc/netdata/netdata.conf` and set these config options:
These options:
-- `[global].bind socket to IP = 127.0.0.1` makes netdata listen only for requests from localhost (nginx).
-- `[global].access log = none` disables the access.log of netdata. It is not needed since netdata only listens for requests on 127.0.0.1 and thus only nginx can access it. nginx has its own access.log for your record.
+- `[global].bind socket to IP = 127.0.0.1` makes Netdata listen only for requests from localhost (nginx).
+- `[global].access log = none` disables the access.log of Netdata. It is not needed since Netdata only listens for requests on 127.0.0.1 and thus only nginx can access it. nginx has its own access.log for your record.
- `[global].disconnect idle web clients after seconds = 3600` will kill inactive web threads after an hour of inactivity.
-- `[global].enable web responses gzip compression = no` disables gzip compression at netdata (nginx will compress the responses).
+- `[global].enable web responses gzip compression = no` disables gzip compression at Netdata (nginx will compress the responses).
## 2. increase open files limit (non-systemd)
-By default Linux limits open file descriptors per process to 1024. This means that less than half of this number of client connections can be accepted by both nginx and netdata. To increase them, create 2 new files:
+By default Linux limits open file descriptors per process to 1024. This means that less than half of this number of client connections can be accepted by both nginx and Netdata. To increase them, create 2 new files:
1. `/etc/security/limits.d/nginx.conf`, with these contents: