Redis

a year ago

Description: Redis key-value data store

Category: Storage

URL: https://railway.app/template/redis

4 Replies

abdelrahmanahmed605
TRIAL

9 months ago

Hi, I had a question regarding the requirepass configuration for the redis deployment. Currently my application keeps providing me with the following error whenever I call my api's:NOAUTH Authentication required. When I tried connecting to the deployed redis server and ran CONFIG GET requirepass I got the following: NOAUTH Authentication required. I tried setting the password to my provided REDIS_PASSWORD environment variable by doing AUTH <REDIS_PASSWORD> and I received OK but then it went back to the authentication error after some time. It seems that the redis configuration is either not being persisted or being reset between connections, so I was wondering how I could fix this issue.

Does the default redis configuration used by the railway template not have the requirepass set to the default generated REDIS_PASSWORD? Is there an environment variable I can add or how I can I fix this error?


wahmad
PRO

2 months ago

Hi,

Having that the Memory Usage is about 50MB, I don't understand why the volume attached is using 1 GB of disk out of 50.
Is it possible to reduce the disk space?

$ railway volume list    
Project: ...
Environment: production

...

Volume: eyes-volume
Attached to: Redis
Mount path: /bitnami
Storage used: 1063MB/50000MB

Whilst on staging (where production was cloned from):

Project: ...
Environment: staging

...

Volume: eyes-volume
Attached to: Redis
Mount path: /bitnami
Storage used: 150MB/5000MB

wahmad

Hi,Having that the Memory Usage is about 50MB, I don't understand why the volume attached is using 1 GB of disk out of 50.Is it possible to reduce the disk space?$ railway volume list Project: ... Environment: production ... Volume: eyes-volume Attached to: Redis Mount path: /bitnami Storage used: 1063MB/50000MBWhilst on staging (where production was cloned from):Project: ... Environment: staging ... Volume: eyes-volume Attached to: Redis Mount path: /bitnami Storage used: 150MB/5000MB

2 months ago

Hello,

The volume is used for storage, it would make sense that the production system has more storage used because it is likely storing more data than staging Redis.

I would not recommend trying to reclaim disk space as that could result in data loss.

Best,

Brody


uzee
BIZCLASS

8 days ago

Hi. I'm trying to get a better understanding of how these Railway supplied templates work in order to slightly customize them for our use case. Is the source for this template published anywhere by chance?

If not, is there any documentation on how Railway customizes and uses the bitnami/redis image so that we can create something similar of our own? We want almost the exact same functionality as the default from Railway but would like to enable HA via Sentinels.


Redis - Railway Help Station