Configuring System Cleanup Settings
SelectSystem Cleanup>配置.
On the配置选项卡,可以通过以下方式调整清理设置:
- Changing the frequency of system cleanup tasks.
- Configuring Default Cleanup and Aggressive Cleanup events.
Changing the Frequency of System Cleanup Tasks
By default, all maintenance tasks on theTasksandCompleted Jobstabs run once per day. To change this frequency:
- Under Normal Conditions, update theTask Intervalfields.
- ClickSave Settings.
Configuring Default Cleanup and Aggressive Cleanup Events
当系统的可用磁盘空间达到指定的最小级别时,FME服务器将执行以下类型的清理事件:
- Default Cleanup: All enabled cleanup tasks on the Tasks and Completed Jobs tabs execute, regardless of theTask Intervalsetting.
- Aggressive Cleanup: All enabled cleanup tasks on the Tasks and Completed Jobs tabs execute, disregarding theRemove Files/Completed Jobs Older Thansetting. In other words, all files specified by each cleanup task are removed, regardless of their age.
To configure when FME Server undertakes a Default Cleanup or Aggressive Cleanup event:
- Configure how often you want FME Server to check free disk space for triggering a cleanup. By default, FME Server checks every 5 minutes. To change this frequency, under Low Disk Conditions, update the看时间间隔fields. Alternatively, to disable checking, specify 0. Setting to 0 effectively turns off Default Cleanup and Aggressive Cleanup events.
- Under Default Cleanup and/or Aggressive Cleanup, configure the minimum disk space requirements for allowing cleanup events, as follows:
- Disk (%): The minimum free disk space size, in percentage.
- And/Or: If AND, the detected minimumDisk (%)AND磁盘空间(GB)must both be less than the specified values to allow a cleanup event. If OR, either the detected minimumDisk (%)OR磁盘空间(GB)must be less than the specified values to allow a cleanup event.
- 磁盘空间(GB): The minimum free disk space size, in gigabytes.
- Topic to Notify: TheNotification Servicetopic to receive messages about cleanup events. Although this field is optional, there is no way to receive messages when cleanup events occur, unless you specify a topic, and then configure a Notification Service Subscription to receive the message. Most likely, you will configure anEmail Subscriber; however, protocols for otherSubscribersare available.
- ClickSave Settings.
Select from an existing topic, or clickto create and use a new topic.
For the JSON template of the notification, seeNotification Schema(below).
Notification Schema
IfTopic to Notify在“Default Cleanup”或“Aggressive Cleanup”下指定时,将向指定主题发送通知,其中包含以下JSON格式的消息:
{
"msg": "<default_or_aggressive_level_message>”,
"detectedFreeGB": "<free_disk_space_in_gigabytes_detected>”,
"detectedFreePCT": <free_disk_space_percentage_detected>”,
“minFreeGB": <最小可用磁盘空间(以千兆字节为单位)默认或严格标准>”,
“minFreePCT": <minimum_free_disk_space_percentage_default_or_aggressive_criteria>”,
"drive": <Source_drive_path_checked>”,
}