Browse Source

make checker threads configurable

master
R4SAS 2 years ago
parent
commit
7094ee6b2a
  1. 2
      checker.php
  2. 2
      config.php.dist

2
checker.php

@ -42,7 +42,7 @@ if ($bob->setnick()) { @@ -42,7 +42,7 @@ if ($bob->setnick()) {
/* Start async checker tasks */
Loop::run(function () use (&$results, $hosts, $options) {
$pool = new DefaultPool(64);
$pool = new DefaultPool($options['checkthreads']);
$coroutines = [];

2
config.php.dist

@ -38,4 +38,6 @@ $options = [ @@ -38,4 +38,6 @@ $options = [
'hidedays' => 3, // days before domain will be marked as hidden in period before disabling
'fullhour' => 8, // make hosts full-check at that hour (0-23). Usage of out-of-range value or at other hours, checker will validate only enabled domains.
'checkthreads' => 64, // checker threads amount
];

Loading…
Cancel
Save