Load factor adjustment and reporting tweaks.

This commit is contained in:
JoelKatz
2013-03-06 11:20:15 -08:00
parent d1d8f4b6b0
commit a0a0a27bbf
2 changed files with 3 additions and 3 deletions

View File

@@ -26,7 +26,7 @@ JobQueue::JobQueue() : mLastJob(0), mThreadCount(0), mShuttingDown(false)
mJobLoads[jtCLIENT].setTargetLatency(2000, 5000);
mJobLoads[jtPEER].setTargetLatency(200, 1250);
mJobLoads[jtDISK].setTargetLatency(500, 1000);
mJobLoads[jtRPC].setTargetLatency(250, 750);
mJobLoads[jtRPC].setTargetLatency(1250, 1750);
mJobLoads[jtACCEPTLEDGER].setTargetLatency(1000, 2500);
}

View File

@@ -57,9 +57,9 @@ void LoadMonitor::addLatency(int latency)
void LoadMonitor::addCountAndLatency(const std::string& name, int counts, int latency)
{
if (latency > 1000)
if (latency > 500)
{
cLog(lsWARNING) << "Job: " << name << " ExecutionTime: " << latency;
cLog((latency > 1000) ? lsWARNING : lsINFO) << "Job: " << name << " ExecutionTime: " << latency;
}
if (latency == 1)
latency = 0;