summaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
authorMarkos Fountoulakis <44345837+mfundul@users.noreply.github.com>2019-06-21 12:52:58 +0300
committerGitHub <noreply@github.com>2019-06-21 12:52:58 +0300
commit6312080b697dd3b3415a504dd59c351815155e47 (patch)
tree4af13a96ffd5f303beac2e536366db13fdb6bde0 /web
parent61e45b55a2923a7ff2d2c5fcb07fe5b4e3b43dbc (diff)
Handle file descriptors running out (#6303)
* Handle file descriptors running out * Added alarm for dbengine FS and I/O errors * more verbose alarm message * * Added File-Descriptor budget to Database Engine instances. * Changed FD budget of the web server from 50% to 25%. * Allocated 25% of FDs to dbengine. * Created a new dbengine global FD utilization chart.
Diffstat (limited to 'web')
-rw-r--r--web/server/static/static-threaded.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/server/static/static-threaded.c b/web/server/static/static-threaded.c
index eb50597af7..9f77c56a95 100644
--- a/web/server/static/static-threaded.c
+++ b/web/server/static/static-threaded.c
@@ -474,7 +474,7 @@ void *socket_listen_main_static_threaded(void *ptr) {
if(static_threaded_workers_count < 1) static_threaded_workers_count = 1;
- size_t max_sockets = (size_t)config_get_number(CONFIG_SECTION_WEB, "web server max sockets", (long long int)(rlimit_nofile.rlim_cur / 2));
+ size_t max_sockets = (size_t)config_get_number(CONFIG_SECTION_WEB, "web server max sockets", (long long int)(rlimit_nofile.rlim_cur / 4));
static_workers_private_data = callocz((size_t)static_threaded_workers_count, sizeof(struct web_server_static_threaded_worker));