0
votes
1answer
9 views

Rails: Resque parellel queues

I have multiple jobs running in multiple queues with Resque. My problem is that when one queue is running lots of jobs, it holds up my other queues. I have a Procfile setup with heroku (worker: ...
1
vote
1answer
28 views

Redis publish in rails 4 stops server thread

Sorry for english, i'm newbie. Trying to use redis.publish feature with rails 4 and redis gem to push messages with SSE. I have this block in my controller logger.info "test1" $redis.publish ...
0
votes
1answer
22 views

Why does REDIS key keep expiring?

I'm using REDIS to store an integer value which represents the version of a document. In my code, the only calls to REDIS are the following: def get_document ... version = ...
0
votes
0answers
20 views

Resque not running workers to pick jobs from queue - Rails

I have a resque job to run. I tried queuing my job to a queue by issuing command: Resque.enqueue("QUEUE", params) It pushes the job to the queue. I tried running resque interface as ...
0
votes
1answer
13 views

Running Redmon and Sidekiq within Rails?

I should preface this by saying that I suspect it's a silly question stemming from a schoolboy-grade misunderstanding of how Rails and Sidekiq fit together, but some aggressive Googling and tinkering ...
0
votes
1answer
43 views

RoR Watching for changes in a frequently updated table

I'm looking for some advice about monitoring a specific table which gets about 250,000 inserts per day. Not massive but it's growing quickly and we cannot continue working it as we are. The main ...
0
votes
0answers
36 views

Live Updating of Web app architecture and technologies

I am trying to create a webapp that is pretty much a dashboard of certain services. The app needs to be highly interactive and needs live updating (certain things will change on the backend and ...
1
vote
0answers
52 views

God cannot start redis server. Getting this error: `/var/run/redis/redis-server.pid': Permission denied

I'm trying to monitor a redis server with god (ruby gem). I changed the PID file path in /etc/redis/redis.conf to a rails app temp folder of the user deploying my app (using capistrano), and in the ...
0
votes
0answers
27 views

Rails server not starting with web sockets and redis options in rake task.

I have to use websockets in my rake task and for that I changed my event.rb to config.synchronize = true # Uncomment and edit to point to a different redis instance. # Will not be used unless ...
0
votes
1answer
29 views

How long should a Sidekiq job be?

In the Sidekiq wiki it is stated: Make your jobs small and simple I get simple, I get idempotent and transactional, but what is small? Maybe required Memory and Computing Time is a good ...
-1
votes
0answers
21 views

How to delay and consolidate pub/sub with Redis/Node/Rails

I got a RubyOnRails application that uses a Node.js/Socket.io server to push out trading information to all clients connected. Whenever a trade is executed the client screens get updated with the ...
0
votes
1answer
27 views

Ruby rescue doesn't catch a StandardError

I'm writing tests for a Ruby Rails application, and I have a block of code that is supposed to catch an error thrown by my Redis server if Ruby cannot connect to it. Currently, the code looks like ...
1
vote
1answer
36 views

Rails Redis setting maxmemory and maxmemory-policy

I'm trying to set maxmemory and maxmemory-policy in my cache_store configuration of my Rails app. I did the following in my production.rb file: redis_url = "redis://localhost:6379/0" ...
0
votes
1answer
32 views

Ruby list values are identical after assigning different values

Sorry for the confusing title, not sure how to describe this issue. Inside a Ruby on Rails controller I'm creating a list named @commits, where each item in @commits should contain a hash table whose ...
0
votes
0answers
107 views

RSpec error: Cannot connect to Redis

I'm trying to set up RSpec tests around a Ruby Rails application I just wrote. The application is an add-on to a much larger project, and I'm not very familiar with the environment yet. I've also ...
1
vote
1answer
29 views

Rails, Soulmate, Redis remove record

I use Soulmate to autocomplete searchresults, however I want to be able to delete records after a while so they don't show up in the searchfield again. To reload the list with Soulmate seems a bit ...
0
votes
1answer
144 views

Rails development environment Resque.enqueue does not create jobs

I am having the same problem like Rails custom environment Resque.enqueue does not create jobs , but the solution there doesn't work for me. I'm using Resque for a couple of asynchronous jobs. It ...
0
votes
1answer
29 views

Remove resque jobs permanently?

Is there a way to permanently remove jobs from a resque queue? The following commands remove the jobs, but when I restart the workers and the resque server, the jobs load back up. ...
1
vote
1answer
187 views

Sidekiq jobs stuck in enqueue

Sidekiq has been working in development mode just perfectly. Now that I am trying to use it in production, all the jobs are just sitting in enqueue and aren't ever being run. Could anyone point me ...
0
votes
1answer
48 views

Redis + Soulmate on heroku - Implementing autocomplete on multiple models

This is my first experience with redis, I am implementing autocomplete on the search form with soulmate and redis. I have installed redis on my local machine and I have to do redis-server to make ...
0
votes
1answer
126 views

Share Redis pool between Sidekiq & Rails

What is the best practice to share a Redis connection pool between Rails & Sidekiq ? I've done that in an initializer : Sidekiq.configure_client do |config| pool = ConnectionPool.new(size: 1, ...
0
votes
0answers
45 views

How override a setter and getter method for an Mongoid attribute?

I have some attributes with too reads and writes in Mongo DB, I thought to store on Redis only this attributes for reduce load on server. Now I need to override the setter and getter methods on ...
0
votes
1answer
70 views

Omit, skip redis cache store, if it not available

I use redis-store as cache store for Rails config.cache_store = :redis_store When the redis-request fails (no connection during restart of redis, redis down, timeout, etc) the whole application ...
0
votes
1answer
58 views

Static : Creating a solution for document rating (Redis/Rails/NodeJS ?)

I'm building a static website with 10000+ pages generates from json file with middleman. Each page is a document (pdf) with it's own id, summary and a download link. I need to give anonymous users ...
0
votes
0answers
33 views

RedisToGo clients not quitting on browser close on Heroku

I'm using ActionController::Live on a rails project, and I'm using Redis for its pub/sub feature. I have the RedisToGo plugin added on heroku. Whenever I publish something with redis.publish() it ...
0
votes
1answer
26 views

Rails to Labview networked connection

I have a Rails server that needs to send a little bit of a data to a LabVIEW system when a record is saved. That shouldn't be too hard in Rails using an after_save hook and quite possibly a redis ...
1
vote
0answers
24 views

Sidekiq Continue when complete

I want to do this: def perform # do some stuff Run 10 other workers in parallel # do some more stuff when all 10 are finished end How would I do this in Sidekiq? I thought I may add those ...
1
vote
3answers
222 views

Redis::TimeoutError while using redis-rails on heroku

Updated to include Redis/Resque versions and stack trace (below): redis (3.0.4) redis-namespace (1.3.0) redis (~> 3.0.0) redis-store (1.1.2) redis (>= 2.2.0) resque (1.24.1) mono_logger ...
0
votes
1answer
73 views

Encode utf-8 from redis store

I use Redis for storing and managing my locale translations. But I have some trouble with russian words. The fact that the russian words are stored in the format like that: ...
0
votes
0answers
77 views

Redis Gem LoadError / NameError

I keep getting a LoadError / NameError when trying to use Redis with Rails on my production server My gemfile has require 'redis' and I've ran bundle install My redis.rb initializer file is like so ...
0
votes
1answer
72 views

Rails cache_store with memcached or redis does not produce performace boost

I'm playing with Rails' cache. My changes were in the development.rb in the following order: config.cache_store = :file_store, "#{Rails.root}/tmp/cache" config.cache_store = :dalli_store, { ...
0
votes
1answer
44 views

Stats of elements with a prefix in Redis

I'm using Redis for several things in my Rails app, each with their own prefix. I run Resque (all of resque's stuff is prefixed with resque: We use it as the backing for Rails.cache (I prefix my ...
0
votes
1answer
98 views

Use ruby to create a list of commonly used words or phrases

Looking for some advice on generating a list of commonly used words and phrases from a bunch of entries in a nosql database. Basically we have a bunch of posts made by someone and we want to tell them ...
3
votes
1answer
233 views

Is Redis too slow for Rails production I18n?

I recently switch from the default Simple I18n backend to a Redis backend for my I18n. I did it so make it easier for us to handle the translations, but I've found that there was a substantial ...
4
votes
1answer
358 views

How to kick off pubsub subscriber in Rails app

I have a Rails (web) app that I need to add a (redis) pub/sub subscriber too. Below is my PubsubSubscriber class which I need to kick off then the app starts up. The redis connection is created in ...
1
vote
0answers
106 views

Rails sessions with redis, generating unnecessary session keys

I am having a problem where Redis is gaining a "appSession:*" key at a rate of almost 1 per second. There is no way I have this many users online, there are not even that many users in the database. ...
1
vote
0answers
41 views

I18n redis backend pluralization

I switched my app translations form yml fails to redis backend. What i have in my initializer: TRANSLATION_STORE = Redis.new I18n.backend = ...
0
votes
1answer
71 views

Democratic queue in Sidekiq

Users can create a Project object that contain multiple tasks. When user tells the project to execute all those tasks are put on the default queue from Sidekiq. The problem is: if a user creates a ...
0
votes
0answers
31 views

RoR - Discourse uninitialized constant JsLocaleHelper error

I'm trying to install discourse (http://www.discourse.org) locally (On My Macbook) I was following this guide: https://github.com/discourse/discourse/blob/master/docs/HEROKU.md but I have an issues ...
1
vote
0answers
123 views

Redis and sidekiq ECONNREFUSED

I deploy my rails app and a redis server (on port 13160 on the same server. After i try to launch my app it returns me: Redis::CannotConnectError (Error connecting to Redis on 127.0.0.1:13160 ...
0
votes
1answer
85 views

God configuration file to monitor existing processes?

I am monitoring my redis server using God (a Ruby gem). However, my existing server may already has an instance of redis up. How can I be sure it monitors the existing Redis server process that is ...
0
votes
0answers
239 views

Ruby on Rails/Redis/Unicorn configuration

I've been noticing intermittent timeouts in my app (heroku, ruby on rails, unicorn, redis, etc). After some debugging I've found the timeouts are from the following redis connection error: ...
1
vote
1answer
141 views

multiple methods per sidekiq worker

I don't get it. Per Sidekiq documentation, each worker (mine is called FeedWorker) can only contain one method called perform. Well, what if I want to run mulitple methods through the same worker? ...
2
votes
1answer
126 views

Redis and Rails counter cache column

I currently use a counter cache column in Rails, but I'm starting to perform more complicated queries on the association (ratings). For performance reasons, I'm moving the data into Redis. My ...
2
votes
0answers
235 views

Redis conflict with postgres - error 'database configuration does not specify adapter'

Problem: I added Redis to my Rails app, using postgresql (pg gem, redis gem), and now can't deploy to my staging environment. Cap fails with this error message, after db:schema:dump: database ...
0
votes
1answer
93 views

Rails, Redis, Linux bin file error

i am attempting to get redis-server running in my rails app. i am following this post here (the version numbers are a little outdated) but it seems from the error i am getting ...
2
votes
2answers
252 views

environment variables with Redis

I have a Rails app that sends email notifications using Gmail (it's currently only in development mode). I set the username and password with environment variables like this ...
1
vote
0answers
139 views

Is Redis connection shared in Rails?

In my Rails app I have an initializer that creates a Redis connection: $redis = Redis.new(:host => 'localhost', :port => 6379, :db => 3) My question is: is this connection shared for all ...
4
votes
1answer
436 views

Shared authentication between rails and node.js with redis store

I have a rails app and a node.js app and I use Devise to authenticate users. I store the session with Redis. Now I'd like that when a user go to the node app, the app checks through socket.io whether ...
1
vote
3answers
165 views

sidekiq - fall back to standard sync ruby code when redis server is not running

I'm using sidekiq in a rails app to send some emails asynchronously. How can I ensure that the code (the job itself) is executed even when the Redis server is not running. ...

1 2 3 4 5 6
15 30 50 per page