Use thread names without capitals, as they look a bit ugly otherwise.
Threads started by libfstrm are not named, as they are created internally by the lib.
Partly supsersedes #11138
void NODDB::housekeepingThread(std::thread::id tid)
{
- setThreadName("pdns-r/NOD-hk");
+ setThreadName("rec/nod-hk");
for (;;) {
sleep(d_snapshot_interval);
{
void UniqueResponseDB::housekeepingThread(std::thread::id tid)
{
- setThreadName("pdns-r/UDR-hk");
+ setThreadName("rec/udr-hk");
for (;;) {
sleep(d_snapshot_interval);
{
handlerInfo.start(0, "web+stat", cpusMap, log);
auto& taskInfo = RecThreadInfo::info(2);
taskInfo.setTaskThread();
- taskInfo.start(2, "taskThread", cpusMap, log);
+ taskInfo.start(2, "task", cpusMap, log);
auto& info = RecThreadInfo::info(currentThreadId);
info.setListener();
for (unsigned int n = 0; n < RecThreadInfo::numTaskThreads(); ++n) {
auto& info = RecThreadInfo::info(currentThreadId);
- info.start(currentThreadId++, "taskThread", cpusMap, log);
+ info.start(currentThreadId++, "task", cpusMap, log);
}
/* This thread handles the web server, carbon, statistics and the control channel */
void RPZIXFRTracker(const std::vector<ComboAddress>& primaries, const boost::optional<DNSFilterEngine::Policy>& defpol, bool defpolOverrideLocal, uint32_t maxTTL, size_t zoneIdx, const TSIGTriplet& tt, size_t maxReceivedBytes, const ComboAddress& localAddress, const uint16_t xfrTimeout, const uint32_t refreshFromConf, std::shared_ptr<SOARecordContent> sr, const std::string& dumpZoneFileName, uint64_t configGeneration)
{
- setThreadName("pdns-r/RPZIXFR");
+ setThreadName("rec/rpzixfr");
bool isPreloaded = sr != nullptr;
auto luaconfsLocal = g_luaconfs.getLocal();
{
try {
#ifdef WE_ARE_RECURSOR
- string threadName = "pdns-r/remLog";
+ string threadName = "rec/remlog";
#else
string threadName = "dnsdist/remLog";
#endif
}
#ifdef RECURSOR
- string threadName = "pdns-r/SNMP";
+ string threadName = "rec/snmp";
#else
string threadName = "dnsdist/SNMP";
#endif
}
static void *WebServerConnectionThreadStart(const WebServer* webServer, std::shared_ptr<Socket> client) {
- setThreadName("pdns-r/webhndlr");
+ setThreadName("rec/webhndlr");
const std::string msg = "Exception while serving a connection in main webserver thread";
try {
webServer->serveConnection(client);