Best practices & limitations¶
In a production environment, you might have lot of views & information to share with your final users.
Here are some best practices to have in mind when creating views.*
Content limitations : Try not to have more than ~100 000 elements loaded “at a time”. A loaded element is an element in an opened view. An opened view is a view that at least one user is looking at (using desktop client or through the web interface).
Find below some usefull best practices to help you designing optimized views:
Starting with 19.04, we more than highly recommend disabling ACL filtering on status calculation (gate.useResourcesAccess=false).( More information here )
When you want to visualize applications status, we highly recommand to model them using Business Activities. This helps you limiting the number of elements you need to add to a view. One Business Activity = 1 element instead of all the hosts & services you might add to the view to model the application.
Avoid duplicating the same resources (hostgroup, servicegroup, host, service) in the same view or in multiple views.
If the view seems to contain “too many elements” (see Content limitation above), try to split into multiple views by conceptually grouping elements.
Create view with less than 5 levels (drill down)
Do not display more than 100 elements at one view level. (element: container, host, hostgroups, services, business activity)
Do not display more than 10 widgets at one view level.
How to calculate the number of element?
Here is an example that might help you: Let’s imagin a view, opened by a user, containing: 10 containers, each containing 10 hosts, each host containing 10 services.
Number of elements: 10 containers + 10 containers * (10 host + 10 host * 10 services) = 1110 elements.
It means, when at least one user opens this view, 1110 elements are loaded. To come back to the limitation, it means that you can have 100 views like this one, open by at least one user.
* These limitations/recommandations have been done using a Centreon Map server with 8GB of RAM, 8vCPU (2.6Ghz), Google Chrome (latest version) with a minimum of 5GB of memory on the computer.
Warning
You cannot add any objects (e.g., text, gauge, pie chart, graph etc.) to, or modify/copy-paste the contents of, a host, host group, service group or business activity.