How to replicate the configuration automatically between PM servers?

At the moment we have 2 servers to give high availability that form a same kingdom. But the configuration is established in the primary server is not replicated. you have to export and import the configuration with each change that is made.