Quantcast
Channel: Active questions tagged redis+ruby-on-rails - Stack Overflow
Viewing all articles
Browse latest Browse all 873

Sidekiq set-up from localhost to deployment

$
0
0

Context: First time usage of ActiveJob via Sidekiq and Redis.

Situation: Sidekiq and redis are installed and running (route /sidekiq does generate the control panel) and is polling.

Issue(s?): Installation on remote server and enabling rather opaque... which may explain whay a default defined job is not executing although the server is inactive.

Maybe the sequence of going through Rails, then Sidekiq, then redis documentation was mistaken.

Uncertainty #1: However, I finally picked up that redis-server has to be launched. But what is not clear is how this can be part of the deployment process and a server start-up process to ensure this is running without manual input?

Uncertainty #2: Documentation indicates that sidekiq should be started via

bundle exec sidekiq -q critical -q high -q default -q low

again, what is not clear is how this can be part of the deployment process and a server start-up process to ensure this is running without manual input?

Uncertainty #3: if one of the above two is done improperly it may explain the following behaviour.

After starting sidekiq with the above command (this is assuming 4 levels of priority are needed. In the present context they are not; but I wanted to test and observe behaviour) and through an action activating a job

GenerateCodeJob.perform_later(item, shop)

=> it is found in Sidekiq's queues, under the Queue default and sits there for yonks.

My understanding is that jobs are performed based on server resource availability. But that is clearly not the case.

So what are the priorities and what type of timings are involved?Or could the set-up be mistaken?


Viewing all articles
Browse latest Browse all 873

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>