There was a problem loading the comments.

High CPU usage issue in Multi Tenant Environments

Support Portal  »  Knowledgebase  »  Viewing Article

  Print

Original Question

or Issue:

CPU usage is high in on-premise multi-tenant environment

Environment:

  • Product - FileCloud Server (On-Premise)
  • Version - Any
  • Platform - Linux/Windows
Steps to Reproduce:

 

The issue is seen in a new multi-tenant setup or in an environment that has custom worker threads configured or when large user activity happens in multiple tenants at a time. 

 

Error or Log Message:  

Defect or

Enhancement Number:

 
Cause:  

Resolution or

Workaround:

FileCloud uses background workers to process messages being written to the database. By default, in a multi-tenant environment, each tenant is assigned 4 workers. If the CPU is not able to handle this number of workers, performance will be degraded due to high CPU usage.  

This can be fixed by changing the worker configuration in the configuration file to use global workers. 

File Path:
Linux: /var/www/html/src/Scripts/config/default.json
Windows: xampp\htdocs\src\Scripts\config\default.json

To configure background workers to global mode, change the global_worker parameter to true and restart fcorchestrator service. This will limit the total worker limit to 4, which will be shared across all tenants. 

To restart the service:
Windows : Use FileCloud Control Panel or Windows Services
Linux: service fcorchestrator restart or systemctl restart fcorchestrator

Notes: 
Systems with a large number of tenants or that need more workers will be required to adjust the "parallel_workers_count" value. This value can be adjusted based on the total CPU usage in the servers and activity in each tenant.



Share via

Related Articles


Self-Hosted Help Desk Software by SupportPal
© FileCloud