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: 65

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 1

Open Issues: 0

Type:yii2-extension

0.0.5 2019-06-13 11:11 UTC

This package is auto-updated.

Last update: 2024-05-13 23:11:58 UTC


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