简体   繁体   English

如何在ManageIQ中运行特定的工作程序?

[英]How to run a specific worker in ManageIQ?

Sometimes I need to run on specific MIQ worker in foreground. 有时我需要在前台的特定MIQ工作者上运行。 rake evm:start runs all the workers, but if I need just one, how can I do that? rake evm:start运行所有工作程序,但是如果我只需要一个工作程序,我该怎么做?

In case if you are unsure what workers to work with, you might be able to do the following: 如果您不确定要与哪些工人一起工作,则可以执行以下操作:

  1. run evm server normally: bundle exec rake evm:start and see what worker types were running: bundle exec rake evm:status 正常运行evm服务器: bundle exec rake evm:start ,查看正在运行的工作程序类型: bundle exec rake evm:status

  2. kill evm server: bundle exec rake evm:stop 杀死evm服务器: bundle exec rake evm:stop

  3. start a single worker in the foreground: 在前台开始一个工人:

ruby lib/workers/bin/run_single_worker.rb MiqWorkerClassHere

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM