- 博客(1)
- 收藏
- 关注
原创 部署Elasticsearch-6.7.0集群及安装配置
Elasticsearch-6.7.0集群安装配置文件目录以及当前环境一.安装Elasticsearch,配置集群1.安装2.配置3.启动二.安装IK分词器1.下载IK分词2.启动IK分词3. 使用IK三.安装配置Kibana1.下载安装Kiana2.启动Kiana 文件目录以及当前环境 当前使用到的环境:ubantu20.04,jdk1.8 节点1:192.168.1.101 节点2:192.168.1.104 一.安装Elasticsearch,配置集群 1.安装 我们当前使用到Elasticsearc
2021-04-09 15:25:04 668
celery-redbeat实现动态任务调度实例代码
CeleryBeat与RedBeatScheduler
有关如何在CeleryBeat上运行RedBeatScheduler的简短示例。 这将需要两个终端窗口才能运行:
$ celery worker -A cluster -l info -P eventlet
$ celery beat -A cluster -l info
然后在第三个窗口中:
$ python
>>> import cluster
>>> from redbeat import RedBeatSchedulerEntry as Entry
>>> e = Entry('thingo', 'cluster.add_task', 10, args=[15, 4], app=cluster.app)
>>> e.save()
>>> key = e.key()
您应该在celery worker终端中看到cluste
目录:
.gitignore
requirements.txt
__init__.py
LICENSE
README.rst
celeryconf.py
cluster.py
add_task.py
2023-02-01
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人