Workshop backup http server

DC_DarklingDC_Darkling Join Date: 2003-07-10 Member: 18068Members, Constellation, Squad Five Blue, Squad Five Silver
hey folk,

Im not sure how many admins are trying this at the moment, so I thought id see if anyone else experienced the problems I had or has ideas how to solve some.
Lets begin.


First of all, I would strongly suggest testing with a live working mod. (just check your clients workshop folder for one).
I tried some old ones from the readme and it threw me off. (It just does not download while giving weird errors on both the site and the logs)
So yes, test with a real mod and save yourself some pain.
Also no need to bother with the python if you use the exe, or vice versa.


Due to bandwidth I want to use the backup http as well, backup to steam. I noticed however something which may complicate this in theory. Bare with me.

* Mods only get downloaded to the server if a client requests them.
* If a client does not request them, then the server does not keep them up to date (to my knowledge).
* If a server does not yet have a updated mod, as its set to backup, it may not be able to get the mod if workshop is down, for obvious reasons.
* This means clients who do have the newer version may experience issues.

Of course workshop hasn't broken yet while im testing so I am uncertain if this will be a actual problem.


So, does anyone know how to keep the server http backup updated with more mods if set to backup? As downloading the mods when workshop goes nuts is obviously to late.

Cheers,
DC

Comments

  • GhoulofGSG9GhoulofGSG9 Join Date: 2013-03-31 Member: 184566Members, Super Administrators, Forum Admins, Forum Moderators, NS2 Developer, NS2 Playtester, Squad Five Blue, Squad Five Silver, Reinforced - Supporter, WC 2013 - Supporter, Pistachionauts
    edited March 2015
    hey folk,

    Im not sure how many admins are trying this at the moment, so I thought id see if anyone else experienced the problems I had or has ideas how to solve some.
    Lets begin.


    First of all, I would strongly suggest testing with a live working mod. (just check your clients workshop folder for one).
    I tried some old ones from the readme and it threw me off. (It just does not download while giving weird errors on both the site and the logs)
    So yes, test with a real mod and save yourself some pain.
    Also no need to bother with the python if you use the exe, or vice versa.


    Due to bandwidth I want to use the backup http as well, backup to steam. I noticed however something which may complicate this in theory. Bare with me.

    * Mods only get downloaded to the server if a client requests them.
    * If a client does not request them, then the server does not keep them up to date (to my knowledge).
    * If a server does not yet have a updated mod, as its set to backup, it may not be able to get the mod if workshop is down, for obvious reasons.
    * This means clients who do have the newer version may experience issues.

    Of course workshop hasn't broken yet while im testing so I am uncertain if this will be a actual problem.


    So, does anyone know how to keep the server http backup updated with more mods if set to backup? As downloading the mods when workshop goes nuts is obviously to late.

    Cheers,
    DC

    Well, the "mayor idea" behind the backup server script was that it would be mainly hosted out of the server's workshop folder.

    If the workshop backup server is a separated server i highly recommend to run at least one of your popular servers with "mod_backup_before_steam" set to true!

    The in the readme given mod for testing is only a example and ofc outdated by now.
  • DC_DarklingDC_Darkling Join Date: 2003-07-10 Member: 18068Members, Constellation, Squad Five Blue, Squad Five Silver
    I can do that?

    The servers store mods unzipped, just like the client.
    But the http one saves them in .zip format.
    Which made me assume I can not use the servers own mod directory for the backup server.
  • d4rkAlfd4rkAlf Sweden Join Date: 2013-11-12 Member: 189309Members, Squad Five Blue, Reinforced - Shadow
    Since we're already talking about this I just want to ask if it would be possible to add weights for some crude load balancing? I know the server already chooses a backup server at random. But as far as I can tell they all have an equal chance of getting picked.

    I'm thinking that maybe I have an upload of 100 Mbps while my buddy has an upload of 1000 Mbps. In that case it would make sense that my backup server only gets picked 1 out of 11 times.
  • DC_DarklingDC_Darkling Join Date: 2003-07-10 Member: 18068Members, Constellation, Squad Five Blue, Squad Five Silver
    Had a quick chat.
    Best to use a servers mod directory as source, zip all the mods, and offer that to the http server.
  • GhoulofGSG9GhoulofGSG9 Join Date: 2013-03-31 Member: 184566Members, Super Administrators, Forum Admins, Forum Moderators, NS2 Developer, NS2 Playtester, Squad Five Blue, Squad Five Silver, Reinforced - Supporter, WC 2013 - Supporter, Pistachionauts
    @DC_Darkling:

    The latest release of the backup server (https://github.com/GhoulofGSG9/NS2_WorkshopBackup/releases/tag/0.5) now zips mod folders on demand itself ;)
  • DC_DarklingDC_Darkling Join Date: 2003-07-10 Member: 18068Members, Constellation, Squad Five Blue, Squad Five Silver
    grumbles.
    I JUST made it zip externally damnit. :P

    Still a nice improvement nonetheless.
    \o/

Sign In or Register to comment.