seDirector / App

seDirector is a game server management application.
https://sedirector.net
4 stars 2 forks source link

Same server folder to launch multi server srcds.exe program (sharing game server folders) #63

Open fbef0102 opened 1 year ago

fbef0102 commented 1 year ago

Hello, I like this app. But recently I would like to use same Left 4 Dead 2 Dedicated folder and launch about 10 left 4 dead 2 servers image

I know I can create 10 different folders to do that, but it is very inefficiency, and occupy much disk space. Is there any option?

asheroto commented 1 year ago

Hey there, I'm glad you brought this up. Others have asked a similar question before but it's never been officially addressed.

It makes complete sense that you'd want to share the same directory for multiple servers, because that simplifies administration, especially since most admin use the same plug-ins, similar maps, similar sounds, etc. It also, of course, can save disk space.

The maps and sounds and resources are probably okay to share the same folder, but the big problems arise with things like:

If you have two servers using the same directory, the first game server may accidentally overwrite data written by the second game server, and vice versa. They would essentially compete for the last write, and the game servers could crash. This is because many programs write data by opening a file handle on the file, and after it's done writing, closing that file hanfle. If two separate programs both have file handles on the file, it can create issues. Think of two people writing to the same Microsoft Word document. Usually Word will make it read-only to one of those people.

To ensure the stability of the game server, it's recommended to use separate directories for each game server.

There are two options we've been exploring as workarounds:

Symbolic links seem like a better choice at first because you'd save disk space, but I'm hesitant to proceed with that because multiple writes on a file/folder could easily occur, whereas file sync would wait until the file is done writing before it synced it.

If you are using Windows Server, you can install the File and Storage Services role and enable Disk Deduplication. If Windows sees the same file in two spots, it'll only take up the space of one of the files.

Hope this helps! Let us know if you have any questions. I will probably add this as a feature request on the roadmap.

fbef0102 commented 1 year ago

Thanks for your replay and sharing other options.

I will probably add this as a feature request on the roadmap.

Nice, I will keep using seDirector

asheroto commented 5 months ago

Reopening this to track status changes. Added to the roadmap as officially planned.

asheroto commented 5 months ago

Would also like to see the ability to save space on HTTP Fast Download sync destinations as well.