From fac6dd81b91c049dfd165650f67024c901cdb343 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Wed, 27 Jan 2021 10:55:26 +0100 Subject: [PATCH] :sparkles: Minor chantes on async tasks scheduling. --- backend/src/app/main.clj | 6 +++--- docker/images/files/nginx.conf | 4 +--- docs/00-Getting-Started.md | 1 + 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/backend/src/app/main.clj b/backend/src/app/main.clj index db7ca2672..2af7f21ef 100644 --- a/backend/src/app/main.clj +++ b/backend/src/app/main.clj @@ -189,7 +189,7 @@ :fn (ig/ref :app.tasks.file-media-gc/handler)} {:id "file-xlog-gc" - :cron #app/cron "0 0 */2 * * ?" ;; every 2 hours + :cron #app/cron "0 0 */6 * * ?" ;; every 2 hours :fn (ig/ref :app.tasks.file-xlog-gc/handler)} {:id "storage-gc" @@ -253,8 +253,8 @@ :app.tasks.file-xlog-gc/handler {:pool (ig/ref :app.db/pool) - :max-age (dt/duration {:hours 6}) - :metrics (ig/ref :app.metrics/metrics)} + :metrics (ig/ref :app.metrics/metrics) + :max-age (dt/duration {:hours 24})} :app.tasks.telemetry/handler {:pool (ig/ref :app.db/pool) diff --git a/docker/images/files/nginx.conf b/docker/images/files/nginx.conf index 8ba8d6e72..9432440ed 100644 --- a/docker/images/files/nginx.conf +++ b/docker/images/files/nginx.conf @@ -12,12 +12,10 @@ http { sendfile on; tcp_nopush on; tcp_nodelay on; + keepalive_requests 30; keepalive_timeout 65; types_hash_max_size 2048; - keepalive_requests 30; - keepalive_timeout 30s; - server_tokens off; reset_timedout_connection on; diff --git a/docs/00-Getting-Started.md b/docs/00-Getting-Started.md index 54d543892..df6149307 100644 --- a/docs/00-Getting-Started.md +++ b/docs/00-Getting-Started.md @@ -4,6 +4,7 @@ This documentation intends to explain how to get penpot application and run it l The simplest approach is using docker and docker-compose. + ## Install Docker ## Skip this section if you alreasdy have docker installed, up and running.