Skip to content

Commit d6b601b

Browse files
committed
DPL Analysis: improve default value for timeframes rate limiting
1 parent de6ae4b commit d6b601b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Framework/Core/src/ArrowSupport.cxx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
#include "Framework/ServiceRegistryRef.h"
3434
#include "Framework/ServiceRegistryHelpers.h"
3535
#include "Framework/Signpost.h"
36+
#include "Framework/DefaultsHelpers.h"
3637

3738
#include "CommonMessageBackendsHelpers.h"
3839
#include <Monitoring/Monitoring.h>
@@ -65,7 +66,7 @@ enum struct RateLimitingState {
6566

6667
struct RateLimitConfig {
6768
int64_t maxMemory = 2000;
68-
int64_t maxTimeframes = 1;
69+
int64_t maxTimeframes = 1000;
6970
};
7071

7172
struct MetricIndices {
@@ -524,7 +525,7 @@ o2::framework::ServiceSpec ArrowSupport::arrowBackendSpec()
524525
if (dc.options.count("timeframes-rate-limit") && dc.options["timeframes-rate-limit"].defaulted() == false) {
525526
config->maxTimeframes = std::stoll(dc.options["timeframes-rate-limit"].as<std::string>());
526527
} else {
527-
config->maxTimeframes = readers;
528+
config->maxTimeframes = readers * DefaultsHelpers::pipelineLength();
528529
}
529530
static bool once = false;
530531
// Until we guarantee this is called only once...

0 commit comments

Comments
 (0)