Redis Egress Billing skyrocketed when nothing changed on the app
it says my Redis egress usage crossed 283.10 GB. This is way beyond my normal usage and there has not been any change in the app or workload. What is the reason for this? Pls help rectify
11 Replies
Project ID:
8929a4ad-5433-4d16-a231-4d6a8d23a012
Project ID:
8929a4ad-5433-4d16-a231-4d6a8d23a012
8929a4ad-5433-4d16-a231-4d6a8d23a012
how are you connecting to your redis database, are you using the public or private url?
https://docs.railway.app/guides/redis#connect
if you are connecting to it via the public network you will incur egress fees. in contrast if you are connecting to it via the private network, there would be no egress fees.
okay. Is this because of the migration to the new Redis service or that's how it has always been?
thats how its always has been
going forward you would want to connect to redis by referencing the
REDIS_PRIVATE_URL
variable
https://docs.railway.app/guides/variables#referencing-another-services-variableUsing the private url didn't work. I got an error
Redis Client Error Error: getaddrinfo ENOTFOUND redis.railway.internal
ioredis?
yeah
read the ioredis section here https://docs.railway.app/guides/private-networking#known-configuration-requirements-for-ipv6
ok thanks