fix netdata
This commit is contained in:
7
wo/cli/templates/kerneltweaks-script.mustache
Normal file
7
wo/cli/templates/kerneltweaks-script.mustache
Normal file
@@ -0,0 +1,7 @@
|
||||
#!/usr/bin/env bash
|
||||
# Kernel tweak script launched by kerneltweak systemd service
|
||||
# script path after installation /opt/kerneltweaks.sh
|
||||
|
||||
echo 1 >/sys/kernel/mm/ksm/run
|
||||
echo 1000 >/sys/kernel/mm/ksm/sleep_millisecs
|
||||
echo never > /sys/kernel/mm/transparent_hugepage/enabled
|
||||
13
wo/cli/templates/kerneltweaks-service.mustache
Normal file
13
wo/cli/templates/kerneltweaks-service.mustache
Normal file
@@ -0,0 +1,13 @@
|
||||
[Unit]
|
||||
Description=Linux kernel tweaks
|
||||
|
||||
# append here other services you want netdata to wait for them to start
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=root
|
||||
ExecStart=/opt/kerneltweaks.sh
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
@@ -19,6 +19,7 @@ map $http_cookie $cookie_no_cache {
|
||||
"~*woocommerce_cart_hash" 1;
|
||||
"~*wptouch_switch_toogle" 1;
|
||||
"~*comment_author_email_" 1;
|
||||
"~*edd" 1;
|
||||
}
|
||||
|
||||
# do not cache the following uri
|
||||
@@ -33,6 +34,16 @@ map $request_uri $uri_no_cache {
|
||||
"~*/wp-comments-popup.php" 1;
|
||||
"~*/wp-links-opml.php" 1;
|
||||
"~*/xmlrpc.php" 1;
|
||||
"~*/checkout" 1;
|
||||
"~*/edd_action" 1;
|
||||
"~*/add_to_cart/" 1;
|
||||
"~*/cart/" 1;
|
||||
"~*/my-account/" 1;
|
||||
"~*/checkout/" 1;
|
||||
"~*/addons/" 1;
|
||||
"~*/wc-api/*" 1;
|
||||
"~*/logout/" 1;
|
||||
"~*/lost-password/" 1;
|
||||
}
|
||||
|
||||
# do not cache requests with query strings
|
||||
@@ -49,6 +60,6 @@ map $http_request_no_cache$cookie_no_cache$uri_no_cache$query_no_cache $skip_cac
|
||||
|
||||
# map $skip_cache with $cache_uri for --wpsc stack
|
||||
map $skip_cache $cache_uri {
|
||||
default 'null cache';
|
||||
0 $request_uri;
|
||||
default 'null cache';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user