From 6bbc7825a1f69104138a5abc9f8bf6b4ecd99d16 Mon Sep 17 00:00:00 2001 From: Meezaan-ud-Din Abdu Dhil-Jalali Wal-Ikram Date: Thu, 28 Dec 2023 12:19:51 +0400 Subject: [PATCH] Tweak Unit and set cache strategy to local --- .k8s/manifest.yml | 2 +- etc/unit/.unit.conf.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.k8s/manifest.yml b/.k8s/manifest.yml index c23b8db..391a87a 100644 --- a/.k8s/manifest.yml +++ b/.k8s/manifest.yml @@ -60,7 +60,7 @@ metadata: namespace: alquran-cloud config: second: 20 - policy: cluster + policy: local limit_by: ip plugin: rate-limiting --- diff --git a/etc/unit/.unit.conf.json b/etc/unit/.unit.conf.json index 0fc96c3..2e18040 100644 --- a/etc/unit/.unit.conf.json +++ b/etc/unit/.unit.conf.json @@ -20,7 +20,7 @@ "processes": { "max": 25, "spare": 5, - "idle_timeout": 5 + "idle_timeout": 30 }, "root": "/var/www/html", "index": "index.php",