Currently gbak knows no limits when reading -par parameter and when a user tries to restore a database with gigantic value, (on purpose or by mistake - for example 16384) this will cause OOM killer on Linux. On Windows this caused whole OS to stop functioning and hard restart was required.
My proposition - if gbak is able to attach to firebird process (which has access to firebird.conf) just by using services manager, then why not to use it exactly to read MaxParallelWorkers? It seems an ideal parameter to restrict max parallel workers. Why does it have to be limited for parallel operations apart from gbak?
Best regards.