News for hackers. Stuff that matters.
Re:Almost free serverless on-demand Minecraft server in AWS by academia_hack on Wednesday September 08, 2021 @06:34AM (#28455273)
This is awesome! I'm still afraid that one of my friends will go on a Minecraft binge (or idle in a farm) and drive up the costs beyond the $13/month or so I pay for VPS hosting but I think this approach would objectively be quite a bit cheaper for the casual vanilla SMP server I run for a dozen or so folks. Anyone know how to estimate the "worst case" monthly cost for this config?

Edit: Just saw that the GitHub includes a link to an AWS calculator. Looks like a month of continuous usage caps out at $40-ish. Not too bad since my realistic worst case is probably more like 8/hrs per day rather than the full 24.

Re:Almost free serverless on-demand Minecraft server in AWS by fastball on Wednesday September 08, 2021 @08:08AM (#28455874)
If you're worried about idling in farms just auto-kick after 1 hour of AFK or w/e.
Re:Almost free serverless on-demand Minecraft server in AWS by Aeolun on Wednesday September 08, 2021 @08:52AM (#28456263)
Why idle in farms? Can’t you just put down a chunk loader or something?
Re:Almost free serverless on-demand Minecraft server in AWS by dasyatidprime on Wednesday September 08, 2021 @09:37AM (#28456739)
That would have much the same cost effect if the server were kept up for it, and wouldn't be effective if the server were taken down.
Re:Almost free serverless on-demand Minecraft server in AWS by fastball on Wednesday September 08, 2021 @09:12AM (#28456464)
It's been a while since I played minecraft, so I don't know what a chunk loader is.

When I played, if nobody was in the vicinity of the chunks with your farm in it it would unload and of course then the farm would not produce, so people would AFK in their farm to keep the chunks loaded.

Re:Almost free serverless on-demand Minecraft server in AWS by maybevain on Wednesday September 08, 2021 @09:24AM (#28456604)
Some Minecraft mods add items that force the game to keep certain chunks loaded. From the casual "Can't you just" I assume the parent meant those. It is however also possible, but much more complicated, to force the game to keep chunks loaded in Vanilla Minecraft. [0]

[0] https://www.youtube.com/watch?v=dx5Wd28AKxQ (the video is a couple years old so the current implementation might be different, but I think the basic principles are still the same).

Re:Almost free serverless on-demand Minecraft server in AWS by zimpenfish on Wednesday September 08, 2021 @01:19PM (#28460177)
ilmango dropped a new chunk loader a few weeks back - https://www.youtube.com/watch?v=B8z7q_pwjL4

Looks pretty easy to build.

Re:Almost free serverless on-demand Minecraft server in AWS by zimpenfish on Wednesday September 08, 2021 @01:15PM (#28460126)
If it's a mob farm, a chunk loader won't work on its own, I think?
Re:Almost free serverless on-demand Minecraft server in AWS by BiteCode_dev on Wednesday September 08, 2021 @06:38AM (#28455292)
Private minecraft servers as a service doesn't exist yet ?
Re:Almost free serverless on-demand Minecraft server in AWS by zimpenfish on Wednesday September 08, 2021 @06:59AM (#28455400)
> Private minecraft servers as a service doesn't exist yet ?

They do but, afaik, there's no "spin up and down" ones that charge you for usage; they're all "$X per month" fixed cost.

(Although looking at the costs these days, they're not that much higher than this would cost you for even a medium-sized world.)

Re:Almost free serverless on-demand Minecraft server in AWS by udbhavs on Wednesday September 08, 2021 @07:44AM (#28455677)