Hi Jack,
Please allow me some time; I’m currently looking into this and will get back to you with an update as soon as possible.
Hi Jack,
What you experienced is actually expected behavior based on how the Wazuh server cluster is designed.
The Wazuh cluster is primarily built for scalability and centralized configuration management, not for full active-passive failover of everything on the manager. In a cluster, the master node is responsible for synchronizing specific data to the worker nodes, but not all components of the manager are shared.
According to the Wazuh server cluster documentation (architecture overview, types of nodes, how the cluster works, and data synchronization sections), the master synchronizes operational and configuration data that allows workers to properly process events. This includes things like Wazuh agent registration details, shared configuration, CDB list, custom SCA policies, custom decoders, and rules are synchronized from the master to the workers. This ensures consistency in detection logic and agent handling across the cluster.
However, API users and API configuration are not part of the synchronized data. They are stored locally on each node. That is why, when you created an API user on n1 (the original master), and then shut it down and promoted n2 to master, that user did not exist on n2. The cluster does not replicate API users between nodes, so this behavior is expected.
Check this section to understand what the master node does in the cluster, and check this for worker responsibilities.