Routes Checker

The purpose of the routes checker is to get rid of struct routes which might be taking resources and which can be freed.

Implementation

The routes checker uses spring-boot-actuator together with jolokia to access gathered statistics of Camel routes. Once the route meets one or more stopping conditions, the route is undeployed.

The checker is disabled by default because it might be confusing if some routes get spontaneously undeployed.

Rules

There are currently the following rules in place:

There are no exchanges on the route AND the route is older than the threshold AND the input type matches.

Properties

Property

Default Value

Description

Property

Default Value

Description

integration.schedulers.routes-checker.enabled

false

If set to true, the routes checker is enabled.

integration.schedulers.routes-checker.input-types

ftp, sftp

Types of input to which the checker should react. Originates from the route definition which starts with from.. E.g. if we want a route starting with from: uri=”direct:create” to be checked, we add the value direct.

integration.schedulers.routes-checker.fixed-rate-ms

3600000

How often [ms] should the checker run. By default it is each hour.

integration.schedulers.routes-checker.old-threshold-ms

86400000

The time interval [ms] after which a route is considered ‘old’ and marked for checking. The default is 1 day.

 

IntegrationManager version 5.8.0