mirror of
https://github.com/wekan/wekan.git
synced 2026-11-25 04:49:41 -05:00
FerretDB v1 can tail an OpLog, but on the SQLite backend Meteor's tailable+awaitData OpLog tail keeps FerretDB CPU pinned (reporters saw ~190-390% even idle; a 2-core box maxed out) and a struggling tail also surfaces as 'oplog catching up took too long', stalling board and login-page loading. Despite the FerretDB-side mitigations (16 MiB capped oplog, 500ms awaitData poll, SQLite pragmas, CPU self-regulation) the peg persisted on real deployments, and the polling-only path reliably drops CPU to ~10%. So make POLLING the default on every launcher (snap wekan-control, bundle start-wekan.sh, docker wekan-entrypoint.sh + docker-compose.yml, windows start-wekan.bat, sandstorm start.js): WEKAN_FERRETDB_OPLOG now defaults false, docker-compose reactivity is 'polling' with MONGO_OPLOG_URL commented out. The OpLog machinery still exists and is opt-in via WEKAN_FERRETDB_OPLOG=true. The snap exposes it as a setting: 'snap set wekan wekan-ferretdb-oplog=true|false' (registered in snap-src/bin/config, default false). The calmer polling throttle (#6467/#6468) and SQLite pragma tuning keep poll-and-diff cheap. Tests: tests/ferretdbOplog.test.cjs updated to assert the polling-only default everywhere, the commented-out docker-compose MONGO_OPLOG_URL, the opt-in OpLog machinery still present, and the new wekan-ferretdb-oplog snap setting (default false). Thanks to xet7 !
Wekan release scripts
Release process, for example version 4.94:
-
Build x64 bundle and upload to x2/a/s/o: =========================================== ./release.sh 4.94
-
Build bundles at servers =========================== arm64: ssh a ./maintainer-make-release-a.sh 4.94
s390x: ssh s ./maintainer-make-release-s.sh 4.94
openpower: ssh o ./maintainer-make-release-o.sh 4.94
-
Download bundles and upload to x2 releases: ============================================== ./releases/up.sh
-
At x2, do release: ===================== ssh x2 cd /var/snap/wekan/common ./release-x2.sh 4.93 4.94
https://github.com/wekan/wekan-snap/wiki/Making-releases-from-source
https://github.com/wekan/wekan-maintainer/wiki/Building-Wekan-for-Sandstorm