Questions tagged [redis]

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

441 questions
5
votes
3 answers

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 specific security group or IP address. Is there…
5
votes
1 answer

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: [ OK ] But in fact, it…
Jovan Perovic
  • 143
  • 2
  • 3
  • 14
5
votes
2 answers

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 /home/redis/server. Now when starting it as a…
JackW
  • 261
  • 1
  • 2
  • 10
5
votes
1 answer

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 servers from another group. This is very similar to…
Nathan Basanese
  • 341
  • 2
  • 5
  • 19
5
votes
3 answers

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.redis.plist These didn't generate any errors;…
John Galt
  • 163
  • 1
  • 1
  • 4
5
votes
2 answers

Redis Sentinel does not take action when the master goes down

I am trying to setup a Redis/Sentinel setup across 3 nodes, each of them running one redis instance and a sentinel instance. However, when the master machine goes down, the remaining sentinels just sit there doing nothing, then decide to set each…
5
votes
2 answers

Redis/Sentinel cluster failover results in "failover-abort-not-elected master"

I have a 2 node Redis cluster set-up. [master] 192.168.56.102: Redis Master (:6379), Redis Slave (:6380), Sentinel(:26379), Sentinel#2(:26380) [rescue] 192.168.56.103: Redis Master (:6379), Redis Slave (:6380), Sentinel(:26379) Each slave instance…
sm0ke21
  • 53
  • 1
  • 1
  • 5
5
votes
2 answers

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 seem like a good idea initially, but I'd rather…
Maciek
  • 155
  • 2
  • 6
5
votes
2 answers

Nginx dynamic upstream configuration / routing

I was experimenting with dynamic upstream configuration for nginx and cant find any good solution to implement upstream configuration from third-party source like redis or mysql. The idea behind it is to have a single file configuration in primary…
Dan Sosedoff
  • 247
  • 2
  • 4
  • 11
5
votes
3 answers

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 redis6 is available:…
VIVEK
  • 53
  • 1
  • 4
4
votes
1 answer

Redis sentinel: force switch to another master

Context: I have 3 redis nodes, and 3 sentinels. The failover works properly. When I'm taking the master down, another master is elected. Need: I need a way to test the behavior, to make sure everything works as expected. I wish I could force the…
aspyct
  • 360
  • 1
  • 6
  • 21
4
votes
0 answers

AWS ElastiCache Redis - Why has SwapUsage slowly climbed just over 100MB dispite having FreeableMemory available?

Starting around 7/28/2017 the SwapUsage started to climb for reasons I cannot figure out. I have spent many hours Googling and reading AWS documentation. At no point do we run out of FreeableMemory. CloudWatch Dashboard for the Redis server Does…
4
votes
2 answers

Why does linux sys fs modification work in plain docker but not under kubernetes?

The command being run inside the containers is: echo never | tee /sys/kernel/mm/transparent_hugepage/enabled Both containers run as privileged. But in the kubernetes docker container the command fails with error: tee:…
chrishiestand
  • 974
  • 12
  • 23
4
votes
3 answers

Why is Uchiwa not able to monitor the datacenter on CentOS7?

This post combined with Install Sensu using YUM was used in order to install, configure and start Sensu and related services: sudo yum install -y erlang && \ sudo rpm -Uvh…
030
  • 5,901
  • 13
  • 68
  • 110
4
votes
0 answers

redis-server2 is start-stop-daemon: warning: this system is not able to track process names longer than 15 characters

So I've had the need of running 2 instances of redis in the same server. My server is an Ubuntu 14.04 box. So I followed this guide, but not in a strict way. I mean, instead of modifying redis init scripts (that come from Ubuntu packages) I decided…
user1623521
  • 348
  • 1
  • 3
  • 13