V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
chaleaoch
V2EX  ›  Python

celery beat + k8s 集群部署 咋弄咧?

  •  
  •   chaleaoch · 2020-09-22 18:04:22 +08:00 · 2078 次点击
    这是一个创建于 1284 天前的主题,其中的信息可能已经有所发展或是发生改变。
    起了三个 docker celery beat 每次发三个定时消息, 消费 3 次...

    大佬们都怎么部署的?
    7 条回复    2020-09-23 09:54:54 +08:00
    Hstar
        1
    Hstar  
       2020-09-22 18:05:42 +08:00   ❤️ 1
    beat 容器只起一个,或者发任务时加一个分布式锁
    zhoudaiyu
        2
    zhoudaiyu  
       2020-09-22 18:16:27 +08:00   ❤️ 1
    redbeat 了解一下
    chaleaoch
        3
    chaleaoch  
    OP
       2020-09-22 18:17:56 +08:00
    @zhoudaiyu thanks 大佬.
    zhoudaiyu
        4
    zhoudaiyu  
       2020-09-22 18:20:27 +08:00
    @chaleaoch #3 lz 可以试试这个,v2 的 redis 大佬(忘了 ID 了)也参与过开发。正好我们也要上容器,麻烦提前踩踩坑( doge
    BigBrother1024
        5
    BigBrother1024  
       2020-09-22 19:03:49 +08:00
    replicas: 1
    推荐一下我之前写的 django-helm,https://github.com/itswcg/django-helm
    chaleaoch
        6
    chaleaoch  
    OP
       2020-09-22 21:21:46 +08:00
    @BigBrother1024 大佬 你这个我真不敢用...
    NaVient
        7
    NaVient  
       2020-09-23 09:54:54 +08:00
    不太明白,都在 k8s 集群了,定时任务不该是 k8s cronjob 执行吗?
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2939 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 11:08 · PVG 19:08 · LAX 04:08 · JFK 07:08
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.