0
我正在使用厨师与poise/application_python配方来启动芹菜工人。但我没有找到如何设置这些工人的并发性。厨师:设置并发与poise应用程序python配方
任何人都知道该怎么做?
在此先感谢!
我的食谱:
node['python-app'].each do |app|
application '/srv/' + app['name'] do
git do
repository app['repo']
revision app['branch'] if app['branch']
deploy_key data_bag_item('ssh_keys', app['deploy_key'])['key'] if app['deploy_key']
end
virtualenv
pip_requirements
celery_worker do
app_module 'tasks'
user 'celery'
service_name "scrawler"
end
celery_config do
options do
worker_concurrency 5 # nothing...
concurrency 4 # nothing...
end
end
end
end
我使用这个食谱:https://github.com/poise/application_python –