Page 1 of 1

Can several servers use the same file?

Posted: Sat Apr 22, 2023 2:07 pm
by Hitman
I run 16 UT-servers for the fun of it since years back on a high-end machine and each UT-server is about 15-17 Gig, my question is can I merge for example all textures to 1 folder for all 16 servers, I know how to do it but will it work if 2 servers want to use the same file?

Re: Can several servers use the same file?

Posted: Sat Apr 22, 2023 2:14 pm
by esnesi
You got a few possibilities there yes.
Most known option is making copies of your \System folder, so you atleast got 15 ucc instances.
With all their specific server *.ini's ofcourse.

And if all the servers you host, got the same files.
They can atleast find the required files in the other folders.

So instead of having 15 the same \Textures folders etc, you got only 1.
But you do got 15 \System folders.

Iam not sure what happens when you got for example 2 instances on the same map.
Theoretically they only read and should work i would say.

Re: Can several servers use the same file?

Posted: Sat Apr 22, 2023 4:11 pm
by Buggie
Yes, they can. They use shared lock on windows and linux.

Re: Can several servers use the same file?

Posted: Sat Apr 22, 2023 4:21 pm
by Hitman
Sounds good I will give it a try, will be saving 100 Gig space and avoid a lot off mismatches

Re: Can several servers use the same file?

Posted: Sat Apr 22, 2023 6:33 pm
by Eternity
I have been using a symlinks for a long time, everything worked fine.
Had to create custom path for *.u files, though...

Re: Can several servers use the same file?

Posted: Sat Apr 22, 2023 9:00 pm
by Barbie
I use hardlinks; "rdfind" helps me with that:
Usage: rdfind [options] FILE ...

Finds duplicate files recursively in the given FILEs (directories),
and takes appropriate action (by default, nothing).
...
-makehardlinks true |(false) replace duplicate files with hard links
Ofc softlinks are supported, too.

Re: Can several servers use the same file?

Posted: Sat Apr 22, 2023 9:09 pm
by Buggie
NFO servers use it widely for almost all game files. Even for mention above .u files IIRC.

Re: Can several servers use the same file?

Posted: Sun Apr 23, 2023 6:30 am
by sektor2111
Already did this...