简体   繁体   English

要求:工人启动和分叉缓慢

[英]Resque: Slow worker startup and Forking

I'm currently moving my application from a Linode setup to EC2. 我目前正在将我的应用程序从Linode设置迁移到EC2。 Redis is currently installed on a remote instance with various worker instances interacting with the queue. Redis当前安装在远程实例上,并且各种工作实例与队列进行交互。 Thats all going fantastic. 一切都太棒了。

My problem is with the amount of time it takes for a worker to be 'instantiated' and slow forking. 我的问题是工人被“实例化”并缓慢分叉所花费的时间。 Starting a worker will usually take between 30 seconds and a minute(from god.rb starting the worker rake task and the worker actively starting work on the queue). 启动工作人员通常需要30秒到一分钟的时间(从god.rb启动工作人员rake任务,而工作人员正在队列中主动开始工作)。 I could live with that, but I've not experienced such a wait time on my current Linode production box so I believe its one of my symptoms to a bigger problem. 我可以忍受,但是我在当前的Linode生产包装盒上没有经历过如此的等待时间,因此我认为这是我遇到更大问题的症状之一。 Next issue is that jobs that took a second or less in my previous environment now seem to take about 5 to 10 times longer.. 下一个问题是,在我以前的环境中花了不到一秒钟的时间现在看来要花费大约五到十倍的时间。

I'm assuming this must be some sort of issue with my Ubuntu install on EC2? 我以为这是我在EC2上安装Ubuntu时一定存在的问题? One notable difference is that I'm running REE 1.8.7-2010.01 in my new setup, and REE 1.8.6 on the old Linode boxes. 一个显着的区别是,我在新设置中运行REE 1.8.7-2010.01,而在旧的Linode框中运行REE 1.8.6。

Anyone else experienced these issues? 还有其他人遇到过这些问题吗?

It turns out I had overestimated the CPU power of an EC2 small instance. 事实证明,我高估了EC2小实例的CPU能力。 Moved my workers to a large instance and all is well. 将我的工人搬到一个很大的地方,一切都很好。

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

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