Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Dockerapi] add redis pubsub handler for broadcasting requests #5310

Merged
merged 3 commits into from
Jul 10, 2023

Conversation

FreddleSpl0it
Copy link
Collaborator

Add a pubsub handler in DockerAPI to enable broadcasting requests to multiple DockerAPI containers connected to the same Redis DB. This helps to perform various tasks in a clustered setup.

In the current setup of a mailcow ha, when a mailbox is deleted, only the mails on the host where the deletion request was executed are removed. However, the mails remain on the second host. To address this, if the variable CLUSTERMODE=replication is set in the mailcow.conf file, PHP will utilize Redis pubsub to broadcast the delete request to the DockerAPI of both hosts.

@FreddleSpl0it FreddleSpl0it changed the title [Dockerapi] add redis pubsub hander for broadcasting requests [Dockerapi] add redis pubsub handler for broadcasting requests Jul 7, 2023
@FreddleSpl0it FreddleSpl0it merged commit da8e496 into staging Jul 10, 2023
4 checks passed
@MAGICCC MAGICCC deleted the feat/ha-pubsub branch July 30, 2023 14:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant