Giter Site home page Giter Site logo

Cost estimate about railway_django_stack HOT 3 OPEN

CharlesFr avatar CharlesFr commented on August 30, 2024 1
Cost estimate

from railway_django_stack.

Comments (3)

Antvirf avatar Antvirf commented on August 30, 2024

Hey, thanks for opening an issue @CharlesFr !

Cost estimates are a bit difficult with Railway since the services will use minimal CPU when not in use. If you spin up just the base template, having it idle consumes ~zero vCPU, but about 1.3-1.5 GB of RAM, most of which is taken up by Celery. That would amount to about USD 13-15 per month from the latest pricing. If you wanted to optimise it further, it's probably possible to reduce that by decreasing Celery concurrency since by default it uses all available cores.

I've set already configured something like that with Gunicorn as the number of workers is set to 3 in the template to provide a reasonably cheap starting point, though this bit is something you may find a need to increase once you receive more traffic.

For Flower dashboard, I don't think it would be a problem, just add another container/service to deploy. Since it's an admin tool that's probably only used occasionally, I'd recommend configuring app sleeping - that way the cost would probably only be a few cents.

Haven't come across any issues around availability 😄

from railway_django_stack.

CharlesFr avatar CharlesFr commented on August 30, 2024

Thanks for your response, I am paying about $2k per annum with GKE for a very low demand (but high availability) so this seems like a substantially better deal.

Is the docker-compose you've added actually used by Railway or it's just for dev?

On a minor note, Railway has implemented structured logs - is that something you'll be adding to the template?

from railway_django_stack.

Antvirf avatar Antvirf commented on August 30, 2024

The docker-compose is purely for development and trying it out, Railway itself just uses the Dockerfile to build the images and the template itself to choose what/how to deploy.

I've looked at structured logs in Django a couple of times but always rolled back to avoid the extra complexity of more config + more deps. I'm sure at some point I'll get on that train also and then perhaps expand the template :)

from railway_django_stack.

Related Issues (1)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.