From 1b53a6ec2da7d70c0bb8f9227ff21374c588daf7 Mon Sep 17 00:00:00 2001 From: John Livingston Date: Tue, 17 Sep 2024 10:34:11 +0200 Subject: [PATCH] Fix #300: prosody tweaking. --- CHANGELOG.md | 5 ++++- server/lib/prosody/config/content.ts | 11 +++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 77ba60a5..aaeb672b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,7 +9,9 @@ TODO Before releasing: ### Importante Notes This version requires Peertube 5.2.0 or superior. -It also requires NodeJS 16 or superior (same as Peertube 5.2.0.) +It also requires NodeJS 16 or superior (same as Peertube 5.2.0.). + +If you use the "system Prosody", you should update to Prosody 0.12.4, and Lua 5.4. ### New features @@ -21,6 +23,7 @@ It also requires NodeJS 16 or superior (same as Peertube 5.2.0.) ### Minor changes and fixes * Updating ConverseJS (v11 WIP) with latest fixes. +* Updating Prosody AppImage to Prosody 0.12.4 + Lua 5.4. * Various translation updates. * Using Typescript 5.5.4, and Eslint 8.57.0 (with new ruleset). * Fix race condition in bot/ctl. diff --git a/server/lib/prosody/config/content.ts b/server/lib/prosody/config/content.ts index 6126f2ff..2cbf3ca6 100644 --- a/server/lib/prosody/config/content.ts +++ b/server/lib/prosody/config/content.ts @@ -600,6 +600,17 @@ class ProsodyConfigContent { let content = '' content += this.global.write() content += this.log + '\n' + + // Add some performance tweaks for Prosody 0.12.4+lua5.4. + // See https://github.com/JohnXLivingston/livechat-perf-test/tree/main/tests/33-prosody-gc + content += ` +gc = { + mode = "generational"; + minor_threshold = 5; + major_threshold = 50; +}; +` + content += '\n\n' if (this.authenticated) { content += this.authenticated.write()