Is there any limit for the maximum number of projects in a CodeScene server and does it affect the license?
- There's no limit on the max number of projects and it doesn't affect the license in any way.
How many concurrent analyses can a CodeScene server support at most, assuming it has sufficient resources? Does that have a limit?
- There's no theoretical limit but we advise you to keep it to a very low number, usually 2-4. The reason is that the analysis pipeline itself is multi-threaded and can use lots of threads even if the number of concurrent analyses is just 1. It's always best to measure but we don't recommend using more than 4 concurrent analyses even if you have 16 or more CPUs available.
What should be taken into account when building a CodeScene server with a large number of projects?
- fast SSD storage (depends on the projects but we suggest allocating at least 1 TB)
- plenty of RAM - for large installations we recommend 32+ GB
-
8+ CPUs (CodeScene can work without issues with a smaller number of CPUs but analyses will take longer)
-
Database performance - if you use an external database make sure that network latency is low and the DB instance has enough compute power to handle the load (we have improved DB query performance significantly in the past couple of months but it could be a problem if you use a small DB instance with many projects).
- Regular (DB) backups should be a norm; we would recommend doing a backup before every CodeScene upgrade.