通过管理图像在审核文件夹中保留的时间来管理磁盘空间。

当磁盘使用率超过 80% 时,PEG 会停止处理新消息。 要管理审核文件夹中的设置,请执行以下步骤:

过程

  1. 将以下代码块添加到 ~/peg/text_pipeline/values-gpu.yaml 文件的末尾。 (或者,如果条目已经存在,请对其进行修改。)
    #Archive Info review_retention_days: 365
    您在此处输入的值将是 PEG 在审核文件夹中保留图像的天数。 将数字 365 替换为您希望保留审核图像的天数。 这只会影响审核图像。 原始图像和转发文件夹中的图像将不受影响。
  2. 将更改推送到 PEG,方法是在任意文件夹中运行以下命令:
    source ~/peg/scripts/vars.sh
    kubectl delete cronjob.batch/text-pipeline-masking-masking-cron -n text-pipeline
    kubectl get pods --output=jsonpath={.items..metadata.name} -n text-pipeline -o=name | grep cron | xargs -n1 kubectl delete --grace-period=0 --force -n text-pipeline
    helm upgrade text-pipeline ${text_pipeline_dir} -f ${values_file_t} --namespace text-pipeline --set ocr.name=st-fiq-$new_gen_uuid.$apex_domain --set masking.name=dlp-fiq-$new_gen_uuid.$apex_domain