Questions tagged [redis]

Redis is an open source, highly-scalable key-value store, commonly referred to as a "NoSQL database."

Filter by
Sorted by
Tagged with
69 votes
7 answers
225k views

Redis (error) NOAUTH Authentication required

I get the error: (error) NOAUTH Authentication required. When in redis-cli and trying to display the KEYS *. I've only set a requirepass not an auth afaiac. I'm in the redis.conf but do not know ...
Karl Morrison's user avatar
51 votes
3 answers
130k views

SElinux: allow httpd to connect to a specific port

My system is running CentOS 6.4 with apache2.2.15. SElinux is enforcing and I'm trying to connect to a local instance of redis through my python/wsgi app. I get Error 13, Permission denied. I could ...
savagecitizen's user avatar
51 votes
2 answers
76k views

Redis Cluster: (error) MOVED

I have a Redis cluster with the following nodes: 192.168.0.14:6379 master (slots from 0 to 16383) 192.168.0.15:6379 slave (slots from 0 to 16383) 192.168.0.16:6379 master (without slots) ...
Oleksandr's user avatar
  • 763
21 votes
6 answers
108k views

Redis not starting with systemctl

I have installed redis on an ubuntu 16.04 machine and if I run /usr/local/bin/redis-server /etc/redis/cluster/7000/redis.conf it starts up and I can connect to it without issues. However I want to ...
munHunger's user avatar
  • 383
16 votes
1 answer
14k views

Scaling Logstash (with redis/elasticsearch)

Over a cluster of over 12 centos 5.8 servers, I deployed logstash using the native logstash shipper, which sends /var/log/*/*.log back to a central logstash server. We tried using rsyslogd as the ...
Tom O'Connor's user avatar
  • 27.6k
16 votes
2 answers
19k views

Tips for maximizing Nginx requests/sec?

I'm building an analytics package, and project requirements state that I need to support 1 billion hits per day. Yep, "billion". In other words, no less than 12,000 hits per second sustained, and ...
linkedlinked's user avatar
15 votes
4 answers
41k views

Redis cluster: 3 master nodes minimum?

I'm evaluating the cluster capabilities of Redis 3 (I'm using Redis 2 standalone at the moment), so I am reading the info at http://redis.io/topics/cluster-tutorial. In this document I read a very ...
Mat's user avatar
  • 1,903
15 votes
2 answers
15k views

Avoiding swap on ElastiCache Redis

We have been having ongoing trouble with our ElastiCache Redis instance swapping. Amazon seems to have some crude internal monitoring in place which notices swap usage spikes and simply restarts the ...
Josh Kupershmidt's user avatar
14 votes
3 answers
3k views

Some Linux systems become very slow when Redis is loading a big dataset

I received a report from a Redis user, and I'm not sure what to reply as I'm not an expert in the area of Linux and its scheduler, however we (as the Redis project) need to figure this kind of issues ...
antirez's user avatar
  • 331
13 votes
2 answers
40k views

Why isn't systemctl starting redis-server on CentOS 7?

I've installed redis on a new CentOS 7 box but can't start it using systemctl. It was installed like this: rpm -i http://dl.fedoraproject.org/pub/epel/beta/7/x86_64/epel-release-7-0.2.noarch.rpm yum ...
Zubin's user avatar
  • 509
13 votes
5 answers
42k views

Connect remotely to ElastiCache - Redis

We are using ElastiCache - Redis for our site, we need to flush the Redis cache and when I try to connect to my ElastiCache - Redis remotely by this command from any PC redis-cli -h example-redis-1....
Farmi's user avatar
  • 379
13 votes
1 answer
24k views

Is it safe to delete redis dump and temp files from /var/lib/redis/

I don't know anything about redis and right now i have to free disk space before it fills up. I see some old redis files in /var/lib/redis/ and the file names are like dump1252.rdb dump1254.rdb ...
Mia's user avatar
  • 131
13 votes
2 answers
10k views

How can I disable an Azure Redis Cache?

I have been experimenting with the Azure Redis Cache preview, and so far, so good. However, when I am not using it, I would like to disable it so that it is not consuming memory and not accessible. ...
JeremyDWill's user avatar
12 votes
3 answers
8k views

node.js, mongodb, redis, on ubuntu performance degradation in production, RAM is free, CPU 100%

As the question title suggests, I'm having an hard time to figure out what can be improved on my application(or tuned in the os, ubuntu) to achieve an acceptable performance. But first I'll explain ...
Franjanko's user avatar
  • 276
11 votes
1 answer
64k views

How to turn off 'protected-mode' in Redis?

I'd like to disable protected-mode on my production Redis. Regarding to the following error I got from my other Redis-Sentinel instance I could disable it live by connecting to Redis from the master ...
Thomas Schwärzl's user avatar
10 votes
3 answers
33k views

Redis installation on centos 6.5

I am trying to install Redis on centos 6.5 (x64) with following line: yum install redis But I am getting following screen: [root@NodeJs ~]# yum install redis Loaded plugins: fastestmirror Setting ...
Tolgay Toklar's user avatar
10 votes
2 answers
14k views

How to handle Redis raising memory fragmentation?

I have a Redis 3.0.5 instance that tend to show growing mem_fragmentation_ratio over time. The application using that instance is constantly creating and deleting keys. After one month, I end up ...
Olivier Dauby's user avatar
10 votes
2 answers
42k views

How to troubleshoot redis high CPU usage? And how to limit Redis CPU usage?

We have inherited a system in which there is a central server for queuing operations. Redis is chosen as queuing agent. Once in a while (like each 2-3 days) Redis service CPU usage goes even over 100%....
Saeed Neamati's user avatar
9 votes
4 answers
10k views

How to install and configure Redis server on Amazon Linux 2023 (AL2023)?

Amazon Linux 2023 is loosely based on Fedora 34, 35 and 36 as per aws: https://docs.aws.amazon.com/linux/al2023/ug/relationship-to-fedora.html However redis package is not available in AL2023, instead ...
VIVEK's user avatar
  • 93
9 votes
4 answers
22k views

How can I block port 6379 for outside traffic on ubuntu?

I want to block access to port 6379 on my server, but I still want to connect to it internally. The redis-server application runs on that port and I want to connect to it only locally (127.0.0.1). ...
Steve Rodrigue's user avatar
9 votes
3 answers
42k views

How do I load the dump.rdb file into redis?

I have a dump.rdb file, which is in the same directory as redis.config. When I start my sever: redis-server ./redis.config It does not load the data in that 1 GB file. How do I load that data?
Alex's user avatar
  • 8,591
9 votes
1 answer
6k views

Redis reports read-only filesystem, but it isn't

I get this in my Redis logs: 1182:M 30 Nov 14:27:00.028 * 1 changes in 900 seconds. Saving... 1182:M 30 Nov 14:27:00.029 * Background saving started by pid 1920 1920:C 30 Nov 14:27:00.029 # Failed ...
Joe's user avatar
  • 589
9 votes
2 answers
10k views

upgrading from Redis 2.8.19 to 3.0.1

I currently have installed Redis 2.8.19 but I'm looking to upgrade to the latest stable release 3.0.1. Originally I downloaded, uncompressed, and compiled 2.8.9. What is the recommended approach to ...
Warren Bullock III's user avatar
9 votes
4 answers
28k views

Why does redis report limit of 1024 files even after update to limits.conf?

I see this error at the top of my redis.log file: Current maximum open files is 1024. maxclients has been reduced to 4064 to compensate for low ulimit. I have followed these steps to the letter (...
esilver's user avatar
  • 335
9 votes
1 answer
8k views

Redis Multi-Master Replication

Scenario: We have two datacentres which run concurrently (both serve traffic). Each has it's own entire stack of infrastructure, so it can operate without the other being up. That said, we would ...
user avatar
8 votes
3 answers
6k views

How do I configure another instance of redis on ubuntu?

I basically want to have 2 instances of redis on Ubuntu. I looked at /etc/init.d/redis-server script and tried to create a new one (redis-server-dev) pointing to another config file (new port etc) ...
Dan's user avatar
  • 371
8 votes
3 answers
24k views

Cannot connect to Redis installed on VirtualBox running Ubuntu from Windows 7

I've setup an Ubuntu image on VirtualBox on a Windows 7 host. On the Ubuntu guest I've installed Redis which runs on port 6379 (TCP) by default. I've setup port forwarding using the VirtualBox GUI ...
mep-um's user avatar
  • 195
8 votes
4 answers
17k views

Redis won't shutdown

Most of the time when I reboot my Ubunutu server, I get "Waiting for Redis to shutdown…" over and over and it never stops until I force reboot. What could cause this? I have http://godrb.com/ ...
99miles's user avatar
  • 371
8 votes
1 answer
10k views

How can I generate a command for start-stop-daemon that will kill the process if it doesn't term during a timeout period?

I need to run a start-stop-daemon for a redis instance and I want it to send a SIGTERM and if the redis instance doesn't quit i would like it to force a quit. The start-stop-daemon configuration says ...
Maurício Linhares's user avatar
8 votes
1 answer
19k views

Redis appendonly.aof file size out of control

I host a Rails 5 website that uses Sidekiq to manage its background jobs. The problem I have is that regularly the appendonly.aof file grows to big that it fills that whole disk where it is saved. ...
jlfenaux's user avatar
  • 313
8 votes
2 answers
2k views

Troubleshooting a Redis Stall

We have several redis instances running on a server. There are also multiple web tier servers connecting to those instance that experience a stall at the same time. We had packet captures going at ...
Kyle Brandt's user avatar
  • 84.4k
8 votes
2 answers
33k views

Redis high availability and load balancing

I'm using Redis for some time and now we want to move to a redundant cluster which would be fault tolerant, highly available and load balanced. I principally use Redis for some PHP web application ...
Mat's user avatar
  • 1,903
7 votes
1 answer
9k views

How do you get Redis connections working within an Amazon VPC private subnet?

I have an Amazon VPC setup with a private subnet containing 2 instances. One of them has redis running on it, the other instance I want to use to connect to the redis server. I have the redis instance ...
Tomek's user avatar
  • 215
7 votes
2 answers
2k views

Redis vs Memcache

I'm a bit new to Memcache and Redis and I'm trying to understand the difference between the two and what each actually is. As has been explained to me Memcache is a database caching solution. Data ...
Brad's user avatar
  • 619
7 votes
3 answers
16k views

How to uninstall the redis installed from source in ubuntu 12.04?

I'd installed the redis-server on Ubuntu 12.04 from source. But at somepoint it couldn't get installed fully, failed on last make install cmd. Then I just installed via apt package. Now I'm confused ...
millisami's user avatar
  • 395
7 votes
1 answer
15k views

Setting up multiple redis masters

In recent study, I was led to the belief that it is not possible for redis to be setup with multiple masters with each master having 2 slaves. https://github.com/uolter/redis_failover/issues/4#...
Mark's user avatar
  • 171
7 votes
1 answer
12k views

How can you link nodes in a redis cluster via hostname instead of ip?

Redis cluster requires that all nodes can see each other to chatter; to accommodate some trivial situations (eg. docker with all nodes publicly exposed) some additional config options are available: ...
Doug's user avatar
  • 247
7 votes
3 answers
26k views

Redis reload configuration changes without restarting service

When I change redis configuration via puppet, is there a better way to load the configuration other than restarting the redis service?
kalyan's user avatar
  • 249
6 votes
3 answers
12k views

How do I install the latest stable version of Redis?

I am new to redis. and I just followed cli to install redis sudo apt-get install redis. but the install server version is 2.2.12 . If I want to update this version and I want to install redis 2.7 + ...
lord_linus's user avatar
6 votes
2 answers
5k views

Redis with custom data dir: systemd config file changed automatically?

I'm running Redis 4.0.9 on Ubuntu 18.04.1 LTS with a custom data dir for the RBD file. To make this work, besides updating the dir in redis.conf to the new location, I also had to update /etc/systemd/...
Andrei O's user avatar
  • 163
6 votes
1 answer
3k views

Redis 2.8.12 slave sync failing

I'm getting the following error when trying to sync from same version master in redis cloud: # Server started, Redis version 2.8.12 * The server is now ready to accept connections on port 6379 * ...
AXE Labs's user avatar
  • 1,559
6 votes
2 answers
2k views

Installing additional LUA modules into Redis

I'm trying to get Redis to allow EVAL (http://redis.io/commands/EVAL) to make HTTP requests. Two modules: LuaCURL and Luasocket give this ability. The Redis source code has a directory with ...
user3786834's user avatar
6 votes
1 answer
2k views

Redis connection issue

We are currently experiencing a lot of Redis errors with the message Unable to connect: read error on connection, trying next server We run Redis on FreeBSD using PHP Redis and we have a hard time ...
mre's user avatar
  • 311
5 votes
3 answers
4k views

How to secure Redis cluster on AWS elasticache

I have been reading up on Redis with AWS Elasticache and am a little confused on security. So far, it seems the only security is to create a Redis Security Group that only allows access from either a ...
Hurricane Development's user avatar
5 votes
2 answers
5k views

Is installing multiple redis instances on the server a good idea?

As title says. I'm considering creating a state service farm using redis, and I'd like to handle multiple "regions" - that way, if a service goes down only a single region should be affected. This may ...
Maciek's user avatar
  • 155
5 votes
2 answers
11k views

Redis doesn't start when run as service - can't chdir: permission denied

I have been running redis which I built from source for several months, but I switched to using a package manger for it today (running on Debian). It ran fine until I changed the working directory to /...
JackW's user avatar
  • 261
5 votes
1 answer
11k views

How does one close all _existing_ TCP connections on some ports using IPTables?

Say I have a quick network partition test that I'd like to run, like disconnecting two halves of a ReDiS cluster from each other, and I want to use IPTables to temporarily disconnect one group of ...
Nathan Basanese's user avatar
5 votes
3 answers
10k views

Starting Redis as a service on OS X with Homebrew

I installed Redis via brew install redis and attempted to add it as a service via: ln -sfv /usr/local/opt/redis/*.plist ~/Library/LaunchAgents launchctl load ~/Library/LaunchAgents/homebrew.mxcl....
John Galt's user avatar
  • 163
5 votes
3 answers
9k views

AWS Redis Encryption in-transit + TLS EC2 Connection

I'm already using AWS Elasticache Redis but without "Encryption in-transit". I've created a new small/temp cluster with this Encryption Enabled but I can't connect to it - redis-cli error: ...
Adam's user avatar
  • 515
5 votes
1 answer
11k views

Unable to start Redis under SELinux

I having a rather persistent issue with my Redis instance. While SELinux is in enforcing mode, Redis server is unable to start: [root@server ~]# service redis start Starting redis-server: ...
Jovan Perovic's user avatar

1
2 3 4 5
9