Merge pull request #4578 from dlambrig/knob
add SYSTEM_MONITOR_FREQUENCY knob.
This commit is contained in:
commit
244c537bc6
|
@ -492,6 +492,7 @@ void ServerKnobs::initialize(bool randomize, ClientKnobs* clientKnobs, bool isSi
|
|||
init( MAX_REBOOT_TIME, 5.0 ); if( longReboots ) MAX_REBOOT_TIME = 20.0;
|
||||
init( LOG_DIRECTORY, "."); // Will be set to the command line flag.
|
||||
init( SERVER_MEM_LIMIT, 8LL << 30 );
|
||||
init( SYSTEM_MONITOR_FREQUENCY, 5.0 );
|
||||
|
||||
//Ratekeeper
|
||||
bool slowRatekeeper = randomize && BUGGIFY;
|
||||
|
|
|
@ -416,6 +416,7 @@ public:
|
|||
double MAX_REBOOT_TIME;
|
||||
std::string LOG_DIRECTORY;
|
||||
int64_t SERVER_MEM_LIMIT;
|
||||
double SYSTEM_MONITOR_FREQUENCY;
|
||||
|
||||
// Ratekeeper
|
||||
double SMOOTHING_AMOUNT;
|
||||
|
|
|
@ -464,7 +464,7 @@ Future<Void> startSystemMonitor(std::string dataFolder,
|
|||
SystemMonitorMachineState(dataFolder, dcId, zoneId, machineId, g_network->getLocalAddress().ip));
|
||||
|
||||
systemMonitor();
|
||||
return recurring(&systemMonitor, 5.0, TaskPriority::FlushTrace);
|
||||
return recurring(&systemMonitor, SERVER_KNOBS->SYSTEM_MONITOR_FREQUENCY, TaskPriority::FlushTrace);
|
||||
}
|
||||
|
||||
void testIndexedSet();
|
||||
|
|
Loading…
Reference in New Issue