attek / container_usage
Ha konténerben lévő apache szálak száma nagyobb a megadott értéknél, vagy a memória használat nagyobb a megadott értéknél vagy php vagy mysql konténer újraindult
Installs: 69
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 1
Open Issues: 0
Type:yii2-extension
Requires
- yiisoft/yii2: ~2.0.0
README
Ha konténerben lévő apache szálak száma nagyobb a megadott értéknél, vagy a memória használat nagyobb a megadott értéknél vagy php vagy mysql konténer újraindult
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist attek/container_usage "*"
or add
"attek/container_usage": "*"
to the require section of your composer.json
file.
Usage
Once the extension is installed, simply use it in your code by :
Set in config file (console.php)
'modules' => [ 'container_usage' => [ 'class' => 'attek\usage\Module', 'adminEmail' => '', 'senderEmail' => '', 'maxUsers' => 10, 'memoryUsageInPercent' => 4, 'phpContainerRebooted' => true, 'sqlContainerRebooted' => true, 'sms_service_url' => '', 'sms_auth_user' => '', 'sms_auth_pass' => '', 'adminPhone' => '' ] ]
Call command in cli
php yii container_usage/usage