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

Change eventd ZMQ endpoints from localhost to docker network #923

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

zbud-msft
Copy link
Contributor

Fixes sonic-net/sonic-buildimage#195591
Why I did it:

For single-asic devices where host and docker containers share the same namespace, using localhost IP for ZMQ sockets worked as all containers were able to create a socket and connect to XSUB endpoint in order to publish events

However, in multi-asic devices, since certain dockers will have different network namespaces, we need to expose the ZMQ endpoint such that all dockers and host can connect to it in order to publish event. We can do this by using the docker network which is exposed to all containers.

With this change, we will be using docker network IP defined in docker.service.conf.

@zbud-msft zbud-msft closed this Oct 1, 2024
@zbud-msft zbud-msft reopened this Oct 2, 2024
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.

1 participant