Sidekiq - GovWizely/webservices GitHub Wiki

Setting up in OpsWorks

[THESE INSTRUCTIONS ARE DEPRECATED. SEE How to: set up a fully decoupled AWS Stack INSTEAD.]

  1. Ensure redis-server is installed:
  • Add “redis-server” as an OS package (Layers -> Rails App Server -> Recipes -> Edit -> Under the OS Packages header enter “redis-server” in the text field -> Save)
  • Install the package on the instance (Stack -> Run Command -> Select “Install Dependencies” from Command select -> click Install Dependencies button)
  1. Add sidekiq recipe:
  • Update custom recipes (Deployments -> Run Command -> Update Custom Cookbooks)
  • Add recipe to Deploy list (Layers -> Rails App Server -> Recipes -> Edit -> Under Custom Chef Recipes, add “opsworks-sidekiq::deploy” to Deploy list -> Save)
  • Add necessary settings to Stack settings (Stack -> Stack Settings -> Edit -> add the following to Custom JSON -> Save)
  "deploy": {
    "YOURAPPNAME": {
      "sidekiq": {"bundle exec sidekiq -e production 2>&1 >> log/sidekiq.log"}
    }
  }
  1. Deploy app.

Web UI

There's a web UI that provides various tools related to Sidekiq and the workers that are currently running. Just visit /sidekiq on whichever environment you're interested in. You'll have to be logged into the app with an @govwizely.com or @rrsoft.co email address in order to gain access though.

Outstanding issues

  • I'd want to look into monitoring of the Sidekiq process, to ensure that it is restarted if it dies.