Fix #300: prosody tweaking.

This commit is contained in:
John Livingston 2024-09-17 10:34:11 +02:00
parent 583f581192
commit 1b53a6ec2d
No known key found for this signature in database
GPG Key ID: B17B5640CE66CDBC
2 changed files with 15 additions and 1 deletions

View File

@ -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.

View File

@ -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()