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

[O2-2818] Disable FairMQ's autoBind in the proxies #1852

Merged
merged 1 commit into from
Jun 26, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Framework/src/InfrastructureGenerator.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ void InfrastructureGenerator::generateDataSamplingPolicyLocalProxyBind(framework
std::string proxyName = policyName + "-proxy";
std::string channelName = policyName + "-" + localMachine;
std::string channelConfig = "name=" + channelName + ",type=pub,method=bind,address=tcp://*:" + localPort +
",rateLogging=60,transport=zeromq,sndBufSize=4";
",rateLogging=60,transport=zeromq,sndBufSize=4,autoBind=false";
auto channelSelector = [channelName](InputSpec const&, const std::unordered_map<std::string, std::vector<fair::mq::Channel>>&) {
return channelName;
};
Expand Down Expand Up @@ -445,7 +445,7 @@ void InfrastructureGenerator::generateDataSamplingPolicyRemoteProxyBind(framewor
const std::string& channelName = policyName;
const std::string& proxyName = channelName; // channel name has to match proxy name

std::string channelConfig = "name=" + channelName + ",type=sub,method=bind,address=tcp://*:" + remotePort + ",rateLogging=60,transport=zeromq,rcvBufSize=1";
std::string channelConfig = "name=" + channelName + ",type=sub,method=bind,address=tcp://*:" + remotePort + ",rateLogging=60,transport=zeromq,rcvBufSize=1,autoBind=false";

auto proxy = specifyExternalFairMQDeviceProxy(
proxyName.c_str(),
Expand Down Expand Up @@ -491,7 +491,7 @@ void InfrastructureGenerator::generateLocalTaskRemoteProxy(framework::WorkflowSp
}

std::string channelConfig = "name=" + channelName + ",type=sub,method=bind,address=tcp://*:" + remotePort +
",rateLogging=60,transport=zeromq,rcvBufSize=1";
",rateLogging=60,transport=zeromq,rcvBufSize=1,autoBind=false";

auto proxy = specifyExternalFairMQDeviceProxy(
proxyName.c_str(),
Expand Down