You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Celery时钟偏移问题求助:偏移量17秒,需NTP同步解决方案

Celery时钟偏移(17秒)修复方案
  • 检查NTP同步状态
    执行timedatectl status(Systemd系统)或ntpq -p(传统NTP环境),确认System clock synchronized字段为yes,或ntpq输出中有带*标记的已同步NTP服务器。

  • 确保NTP服务正常运行并开机自启

    • 启动服务:sudo systemctl start systemd-timesyncd(Systemd)或sudo systemctl start ntp
    • 设置开机自启:sudo systemctl enable systemd-timesyncd或sudo systemctl enable ntp
  • 强制同步时钟(若当前未同步)

    • 开启自动同步:timedatectl set-ntp true
    • 手动强制同步(部分系统需先停止NTP服务):sudo ntpdate pool.ntp.org
  • 验证所有Celery节点时钟一致性
    在所有Celery worker、beat及调度节点上执行date命令,确认节点间时间差控制在1秒以内。分布式环境下,建议统一配置NTP服务器池(编辑/etc/ntp.conf或/etc/systemd/timesyncd.conf指定服务器地址)。

  • 重启Celery服务
    重启所有Celery相关服务,比如:
    sudo systemctl restart celery-worker
    sudo systemctl restart celery-beat
    (服务名需根据实际部署调整)

内容的提问来源于stack exchange,提问作者curious

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.06 15:22:03