How to configure tow or more jibri instances correctly?

I have set up both jitsi and jibri instances in the same virtual machine. It is working fine. So now I need to add another jibri instance that is running separately to jitsi server(jitsi.example.com) which has another domain(jitsi2.example.com) and IP address. Can someone help me to change the configuration files correctly to connect this second jibri instance to work it correctly?

Do I need to add the following line for both domains?

--- internal muc component, meant to enable pools of jibri and jigasi clients
Component "internal.auth.jitsi.example.com" "muc"
modules_enabled = {
"ping";
}
storage = "internal"
muc_room_cache_size = 1000
VirtualHost "recorder.jitsi.example.com"
modules_enabled = {
"ping";
}
authentication = "internal_plain"

And also do I need to add this line for both domains.

org.jitsi.jicofo.jibri.BREWERY=JibriBrewery@internal.auth.jitsi.example.com
org.jitsi.jicofo.jibri.PENDING_TIMEOUT=90

If I have a different domain for the second instance as I told above (jitsi2.example.com) how can I add hidden domain for the second jibri instance.

hiddenDomain: 'recorder.jitsi.example.com',

And I need to know some facts about following code segment.

"recording_directory": "/recordings",
"finalize_recording_script_path": "",
"xmpp_server_hosts": [
"jitsi.example.com"
],
"xmpp_domain": "jitsi.example.com",
"control_login": {
"domain": "auth.jitsi.example.com",
"username": "jibri",
"password": "Jibr1P@ssw0rd"
},
"control_muc": {
"domain": "internal.auth.jitsi.example.com",
"room_name": "JibriBrewery",
"nickname": "jibri"
},
"call_login": {
"domain": "recorder.jitsi.example.com",
"username": "recorder",
"password": "Rec0rderP@ssw0rd"
},

for xmpp_server_hosts and xmpp_domain I should put jitsi server domain or my second jibri instance domain.

I search a lot to find out a reference to this but I could not. Can someone help me to configure this correctly?

This should help…

In short…the second jibri’s config is almost same as the first, except the name and ID’s…

So if you have a running jibri…you may do exact same config changes on the other jibri*…