No edit summary |
No edit summary |
||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
{{DISPLAYTITLE:Cronjobs}} | {{DISPLAYTITLE:Cronjobs}} | ||
__TOC__ | __TOC__ | ||
This document describes cronjobs an related configurations, which should be set for your BlueSpice (depending on the used version). | This document describes cronjobs an related configurations, which should be set for your BlueSpice (depending on the used version). | ||
Line 7: | Line 6: | ||
==Tips for this Document== | ==Tips for this Document== | ||
{{Setup-document-note}} | {{Setup-document-note}} | ||
{{Messagebox|boxtype=Hinweis|Note text=It is recommended to specify the complete path to php.exe under Windows.}} | |||
==runJobs.php== | ==runJobs.php== | ||
Line 13: | Line 14: | ||
For this reason, the queue should be processed regularly by cronjob. | For this reason, the queue should be processed regularly by cronjob. | ||
Create a cronjob (Windows: "Scheduled task") depending on your operating system. The command to execute is: | |||
php <code><installpath-bluespice></code>/maintenance/runJobs.php ''(Linux)'' | php <code><installpath-bluespice></code>/maintenance/runJobs.php ''(Linux)'' | ||
php.exe <code><installpath-bluespice></code>\maintenance\runJobs.php ''(Windows)'' | php.exe <code><installpath-bluespice></code>\maintenance\runJobs.php ''(Windows)'' | ||
Execute the cronjob every '''10 minutes'''. | |||
Execute the cronjob every ''' | |||
==processRunner.php== | |||
Certain tasks require server resources that can not be provided in the regular context of a webrequest. They will be moved to a special processing queue in the background of BlueSpice. | |||
Create a cronjob (Windows: "Scheduled task") depending on your operating system. The command to execute is: | |||
php <code><installpath-bluespice></code>/vendor/mwstake/mediawiki-component-processmanager/maintenance/processRunner.php <code><installpath-bluespice></code>/maintenance/Maintenance.php --max-processes=100 --wait ''(Linux)'' | |||
php.exe <code><installpath-bluespice></code>\vendor\mwstake\mediawiki-component-processmanager\maintenance\processRunner.php <code><installpath-bluespice></code>\maintenance\Maintenance.php --max-processes=100 --wait ''(Windows)'' | |||
Execute the cronjob every '''minute'''. | |||
[[en:{{FULLPAGENAME}}]] | [[en:{{FULLPAGENAME}}]] | ||
[[de:Setup:Installationsanleitung/Optimierungen/Cronjobs]] | [[de:Setup:Installationsanleitung/Optimierungen/Cronjobs]] |
Latest revision as of 12:59, 12 July 2023
This document describes cronjobs an related configurations, which should be set for your BlueSpice (depending on the used version).
Tips for this Document
- Please, read this manual completely and work through the single installation steps one after another.
- For editing the configuration files with a text editor, the files must be saved in UTF-8 coding without BOM (Byte Order Mark).
- The placeholder
<installpath-bluespice>
stands for the path to your BlueSpice installation, e.gC:\inetpub\wwwroot\bluespice
(Windows regarding the documentation "Folder structure under Windows") or/var/www/bluespice
(Linux). - The placeholder
<tomcat-webapps
stands for the path to the webapps directory of your Tomcat server, e.gC:\Program Files\Apache Software Foundation\Tomcat 8.5\webapps
(Windows) or/var/lib/tomcat8/webapps
(Linux).
runJobs.php
Time-consuming processes will be moved to a processing queue in the background of BlueSpice. With every page impression, a part of these will be processed. For the case that there are lots of processes in the queue and there are relatively litte page impressions, the tasks will not be processed promptly.
For this reason, the queue should be processed regularly by cronjob.
Create a cronjob (Windows: "Scheduled task") depending on your operating system. The command to execute is:
php<installpath-bluespice>
/maintenance/runJobs.php (Linux) php.exe<installpath-bluespice>
\maintenance\runJobs.php (Windows)
Execute the cronjob every 10 minutes.
processRunner.php
Certain tasks require server resources that can not be provided in the regular context of a webrequest. They will be moved to a special processing queue in the background of BlueSpice.
Create a cronjob (Windows: "Scheduled task") depending on your operating system. The command to execute is:
php<installpath-bluespice>
/vendor/mwstake/mediawiki-component-processmanager/maintenance/processRunner.php<installpath-bluespice>
/maintenance/Maintenance.php --max-processes=100 --wait (Linux) php.exe<installpath-bluespice>
\vendor\mwstake\mediawiki-component-processmanager\maintenance\processRunner.php<installpath-bluespice>
\maintenance\Maintenance.php --max-processes=100 --wait (Windows)
Execute the cronjob every minute.