Database Watchdog
Prev | Chapter 9. Database Management | Next

## Database Watchdog

It is possible to have Tigase test availability and existence of database periodically only when db connections are idle. By default this ping is sent once every 60 minutes to each connected repository. However this can be overridden as a part of the dataSource property:

    dataSource {
        default () {
            uri = '....'
        }
        'test' () {
            uri =  '...'
            'watchdog-frequency' = 'PT30M'
        }
    }

This setting changes frequency to 30 minutes.

    dataSource {
        default () {
            uri = '...'
        }
        'watchdog-frequency' = 'PT15M'
    }

This one changes to 15 minutes.

### Note

see the section called “Period / Duration values” for format details

Prev | Up | Next
Chapter 9. Database Management | Home | Using modified database schema