Can several servers use the same file?

Discussions about Servers
Post Reply
User avatar
Hitman
Adept
Posts: 282
Joined: Mon Aug 16, 2010 11:01 am
Location: Sweden
Contact:

Can several servers use the same file?

Post 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?
User avatar
esnesi
Godlike
Posts: 1018
Joined: Mon Aug 31, 2015 12:58 pm
Personal rank: Dialed in.

Re: Can several servers use the same file?

Post 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.
Buggie
Godlike
Posts: 2733
Joined: Sat Mar 21, 2020 5:32 am

Re: Can several servers use the same file?

Post by Buggie »

Yes, they can. They use shared lock on windows and linux.
User avatar
Hitman
Adept
Posts: 282
Joined: Mon Aug 16, 2010 11:01 am
Location: Sweden
Contact:

Re: Can several servers use the same file?

Post by Hitman »

Sounds good I will give it a try, will be saving 100 Gig space and avoid a lot off mismatches
Eternity
Skilled
Posts: 172
Joined: Sat Nov 30, 2019 10:56 pm

Re: Can several servers use the same file?

Post by Eternity »

I have been using a symlinks for a long time, everything worked fine.
Had to create custom path for *.u files, though...
User avatar
Barbie
Godlike
Posts: 2802
Joined: Fri Sep 25, 2015 9:01 pm
Location: moved without proper hashing

Re: Can several servers use the same file?

Post 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.
"Multiple exclamation marks," he went on, shaking his head, "are a sure sign of a diseased mind." --Terry Pratchett
Buggie
Godlike
Posts: 2733
Joined: Sat Mar 21, 2020 5:32 am

Re: Can several servers use the same file?

Post by Buggie »

NFO servers use it widely for almost all game files. Even for mention above .u files IIRC.
User avatar
sektor2111
Godlike
Posts: 6410
Joined: Sun May 09, 2010 6:15 pm
Location: On the roof.

Re: Can several servers use the same file?

Post by sektor2111 »

Already did this...
Post Reply