Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What could empty the Redis database (clear all keys)? #65

Open
fatso83 opened this issue Aug 10, 2022 · 0 comments
Open

What could empty the Redis database (clear all keys)? #65

fatso83 opened this issue Aug 10, 2022 · 0 comments
Labels

Comments

@fatso83
Copy link

fatso83 commented Aug 10, 2022

This questions concerns the basic Redis structure and how Resque operates on that, since I am not able to find out how this is dealt with. I am not familiar with Resque, but know how to work with Redis using the redis-cli.

My question:

We have a very low traffic Resque job queue (typically a few jobs a day) on a system not set up by me, with no monitoring whatsoever, and yesterday I was told no emails were being sent out. The Symfony logs were empty and I had nothing to go by, so I logged into the instance running Redis and found NOTHING. Doing KEYS * returned nil. That was scary, as I thought that even no jobs would at least list a few resque keys? Like resque:stat:failed, resque:workers, resque:queues, resque:stat:processed, resque:failed and so forth.

I then found the /data/dump.rdb file and ran strings on it: https://gist.github.com/fatso83/91e6b9ea0c977cabe949574bce08b778

From what I know, this is supposed to contain a persisted dump of what is in-mem and this dump was definitely NOT empty. It contained lots of interesting strings (see the link above to the redacted output).

Is it normal to have no keys in a working Resque Redis database or is this a sign of something going very wrong? Should I try restoring it or what do I do here?

My Environment

  • PHP-Resque version: "chrisboulton/php-resque": "dev-master" (yes, super old, but the disk layout should not have changed, right?)
  • PHP version: 7.4
  • Redis version: 3
  • Server type and version: AWS ECS instance, Docker container
  • Operating System and version: Linux
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant