redistogo

Redis server version for RedisToGo on Heroku

做~自己de王妃 提交于 2019-12-24 06:45:37
问题 I am using the RedisToGo add-on on heroku. How can I get the redis server version being used? 回答1: Using the INFO command in redis-cli will give this information. For my situation: In my rails app have a constant called REDIS that is initialized as a Redis client. Doing a REDIS.info gave me the required information. 回答2: They say explicitly on their site: All new RedisToGo instances run with 2.8.9 as default. If you have an existing instance and need your version upgrading then please drop us

redisClient.set :- no update no error

删除回忆录丶 提交于 2019-12-13 05:27:53
问题 redisClient.get('abc', function(err, abcValue){ console.log(abcValue); abcValue = abcValue + 'id'; redisClient.set('abc', abcValue, function(err){ console.log('abc updated'); }); }); nested updation over network, prints 'abc updated', but actual value does not update in redis database. Note:- the above code works on localhost, but update not showing on heroku-redistogo. Edit:- I'm running code on localhost, with redis connected to Redistogo. Using the following code:- Setting up of express

Maximum clients reached on Heroku and Redistogo Nano

老子叫甜甜 提交于 2019-12-10 03:28:34
问题 I am using celerybeat on Heroku with RedisToGo Nano addon There is one web dyno and one worker dyno The celerybeat worker is set to perform a task every minute. The problem is: Whenever I deploy a new commit, dynos restart, and I get this error 2014-02-27T13:19:31.552352+00:00 app[worker.1]: Traceback (most recent call last): 2014-02-27T13:19:31.552352+00:00 app[worker.1]: File "/app/.heroku/python/lib/python2.7/site-packages/celery/worker/consumer.py", line 389, in start 2014-02-27T13:19:31

Heroku Error: ArgumentError: invalid uri scheme ''

南楼画角 提交于 2019-12-08 12:03:51
问题 I'm trying to get my Rails app to process background jobs with Sidekiq and to connect Sidekiq with redis-to-go on Heroku. Here's my Procfile : web: bundle exec puma -C config/puma.rb worker: bundle exec -C config/sidekiq.yml Here's my the Sidekiq.rb intializer file: require 'sidekiq' Sidekiq.configure_client do |config| config.redis = { url: ENV['REDIS_PROVIDER'] } end Sidekiq.configure_client do |config| config.redis = { url: ENV['REDIS_PROVIDER'] } end The REDIS_PROVIDER variable is set to

Recover from dropped connection in redis pub/sub

情到浓时终转凉″ 提交于 2019-12-06 02:20:23
问题 I am running client that is connecting to a redis db. The client is on a WiFi connection and will drop the connection at times. Unfortunately, when this happens, the program just keeps running without throwing any type of warning. r = redis.StrictRedis(host=XX, password=YY...) ps = r.pubsub() ps.subscribe("12345") for items in ps.listen(): if items['type'] == 'message': data = items['data'] Ideally, what I am looking for is a catch an event when the connection is lost, try and reestablish the

Maximum clients reached on Heroku and Redistogo Nano

强颜欢笑 提交于 2019-12-05 03:03:47
I am using celerybeat on Heroku with RedisToGo Nano addon There is one web dyno and one worker dyno The celerybeat worker is set to perform a task every minute. The problem is: Whenever I deploy a new commit, dynos restart, and I get this error 2014-02-27T13:19:31.552352+00:00 app[worker.1]: Traceback (most recent call last): 2014-02-27T13:19:31.552352+00:00 app[worker.1]: File "/app/.heroku/python/lib/python2.7/site-packages/celery/worker/consumer.py", line 389, in start 2014-02-27T13:19:31.552352+00:00 app[worker.1]: self.reset_connection() 2014-02-27T13:19:31.552352+00:00 app[worker.1]:

Recover from dropped connection in redis pub/sub

孤街醉人 提交于 2019-12-04 06:42:57
I am running client that is connecting to a redis db. The client is on a WiFi connection and will drop the connection at times. Unfortunately, when this happens, the program just keeps running without throwing any type of warning. r = redis.StrictRedis(host=XX, password=YY...) ps = r.pubsub() ps.subscribe("12345") for items in ps.listen(): if items['type'] == 'message': data = items['data'] Ideally, what I am looking for is a catch an event when the connection is lost, try and reestablish the connection, do some error correcting, then get things back up and running. Should this be done in the