wiki:Software/Productionalisation/Dashboard

Version 3 (modified by smith@…, 5 years ago) (diff)

--

Tweaking the Dashboard

The default dashboard configuration can be tweaked in two main ways - changing the refresh interval (default is every hour) and what event types should be computed (default is all).

Changing the refresh interval

You should choose a refresh interval that takes into account how long it takes to compute all of the dashboard stats (this is a fairly compute intensive task so takes a while), vs how up-to-date you want the dashboard to be.

  1. Open web/conf/web-core.xml for editing and find the bean with id "SystemStatsQuickTrigger":
    <bean id="SystemStatsQuickTrigger" class="org.springframework.scheduling.quartz.SimpleTriggerBean">
        <property name="jobDetail">
            <ref local="SystemStatsJobDetail" />
        </property>
        <property name="startDelay" value="5000"/>
        <property name="repeatInterval" value="3600000"/>
    </bean>
    
  2. Simply change the repeatInterval to the value you wish (in ms). e.g. every 30 minutes = 1800000ms, every 2 hours = 7200000, etc.

Note that this file may be overwritten on a raptor upgrade, so you might need to change this again after upgrading.

Changing event types to compute

To make the dashboard statistics generation more efficient, it is recommended that you disable all of the event types that you are not using - even computing the zero values takes a certain amount of time.

  1. Open web/conf/dashboard-stats.xml for editing.
  2. This file contains a series of beans of class "DashboardStatisticsSet" - one for each event type. e.g. the Shibboleth IdP related bean is the one with id "shibbolethDashboardStatisticsSet".
  3. To disable a particular event type, comment out the entire bean (each bean is around 100 lines long).

Note that this file may be overwritten on a raptor upgrade, so you might need to change this again after upgrading.