Original Question or Issue: |
CPU usage is high in on-premise multi-tenant environment |
Environment: |
|
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. |
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. |