Is there a way to restart the UIM hub on a scheduled basis?
In hub version 7.10 and later, there is a therapeutic restart capability which can be used to force the hub to restart periodically on a scheduled basis, e.g., once a week, once a month, etc.
It's a cold restart of the hub process, so there will be a short blip in connectivity, but it clears everything down and starts the hub fresh. Note that it uses the same format as the data_engine uses to specify schedules.
Therapeutic restart cleanly restarts the hub and is controlled by a raw configure key in the hub.cfg. The key is called "restart_schedule" and should be placed in the <hub> section of the config file.
Here are some examples of a Raw configuration parameter to enable it.
Schedule examples:
Restart every week, on Saturday, at 10:11 AM
restart_schedule = RRULE:FREQ=WEEKLY;INTERVAL=1;BYDAY=SA;BYHOUR=10;BYMINUTE=11
Restart every day at 11:00 PM
restart_schedule = RRULE:FREQ=DAILY;INTERVAL=1;BYHOUR=23;BYMINUTE=00
Restart the hub each week, on Saturday at 10:11am
restart_schedule = RRULE:FREQ=WEEKLY;INTERVAL=1;BYDAY=SA;BYHOUR=10;BYMINUTE=11
Restart the hub every 4 hours
restart_schedule = RRULE:FREQ=HOURLY;INTERVAL=4
The scheduling language is based on "iCalendar" -- more information about the specific configuration language used is available here:
https://tools.ietf.org/html/rfc5545