Create an account


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Deploying a server across multiple machines

#1
Hi guys, for my Masters research project I am attempting to offload the Xonotic server code between two machines i.e. part of the server code is deployed to the cloud and the rest locally. I am attempting to split the most latency demanding tasks within the server code so they are run on a local machine closer to a user than the cloud. I was wondering if anyone had attempted to offload code like this between two machines before or had any advice on what server components would be best offloaded or split from the main codebase to a local machine/server? Thanks.
Reply

#2
I don't think anybody has attempted to split the server yet. Normally when you run a local game, the client and server both run in the same process (and thread) which results in low FPS with bots. A simple way around it is to run the server in a separate process (which is how it works with dedicated servers) but to use it for local games (especially the campaign) seamlessly we'd need a way to share cvars between the processes (they're shared when running in one process). Alternatively I heard there's experimental support for running the server in a separate thread even in local games but very unstable. I don't know more about that,

If you wanna split only server code, then i'd suggest looking into separating bot code. Except aiming, their reactions are not really latency sensitive.
[Image: 30381.jpg]

<packer> when i see martin-t's name my blood pressure increases

<[BOT]Hоtdоg> anyone here lives near martin?
<[BOT]Hоtdоg> will pay monies for shooting him
Reply



Possibly Related Threads...
Thread Author Replies Views Last Post
  Latest Beta Server evit 1 555 04-02-2021, 04:06 PM
Last Post: end user
  Server does not start saddesad 2 348 11-25-2020, 04:39 AM
Last Post: saddesad
  [NEED HELP] Server failed to open socket on address... Hexactinal 2 372 11-21-2020, 04:28 PM
Last Post: Hexactinal
  Server Hosting Issue Saevus 3 1,020 11-11-2020, 02:53 PM
Last Post: :[:{b_e*r^f}:]:
  Docker Xonotic Dedicated Server ich777 15 3,591 10-08-2020, 11:15 AM
Last Post: BuddyFriendGuy
  BuddyFriendGuy Fun Server BuddyFriendGuy 22 8,932 10-08-2020, 11:14 AM
Last Post: BuddyFriendGuy
Rainbow Kotangєns' independent server Kotangens 2 686 10-07-2020, 05:08 AM
Last Post: L497
  RaspberryPi4 Server ablyveiled 2 1,109 08-19-2020, 10:36 PM
Last Post: ballerburg9005
Question [NEED HELP] Server uses 40% CPU whereas Nexuiz server runs with max 10% e-pig 6 2,860 08-19-2020, 10:17 PM
Last Post: ballerburg9005
  [SOLVED] I can't create my server. Kotangens 11 1,755 07-22-2020, 04:42 AM
Last Post: Kotangens

Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum software by © MyBB original theme © iAndrew 2016, remixed by -z-