diff options
author | Thomas Steur <tsteur@users.noreply.github.com> | 2018-07-12 16:39:23 +0300 |
---|---|---|
committer | diosmosis <diosmosis@users.noreply.github.com> | 2018-07-12 16:39:23 +0300 |
commit | 8239152987ddc0c09d5126db898276c01365fe56 (patch) | |
tree | adf9e528496f227d82f014d03d6154063639c57b /plugins/CoreConsole | |
parent | 4b88aa24c9c85c45340ca854c812c21014d86dc2 (diff) |
Add possibility to configure the number of max concurrent archivers (#13161)
* Add possibility to limit max archivers
* add missing files
Diffstat (limited to 'plugins/CoreConsole')
-rw-r--r-- | plugins/CoreConsole/Commands/CoreArchiver.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/CoreConsole/Commands/CoreArchiver.php b/plugins/CoreConsole/Commands/CoreArchiver.php index 32f1ba1116..7f14ac4f82 100644 --- a/plugins/CoreConsole/Commands/CoreArchiver.php +++ b/plugins/CoreConsole/Commands/CoreArchiver.php @@ -49,6 +49,7 @@ class CoreArchiver extends ConsoleCommand $archiver->dateLastForced = $input->getOption('force-date-last-n'); $archiver->concurrentRequestsPerWebsite = $input->getOption('concurrent-requests-per-website'); + $archiver->maxConcurrentArchivers = $input->getOption('concurrent-archivers'); $archiver->disableSegmentsArchiving = $input->getOption('skip-all-segments'); @@ -112,6 +113,8 @@ class CoreArchiver extends ConsoleCommand . "\nNote: if identical segments exist w/ different IDs, they will both be skipped, even if you only supply one ID."); $command->addOption('concurrent-requests-per-website', null, InputOption::VALUE_OPTIONAL, "When processing a website and its segments, number of requests to process in parallel", CronArchive::MAX_CONCURRENT_API_REQUESTS); + $command->addOption('concurrent-archivers', null, InputOption::VALUE_OPTIONAL, + "The number of max archivers to run in parallel", false); $command->addOption('disable-scheduled-tasks', null, InputOption::VALUE_NONE, "Skips executing Scheduled tasks (sending scheduled reports, db optimization, etc.)."); $command->addOption('accept-invalid-ssl-certificate', null, InputOption::VALUE_NONE, |