From 6c4bd6c21db826c3bc4b03a462b246b9874ab65e Mon Sep 17 00:00:00 2001 From: undefined Date: Tue, 10 Jan 2023 00:05:57 +0800 Subject: [PATCH] install: set swappiness to 1 by default --- install/install.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/install/install.ts b/install/install.ts index f34783d4..32601890 100644 --- a/install/install.ts +++ b/install/install.ts @@ -405,6 +405,8 @@ connect-timeout = 10`); 'hydrooj install https://hydro.ac/language-server-0.0.1.tgz', 'pm2 restart hydrooj', ], + 'echo "vm.swappiness = 1" >>/etc/sysctl.conf', + 'sysctl -p', ['pm2 install pm2-logrotate', { retry: true }], 'pm2 set pm2-logrotate:max_size 64M', ],