Changeset 41302 for trunk/ippMonitor/czartool/czarpoll.pl
- Timestamp:
- Mar 2, 2020, 2:04:01 PM (6 years ago)
- File:
-
- 1 edited
-
trunk/ippMonitor/czartool/czarpoll.pl (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippMonitor/czartool/czarpoll.pl
r41126 r41302 292 292 my $yesterday = undef; 293 293 my $newDayTime = $config->getMetricsStartTime(); 294 my $metricsbackupversion = $config->getMetricsBackupVersion(); 294 295 my $lastDayDailyTasks = "2010-01-01"; 295 296 my $checkneb = 1; # 1 for nebulous, 0 for localhost test … … 346 347 347 348 # now cleanup tables from yesterday and optimize 348 # TdB20190703: The ipp113 and ipp117 instances of czarpoll use the same stage DBs in czarDB.349 # Therefore, it makes no sense to run the cleanup+optimising twice349 # TdB20190703: The ipp113 and ipp117 instances of czarpoll use the same stage DBs in czarDB. 350 # Therefore, ensure DB optimising happens only in the regular version. 350 351 print "* Performing database cleanup\n"; 351 352 $czarDb->cleanupDateRange($yesterday, $yesterday, $config->getCzarCleanupInterval()); 352 #print "* Optimizing the database\n"; 353 #$czarDb->optimize(); 353 if($metricsbackupversion == 0) { 354 print "* Optimizing the database\n"; 355 $czarDb->optimize(); 356 } 354 357 $lastDayDailyTasks = $yesterday; 355 358 }
Note:
See TracChangeset
for help on using the changeset viewer.
