Redis

10 months ago

Description: Redis key-value data store

Category: Storage

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

3 Replies

abdelrahmanahmed605TRIAL

8 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?


wahmadPRO

a month 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

a month 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


Redis - Railway Help Station