While the connection and subscriptions are dynamic, the quantity of brokers is not. You would need to setup (for example) 10 connections and 10 MQTT-In (set for dynamic)
Of course, you would set all 10 broker configs to "NOT" connect automatically and only send a connect action message (complete with broker IP/Host etc) to the MQTT node of choice as and when required.
something like:
[{"id":"3129c0416afae8c3","type":"inject","z":"dd881c01761698db","name":"Dashboard connect button","props":[{"p":"payload.ip","v":"192.168.2.12","vt":"str"},{"p":"payload.port","v":"1883","vt":"num"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"2","x":170,"y":480,"wires":[["7f7bd70107dcad9e"]]},{"id":"8635e76fec16d33b","type":"link out","z":"dd881c01761698db","name":"To Pool =>","mode":"link","links":["300f86b5ae1c83ef"],"x":830,"y":480,"wires":[],"l":true},{"id":"7f7bd70107dcad9e","type":"change","z":"dd881c01761698db","name":"gather dashboard conn setup values","rules":[{"t":"set","p":"topic","pt":"msg","to":"dashboard.selected","tot":"global"},{"t":"set","p":"payload.ip","pt":"msg","to":"dashboard.ip","tot":"global"},{"t":"set","p":"payload.port","pt":"msg","to":"dashboard.port","tot":"global"}],"action":"","property":"","from":"","to":"","reg":false,"x":550,"y":480,"wires":[["8635e76fec16d33b"]]},{"id":"dd92f20b87562daa","type":"link in","z":"dd881c01761698db","name":"=> MQTT Data","links":["faf63715eaaa7371"],"x":440,"y":1040,"wires":[["b23f7380c1df877a"]],"l":true},{"id":"b23f7380c1df877a","type":"debug","z":"dd881c01761698db","name":"Printers Data to DB / MQTT / whatever","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":750,"y":1040,"wires":[]},{"id":"97febdd0f58294bc","type":"group","z":"dd881c01761698db","name":"MQTT Pool","style":{"label":true},"nodes":["0e700877a5aafc01","0e700877a5aafc02","0e700877a5aafc03","0e700877a5aafc04","0e700877a5aafc05","0e700877a5aafc06","0e700877a5aafc07","0e700877a5aafc08","0e700877a5aafc09","0e700877a5aafc10","faf63715eaaa7371","300f86b5ae1c83ef","4f251f8c550ea898","cf0a3b870662a48a","04ae804953c84f20"],"x":34,"y":519,"w":872,"h":442},{"id":"0e700877a5aafc01","type":"mqtt in","z":"dd881c01761698db","g":"97febdd0f58294bc","name":"printer01","topic":"","qos":"2","datatype":"auto-detect","broker":"bf9fddeea38cfb01","nl":false,"rap":true,"rh":0,"inputs":1,"x":510,"y":560,"wires":[["faf63715eaaa7371"]]},{"id":"0e700877a5aafc02","type":"mqtt in","z":"dd881c01761698db","g":"97febdd0f58294bc","name":"printer02","topic":"","qos":"2","datatype":"auto-detect","broker":"bf9fddeea38cf302","nl":false,"rap":true,"rh":0,"inputs":1,"x":510,"y":600,"wires":[["faf63715eaaa7371"]]},{"id":"0e700877a5aafc03","type":"mqtt in","z":"dd881c01761698db","g":"97febdd0f58294bc","name":"printer03","topic":"","qos":"2","datatype":"auto-detect","broker":"bf9fddeea38cf303","nl":false,"rap":true,"rh":0,"inputs":1,"x":510,"y":640,"wires":[["faf63715eaaa7371"]]},{"id":"0e700877a5aafc04","type":"mqtt in","z":"dd881c01761698db","g":"97febdd0f58294bc","name":"printer04","topic":"","qos":"2","datatype":"auto-detect","broker":"bf9fddeea38cf304","nl":false,"rap":true,"rh":0,"inputs":1,"x":510,"y":680,"wires":[["faf63715eaaa7371"]]},{"id":"0e700877a5aafc05","type":"mqtt in","z":"dd881c01761698db","g":"97febdd0f58294bc","name":"printer05","topic":"","qos":"2","datatype":"auto-detect","broker":"bf9fddeea38cf305","nl":false,"rap":true,"rh":0,"inputs":1,"x":510,"y":720,"wires":[["faf63715eaaa7371"]]},{"id":"0e700877a5aafc06","type":"mqtt in","z":"dd881c01761698db","g":"97febdd0f58294bc","name":"printer06","topic":"","qos":"2","datatype":"auto-detect","broker":"bf9fddeea38cf306","nl":false,"rap":true,"rh":0,"inputs":1,"x":510,"y":760,"wires":[["faf63715eaaa7371"]]},{"id":"0e700877a5aafc07","type":"mqtt in","z":"dd881c01761698db","g":"97febdd0f58294bc","name":"printer07","topic":"","qos":"2","datatype":"auto-detect","broker":"bf9fddeea38cf307","nl":false,"rap":true,"rh":0,"inputs":1,"x":510,"y":800,"wires":[["faf63715eaaa7371"]]},{"id":"0e700877a5aafc08","type":"mqtt in","z":"dd881c01761698db","g":"97febdd0f58294bc","name":"printer08","topic":"","qos":"2","datatype":"auto-detect","broker":"bf9fddeea38cf308","nl":false,"rap":true,"rh":0,"inputs":1,"x":510,"y":840,"wires":[["faf63715eaaa7371"]]},{"id":"0e700877a5aafc09","type":"mqtt in","z":"dd881c01761698db","g":"97febdd0f58294bc","name":"printer09","topic":"","qos":"2","datatype":"auto-detect","broker":"bf9fddeea38cf309","nl":false,"rap":true,"rh":0,"inputs":1,"x":510,"y":880,"wires":[["faf63715eaaa7371"]]},{"id":"0e700877a5aafc10","type":"mqtt in","z":"dd881c01761698db","g":"97febdd0f58294bc","name":"printer10","topic":"","qos":"2","datatype":"auto-detect","broker":"bf9fddeea38cf310","nl":false,"rap":true,"rh":0,"inputs":1,"x":510,"y":920,"wires":[["faf63715eaaa7371"]]},{"id":"faf63715eaaa7371","type":"link out","z":"dd881c01761698db","g":"97febdd0f58294bc","name":"MQTT Subs Data =>","mode":"link","links":["dd92f20b87562daa"],"x":780,"y":720,"wires":[],"l":true},{"id":"300f86b5ae1c83ef","type":"link in","z":"dd881c01761698db","g":"97febdd0f58294bc","name":"To MQTT Pool =>","links":["8635e76fec16d33b"],"x":140,"y":720,"wires":[["cf0a3b870662a48a"]],"l":true},{"id":"4f251f8c550ea898","type":"junction","z":"dd881c01761698db","g":"97febdd0f58294bc","x":400,"y":720,"wires":[[]]},{"id":"cf0a3b870662a48a","type":"switch","z":"dd881c01761698db","g":"97febdd0f58294bc","name":"","property":"topic","propertyType":"msg","rules":[{"t":"eq","v":"1","vt":"num"},{"t":"eq","v":"2","vt":"num"},{"t":"eq","v":"3","vt":"num"},{"t":"eq","v":"4","vt":"num"},{"t":"eq","v":"5","vt":"num"},{"t":"eq","v":"6","vt":"num"},{"t":"eq","v":"7","vt":"num"},{"t":"eq","v":"8","vt":"num"},{"t":"eq","v":"9","vt":"num"},{"t":"eq","v":"10","vt":"num"},{"t":"else"}],"checkall":"true","repair":false,"outputs":11,"x":290,"y":720,"wires":[["0e700877a5aafc01"],["0e700877a5aafc02"],["0e700877a5aafc03"],["0e700877a5aafc04"],["0e700877a5aafc05"],["0e700877a5aafc06"],["0e700877a5aafc07"],["0e700877a5aafc08"],["0e700877a5aafc09"],["0e700877a5aafc10"],["04ae804953c84f20"]]},{"id":"04ae804953c84f20","type":"function","z":"dd881c01761698db","g":"97febdd0f58294bc","name":"out of bounds error","func":"node.error(\"Broker Selection out of bounds\", msg);\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":240,"y":880,"wires":[[]]},{"id":"bf9fddeea38cfb01","type":"mqtt-broker","name":"printer01","broker":"localhost","port":"1883","clientid":"","autoConnect":false,"usetls":false,"protocolVersion":"5","keepalive":"60","cleansession":true,"birthTopic":"","birthQos":"0","birthPayload":"","birthMsg":{},"closeTopic":"","closeQos":"0","closePayload":"","closeMsg":{},"willTopic":"","willQos":"0","willPayload":"","willMsg":{},"userProps":"","sessionExpiry":"","credentials":{"user":"","password":""}},{"id":"bf9fddeea38cf302","type":"mqtt-broker","name":"printer02","broker":"localhost","port":"1883","clientid":"","autoConnect":false,"usetls":false,"protocolVersion":"5","keepalive":"60","cleansession":true,"birthTopic":"","birthQos":"0","birthPayload":"","birthMsg":{},"closeTopic":"","closeQos":"0","closePayload":"","closeMsg":{},"willTopic":"","willQos":"0","willPayload":"","willMsg":{},"userProps":"","sessionExpiry":"","credentials":{"user":"","password":""}},{"id":"bf9fddeea38cf303","type":"mqtt-broker","name":"printer03","broker":"localhost","port":"1883","clientid":"","autoConnect":false,"usetls":false,"protocolVersion":"5","keepalive":"60","cleansession":true,"birthTopic":"","birthQos":"0","birthPayload":"","birthMsg":{},"closeTopic":"","closeQos":"0","closePayload":"","closeMsg":{},"willTopic":"","willQos":"0","willPayload":"","willMsg":{},"userProps":"","sessionExpiry":"","credentials":{"user":"","password":""}},{"id":"bf9fddeea38cf304","type":"mqtt-broker","name":"printer04","broker":"localhost","port":"1883","clientid":"","autoConnect":false,"usetls":false,"protocolVersion":"5","keepalive":"60","cleansession":true,"birthTopic":"","birthQos":"0","birthPayload":"","birthMsg":{},"closeTopic":"","closeQos":"0","closePayload":"","closeMsg":{},"willTopic":"","willQos":"0","willPayload":"","willMsg":{},"userProps":"","sessionExpiry":"","credentials":{"user":"","password":""}},{"id":"bf9fddeea38cf305","type":"mqtt-broker","name":"printer05","broker":"localhost","port":"1883","clientid":"","autoConnect":false,"usetls":false,"protocolVersion":"5","keepalive":"60","cleansession":true,"birthTopic":"","birthQos":"0","birthPayload":"","birthMsg":{},"closeTopic":"","closeQos":"0","closePayload":"","closeMsg":{},"willTopic":"","willQos":"0","willPayload":"","willMsg":{},"userProps":"","sessionExpiry":"","credentials":{"user":"","password":""}},{"id":"bf9fddeea38cf306","type":"mqtt-broker","name":"printer06","broker":"localhost","port":"1883","clientid":"","autoConnect":false,"usetls":false,"protocolVersion":"5","keepalive":"60","cleansession":true,"birthTopic":"","birthQos":"0","birthPayload":"","birthMsg":{},"closeTopic":"","closeQos":"0","closePayload":"","closeMsg":{},"willTopic":"","willQos":"0","willPayload":"","willMsg":{},"userProps":"","sessionExpiry":"","credentials":{"user":"","password":""}},{"id":"bf9fddeea38cf307","type":"mqtt-broker","name":"printer07","broker":"localhost","port":"1883","clientid":"","autoConnect":false,"usetls":false,"protocolVersion":"5","keepalive":"60","cleansession":true,"birthTopic":"","birthQos":"0","birthPayload":"","birthMsg":{},"closeTopic":"","closeQos":"0","closePayload":"","closeMsg":{},"willTopic":"","willQos":"0","willPayload":"","willMsg":{},"userProps":"","sessionExpiry":"","credentials":{"user":"","password":""}},{"id":"bf9fddeea38cf308","type":"mqtt-broker","name":"printer08","broker":"localhost","port":"1883","clientid":"","autoConnect":false,"usetls":false,"protocolVersion":"5","keepalive":"60","cleansession":true,"birthTopic":"","birthQos":"0","birthPayload":"","birthMsg":{},"closeTopic":"","closeQos":"0","closePayload":"","closeMsg":{},"willTopic":"","willQos":"0","willPayload":"","willMsg":{},"userProps":"","sessionExpiry":"","credentials":{"user":"","password":""}},{"id":"bf9fddeea38cf309","type":"mqtt-broker","name":"printer09","broker":"localhost","port":"1883","clientid":"","autoConnect":false,"usetls":false,"protocolVersion":"5","keepalive":"60","cleansession":true,"birthTopic":"","birthQos":"0","birthPayload":"","birthMsg":{},"closeTopic":"","closeQos":"0","closePayload":"","closeMsg":{},"willTopic":"","willQos":"0","willPayload":"","willMsg":{},"userProps":"","sessionExpiry":"","credentials":{"user":"","password":""}},{"id":"bf9fddeea38cf310","type":"mqtt-broker","name":"printer10","broker":"localhost","port":"1883","clientid":"","autoConnect":false,"usetls":false,"protocolVersion":"5","keepalive":"60","cleansession":true,"birthTopic":"","birthQos":"0","birthPayload":"","birthMsg":{},"closeTopic":"","closeQos":"0","closePayload":"","closeMsg":{},"willTopic":"","willQos":"0","willPayload":"","willMsg":{},"userProps":"","sessionExpiry":"","credentials":{"user":"","password":""}}]