Configuration for Jitsi multi shard setup

I am setting up a multi shard setup of Jitsi. We will have two Jitsi meet shards (Jitsi meet web + Prosody + Jicofo + JVB) behind the HA proxy.

JMS 1 (meet1.example.com)
JMS 2 (meet2.example.com)

The primary domain will be meet.example.com which will forward the request to HA Proxy, and HA Proxy will deliver it to the appropriate shard.

I am having difficulty configuring the system. I cannot decide where to put meet1.example.com or meet2.example.com, or meet.example.com.

In JMS1, what should be the value for the below configs?

Prosody config.
What should the virtual host and component should contain (meet1.example.com or meet.example.com)

config.js
What should be the value inside the hosts part for JMS1 & JMS2

hosts: {
        // XMPP domain.
        
            domain: 'meet1.example.com',
        

        // When using authentication, domain for guest users.
        
            anonymousdomain: 'guest.meet1.example.com',
        

        // Domain for authenticated users. Defaults to <domain>.
        
            // authdomain: 'meet1.example.com',
        

        // Focus component domain. Defaults to focus.<domain>.
        
            // focus: 'focus.meet1.example.com',
        
        // XMPP MUC domain. FIXME: use XEP-0030 to discover it.
        
            muc: 'conference.testproject-3acaa3.meet1.example.com'
        
    },

    // BOSH URL. FIXME: use XEP-0156 to discover it.
    
        bosh: '//meet1.example.com/http-bind',

Similar for the JVB and JICOFO.

Those are two separate deployments accessed through two separate domains. The domains should be the same. HAProxy is for loadbalancing - meaning, moving weight between multiple shards of the same domain. So, if shard one fails, then shard2 picks up the load and vice versa. The main goal is to make sure participants destined for a meeting land on the same shard and this is done via sticky tables in HAProxy config.