Questions about multi-instance KumoMTA setup with single shared TSA

Hello!

We currently have 2 instances of KumoMTA in production, with a single shared TSA

My TSA is setup as follows in the init.lua file :

local shaper = shaping:setup_with_automation {
    publish = config.tsa.publish,
    subscribe = config.tsa.subscribe,
    extra_files = {
        '/opt/kumomta/share/policy-extras/shaping.toml', -- Do not modify this toml
        '/opt/kumomta/share/community/shaping.toml', -- Do not modify this toml
        '/opt/kumomta/etc/policy/shaping.toml',           
    },
}

config.tsa.publish & config.tsa.subscribe pointing on the same TSA instance (not localhost)

I was wondering if shaping rules must be set inside the /opt/kumomta/etc/policy/shaping.toml file on both KumoMTA instances, or setting them on only 1 KumoMTA instance is enough since they have a shared TSA ?

Thanks!

I think KumoMTA instances and TSA should both persist the same files. For reference only

Always keep the slapping files in sync. True to its name, TSA only handles automations, but not the static rules. Your nodes all need the shaping files to ensure they all behave properly around the non-automated shaping rules.