I am using a resque gem to process my background process.
I have setup three queue with one worker each.
Can any one explain how the memory gets consumed with increase and decrease of worker in the queue.
I have heard that each worker loads up separate Rails environment. Is that true?
As far as I know, yes, each worker start a separate Rails environment, so if you have three workers you will have three Rails environments loaded.
Having more workers won’t make your queue to grow longer, it will be the number of jobs queued what will make it to grow.
Either way, if you don’t have any major reason to have 3 separate workers I suggest you to have only one worker for all queues and separate them as your application scales with time.