Implement how to convey the mirror pool's configuration to the dispatcher script

Originally created by @intrigeri on #8638 (Redmine)

Parent Task: #7161 (closed)

Related issues

Edited by intrigeri
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information