Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Architecture for on-demand servers REFRAG and others #140

Open
leogamaz opened this issue Nov 27, 2024 · 1 comment
Open

Architecture for on-demand servers REFRAG and others #140

leogamaz opened this issue Nov 27, 2024 · 1 comment
Labels
question Further information is requested

Comments

@leogamaz
Copy link

Hello everyone! How are you? This is my first time commenting on Github, so I apologize in advance if this is not the appropriate topic to comment on here, but I really couldn't find a more convenient place.

Using the docker image from the repository, it is possible to create containers with specific configurations and this is great, I was able to use it without any major problems, however I had the idea of ​​creating services like Refrag that provide on-demand servers for practically 8 dollars per month. This intrigued me because I can't reach this value through AWS Azure and others using VMS or container services without having to manage an instance. Of course, it may not be possible to compete but the values ​​I obtained would be in the range of 54 dollars per month just in cost, without profit, I didn't even include the cost of persistent storage and other things.

Anyway, does anyone have any tips for a viable cloud architecture to use this repository to deliver servers on demand? I tried AWS using ECS + Fargate + EFS to avoid downloading cs2 every time a new container is started. However, this entire architecture is unfeasible.

Again I apologize if this topic is not appropriate here, thank you very much for your attention :)

@joedwards32
Copy link
Owner

joedwards32 commented Nov 27, 2024

TL;DR

Density is king in reducing costs. You will need to manage VMs/Instances and pack them as densely as possible with CS2 Containers.

General Feedback

I use ECS + Fargate + EFS, but only for short lived containers (playing with friends once a week). I find this cost effective.

In EFS, I use storage tiering to put most of the data into the cheap infrequent access tier.

For longer lived servers, this architecture isn't a good fit. Even using EC2 capacity provider for ECS (t3a reserved instances) you probably can't run a server without over-committing for much less than $20/mo.

#24 is interesting because it would remove the need for persistent storage, just:

  • spin up the container
  • download a much smaller payload from Steam CDN
  • apply a customization bundle from a URL if needed

Getting to $8/mo cost

If I were trying to run this as a service for customers, I would:

Don't know if that gets you down to $8, but it will get you closer.

@joedwards32 joedwards32 added the question Further information is requested label Nov 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants