Commit 1d313fd8 authored by Leigh B Stoller's avatar Leigh B Stoller
Browse files

Change pubsub subscription; do not subscribe to *all* events, only

events that need to be transformed into portal events. This cuts the
number of events received by 50 percent, which keeps pubsub from backing
up on sending the events back. Helpful for really big experiments
(1000+ nodes).
parent 03473d1f
#!/usr/bin/perl -w
# Copyright (c) 2008-2017 University of Utah and the Flux Group.
# Copyright (c) 2008-2018 University of Utah and the Flux Group.
......@@ -164,6 +164,10 @@ my $tuple = address_tuple_alloc();
if (!$tuple) {
fatal("Could not allocate an address tuple");
# We do not want to see events that have already been transformed
# into events we are sending to the portal.
%$tuple = ( site => "*" );
if (!event_subscribe($localhandle, \&callback, $tuple)) {
fatal("Could not subscribe to all events");
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment