A database table, such as the key_value_expire table, is filled with expired entries. Large tables with outdated information can cause maintenance and performance issues, and even service interruptions.
The fix is to purge all of the entries which have an expire date that has already passed. Running your site's Drupal Cron regularly does this.
Looking at D.O's Cron automated tasks overview you will see that there are four bullet points regarding tasks that a properly configured cron job can manage:
Looking deeper into core/modules/system/system.module, you can see:
function system_cron() {
// Clean up the flood.
\Drupal::flood()->garbageCollection();
foreach (Cache::getBins() as $cache_backend) {
$cache_backend->garbageCollection();
}
// Clean up the expirable key value database store.
if (\Drupal::service('keyvalue.expirable.database') instanceof KeyValueDatabaseExpirableFactory) {
\Drupal::service('keyvalue.expirable.database')->garbageCollection();
}For additional reference you can also see:
Disabling Drupal Cron for a prolonged period of time.