skip to Main Content

Optimize a redis appendonly file

I have a appendonly.aof file that's grown too large (1.5gb, and 29,558,054 lines). When I try and load redis it hangs on "Loading data into memory" for what seems like all day (still hasn't finished). Is there anything I can…

VIEW QUESTION

Redis keeps failing on Windows 10 with Node.JS : Error: Redis connection to 127.0.0.1:6379 failed – connect ECONNREFUSED 127.0.0.1:6379

Consider the code : const mongoose = require("mongoose"); const redis = require("redis"); const util = require("util"); const redisUrl = "redis://127.0.0.1:6379"; const client = redis.createClient(redisUrl); client.hget = util.promisify(client.hget); const exec = mongoose.Query.prototype.exec; mongoose.Query.prototype.cache = function(options = {}) { this.useCache = true;…

VIEW QUESTION

How to handle "Redis.exceptions.ConnectionError: Connection has data"

I receive following output: Traceback (most recent call last): File "/home/ec2-user/env/lib64/python3.7/site-packages/redis/connection.py", line 1192, in get_connection raise ConnectionError('Connection has data') redis.exceptions.ConnectionError: Connection has data During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/ec2-user/env/lib64/python3.7/site-packages/eventlet/hubs/hub.py", line…

VIEW QUESTION
Back To Top
Search