What is redis used for? #122
-
Hello, the official docker-compose file sets up a redis container next to searxng: I've been trying to understand why exactly. The README does not say anything about why redis is needed. Can I simply ignore redis, then? What are the implications? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
Currently, SearXNG uses redis for two things:
If you don't use these two features, you can disable the redis container. |
Beta Was this translation helpful? Give feedback.
-
I don't fully understand docker but I had an issue with Redis but SearXNG still worked. I fixed it and I looked at the docker-compose file given in 'Any working compose file #124' which is the compose file I was given originally. I don't see anywhere in there that points SearXNG to Redis and if you remove redis from the docker-compose it still works. Is it using Redis in the docker-compose file? If I connect to the contained and use redis-cli and type info it doesn't seem to change when I do any queries via SearXNG. Other times I've seen redis in a shared contained there has been a Redis_URL environment variable. How does this work without one? |
Beta Was this translation helpful? Give feedback.
-
Thank you for the replies. I'll leave it in then as I do have a public instance although not registered at searx.space. I'll turn on the bot-detection in the settings file as well. Just to be safe. Is there a way I can test that it is linked to Redis and working correctly? |
Beta Was this translation helpful? Give feedback.
Currently, SearXNG uses redis for two things:
If you don't use these two features, you can disable the redis container.
In future, redis is going to store more things.