Symptoms
Certain provisioning tasks executing jobs on POA-managed Linux nodes start taking too long to complete. On the system where these tasks execute jobs, POA Agent log file (/var/log/poa.log
) is rather large (several gigabytes or more) and is growing quickly.
The problem may affect usual Linux Shared Hosting services provisioning or APS tasks which involve executing operations on Linux servers, like installation, re-configuration or upgrade of APS application.
Cause
One of possible causes can be that POA Agent log level on affected Linux shared hosting server is set to the TRACE value. This causes it to fully log all requests coming from POA. On busy systems with limited I/O capacity this can result in server performance degradation.
Resolution
First, check the current log level value for POA Agent on the shared hosting server that has performance issues (its IP address and/or hostname may be found in the task properties in POA Task Manager):
~# grep loglevel /usr/local/pem/etc/pleskd.props
loglevel=TRACE{cle}
If log level is set to 'TRACE', you can change it to one of the less verbose options. Possible values are, in decreasing order of verbosity:
TRACE
DEBUG
INFO
WARNING
ERROR
If you have POA 5.2 or later, you can use the following command to change the log level of POA Agent:
~# /usr/local/pem/bin/pleskd_ctl -f /usr/local/pem/etc/pleskd.props setLogLevel <loglevel>
For instance:
~# /usr/local/pem/bin/pleskd_ctl -f /usr/local/pem/etc/pleskd.props setLogLevel INFO
DEBUG [setLogLevel] ===> ENTRY
DEBUG [AA::PEM_Current::context] ===> ENTRY
DEBUG [AA::PEM_Current::context] <=== EXIT [0.000019]
DEBUG [setLogLevel] <=== EXIT [0.082263]{cle}
Make sure that the change has been applied:
~# grep loglevel /usr/local/pem/etc/pleskd.props
loglevel=INFO
Change is effective immediately and does not require POA agent restart.
If you have POA 5.1 or earlier, log level of POA Agent can be changed by directly editing the loglevel parameter value in the /usr/local/pem/etc/pleskd.props file on a Linux shared hosting server followed by POA Agent restart.
Follow the steps below to change POA Agent log level.
Backup the original file
/usr/local/pem/etc/pleskd.props
.Change the loglevel parameter in the file to the desired value from the list above, e.g. to DEBUG.
Restart the POA Agent:
~# /etc/init.d/pem restart Stopping pleskd: [ OK ] Starting pleskd: [ OK ]