Few improvements
* Fix netdata config files owner * Increase net backlog in sysctl.conf * force wo-kernel tweak update during upgrade
This commit is contained in:
@@ -126,12 +126,11 @@ def pre_pref(self, apt_packages):
|
||||
|
||||
# add nginx repository
|
||||
if set(WOVariables.wo_nginx).issubset(set(apt_packages)):
|
||||
Log.info(self, "Adding repository for NGINX, please wait...")
|
||||
if (WOVariables.wo_distro == 'ubuntu'):
|
||||
Log.info(self, "Adding repository for NGINX, please wait...")
|
||||
WORepo.add(self, ppa=WOVariables.wo_nginx_repo)
|
||||
Log.debug(self, 'Adding ppa for Nginx')
|
||||
else:
|
||||
Log.info(self, "Adding repository for NGINX, please wait...")
|
||||
WORepo.add(self, repo_url=WOVariables.wo_nginx_repo)
|
||||
Log.debug(self, 'Adding repository for Nginx')
|
||||
WORepo.add_key(self, WOVariables.wo_nginx_key)
|
||||
@@ -139,12 +138,11 @@ def pre_pref(self, apt_packages):
|
||||
# add php repository
|
||||
if (set(WOVariables.wo_php73).issubset(set(apt_packages)) or
|
||||
set(WOVariables.wo_php).issubset(set(apt_packages))):
|
||||
Log.info(self, "Adding repository for PHP, please wait...")
|
||||
if (WOVariables.wo_distro == 'ubuntu'):
|
||||
Log.info(self, "Adding repository for PHP, please wait...")
|
||||
Log.debug(self, 'Adding ppa for PHP')
|
||||
WORepo.add(self, ppa=WOVariables.wo_php_repo)
|
||||
else:
|
||||
Log.info(self, "Adding repository for PHP, please wait...")
|
||||
# Add repository for php
|
||||
if (WOVariables.wo_platform_codename == 'buster'):
|
||||
php_pref = ("Package: *\nPin: origin "
|
||||
@@ -163,14 +161,11 @@ def pre_pref(self, apt_packages):
|
||||
if WOVariables.wo_distro == 'ubuntu':
|
||||
Log.debug(self, 'Adding ppa for redis')
|
||||
WORepo.add(self, ppa=WOVariables.wo_redis_repo)
|
||||
else:
|
||||
Log.debug(self, 'Adding repo_url of redis for debian')
|
||||
|
||||
|
||||
def post_pref(self, apt_packages, packages):
|
||||
"""Post activity after installation of packages"""
|
||||
if (apt_packages):
|
||||
|
||||
# Nginx configuration
|
||||
if set(WOVariables.wo_nginx).issubset(set(apt_packages)):
|
||||
# Nginx main configuration
|
||||
@@ -1363,6 +1358,10 @@ def post_pref(self, apt_packages, packages):
|
||||
Log.debug(self, "{0}".format(e))
|
||||
Log.info(
|
||||
self, "fail to setup mysql user for netdata")
|
||||
WOFileUtils.chown(self, '/opt/netdata',
|
||||
'netdata',
|
||||
'netdata',
|
||||
recursive=True)
|
||||
WOService.restart_service(self, 'netdata')
|
||||
|
||||
# WordOps Dashboard
|
||||
|
||||
@@ -50,8 +50,6 @@ map $request_uri $uri_no_cache {
|
||||
"~*/embed" 1;
|
||||
"~*/commande/" 1;
|
||||
"~*/resetpass/" 1;
|
||||
|
||||
|
||||
}
|
||||
|
||||
# do not cache requests with query strings
|
||||
|
||||
@@ -196,8 +196,8 @@ net.core.somaxconn = 32768
|
||||
# Increase number of incoming connections backlog
|
||||
net.core.netdev_max_backlog = 16384
|
||||
net.core.dev_weight = 64
|
||||
net.core.netdev_budget = 600
|
||||
net.core.netdev_budget_usecs = 4000
|
||||
net.core.netdev_budget = 1200
|
||||
net.core.netdev_budget_usecs = 8000
|
||||
|
||||
# Increase the maximum amount of option memory buffers
|
||||
net.core.optmem_max = 65535
|
||||
|
||||
Reference in New Issue
Block a user