简体   繁体   English

生产中的Rails Resque工作者-在哪里保留Redis服务器?

[英]Rails Resque workers in production - where to keep Redis server?

I have Rails app configured with Resque and Redis. 我有配置有Resque和Redis的Rails应用程序。 I am using God to start/stop workers. 我正在使用上帝来开始/停止工人。 So far I was using Redis-to-go, but since I moved to an EC2 high-memory instance, I think it would be a better idea to run the Redis server on that EC2 instance and have all things happening there. 到目前为止,我一直在使用Redis-to-go,但是自从我移到EC2高内存实例后,我认为在该EC2实例上运行Redis服务器并在那里进行所有操作是一个更好的主意。

Is that a good idea? 这是一个好主意吗?

We run our Redis instance (for resque) on the same server as the rest of our app. 我们将Redis实例(用于resque)与应用程序的其余部分在同一服务器上运行。 It's been great, and uses very little memory. 这很棒,并且只占用很少的内存。 But we only process about 5000 jobs a day. 但是我们每天只能处理大约5000个工作。

Either way, assuming you are only using Redis for Resque, we've done it with extremely low overhead in CPU or Memory. 无论哪种方式,假设您仅使用Redis for Resque,我们都以非常低的CPU或内存开销来完成此操作。 Redis is very efficient as Resque storage. Redis作为Resque存储非常有效。

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

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