Questions regading pricing, how to reduce costs

hello I have a app that runs with postgres, redis, and a single instance running, the last month bill was $ 42 and it's already estimated to $ 76 is that correct ? what Im missing ?
No description
Solution:
update those two url variables with the values shown below
DATABASE_URL=${{Postgres.DATABASE_PRIVATE_URL}}
REDIS_URL=${{Redis.REDIS_PRIVATE_URL}}
DATABASE_URL=${{Postgres.DATABASE_PRIVATE_URL}}
REDIS_URL=${{Redis.REDIS_PRIVATE_URL}}
...
Jump to solution
154 Replies
Percy
Percy•8mo ago
Project ID: N/A
Brody
Brody•8mo ago
are you connecting to postgres and redis via the private network? if not, you are subjecting yourself to unnecessary egress fees
sostenesapollo
sostenesapollo•8mo ago
hello not sure
Brody
Brody•8mo ago
hello!
sostenesapollo
sostenesapollo•8mo ago
probabbly via network let me check it
Brody
Brody•8mo ago
what variables are you using when connecting to your two databases?
sostenesapollo
sostenesapollo•8mo ago
yeah Im using the external url :HAHAHA: how to switch ?
Brody
Brody•8mo ago
both postgres and redis have private url variants, using those to connect to the database will eliminate all database <--> service egress fees
sostenesapollo
sostenesapollo•8mo ago
got it how to change ?
sostenesapollo
sostenesapollo•8mo ago
No description
sostenesapollo
sostenesapollo•8mo ago
I think I must set like this, right ?
Brody
Brody•8mo ago
that is using the public network to connect to the databases
sostenesapollo
sostenesapollo•8mo ago
sh**t that's the reason additional $18
Brody
Brody•8mo ago
what two environment variables does your code use to connect to the two databases?
sostenesapollo
sostenesapollo•8mo ago
Database_url and redis_url
Want results from more Discord servers?
Add your server