Currently job artifacts in CI/CD pipelines on LRZ GitLab never expire. Starting from Wed 26.1.2022 the default expiration time will be 30 days (GitLab default). Currently existing artifacts in already completed jobs will not be affected by the change. The latest artifacts for all jobs in the latest successful pipelines will be kept. More information: https://gitlab.lrz.de/help/user/admin_area/settings/continuous_integration.html#default-artifacts-expiration

Commit 2fc4a776 authored by Micha Müller's avatar Micha Müller
Browse files

CollectAgent: Add option for special benchmark mode which discards all messages

parent 78cce230
......@@ -73,6 +73,13 @@
#define __STDC_FORMAT_MACROS
#include <inttypes.h>
/**
* Uncomment and recompile to activate CollectAgent's special benchmark mode.
* In this mode, all received messages will be discarded and no data is stored
* in the storage backend.
*/
//#define BENCHMARK_MODE
using namespace std;
int keepRunning;
......@@ -236,6 +243,8 @@ int mqttCallback(SimpleMQTTMessage *msg)
if (msg->isPublish())
pmsgCtr++;
#ifndef BENCHMARK_MODE
uint64_t len;
/*
* Decode the message and put into the database.
......@@ -406,15 +415,12 @@ int mqttCallback(SimpleMQTTMessage *msg)
readingCtr+= readings.size();
//mySensorCache.dump();
} else {
LOG(error) << "Message with empty topic received";
}
#if 1
else {
cout << "Wrong topic format: " << msg->getTopic() << "\n";
return 1;
}
#endif
}
}
#endif
return 0;
}
......
Markdown is supported
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