• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Login
FAForever Forums
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Login

How long should FAF keep old replays?

Scheduled Pinned Locked Moved General Discussion
43 Posts 26 Posters 4.3k Views 2 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    Deribus Global Moderator
    last edited by 18 Jan 2021, 20:00

    Would it be possible to look up the storage savings from the various proposed solutions?

    1 Reply Last reply Reply Quote 0
    • A Offline
      arma473 @Brutus5000
      last edited by 18 Jan 2021, 20:30

      @Brutus5000 I wouldn't mind volunteering to be personally responsible for responding to people who want really old replay files for some reason. We wouldn't even need cloud storage, I would just keep a single 1TB or 2TB drive with zero ongoing costs to FAF. If the files were transmitted to me electronically it would be close to zero cost to FAF. That situation could then continue essentially indefinitely.

      I doubt there is very much interest by players in those old replays, so we're probably talking about 1 request per month. Even if I have to spend 15 minutes a day responding to those old requests, I wouldn't mind.

      1 Reply Last reply Reply Quote 2
      • D Offline
        Deribus Global Moderator
        last edited by 18 Jan 2021, 22:16

        Arma for The Giver 2021

        1 Reply Last reply Reply Quote 2
        • N Offline
          nine2
          last edited by 18 Jan 2021, 23:24

          arma for Archive Councilor 2021

          1 Reply Last reply Reply Quote 4
          • C Offline
            Crotalus
            last edited by Crotalus 19 Jan 2021, 07:31

            Before deleting any replays, consider the following:

            • New format for .fafreplay, compressed achive of the scfareplay-file and the json-data without the final b64-encoding
            Comparsion of size:
            scfafreplay: 1222 KB
            fafreplay-current: 260 KB (21.2% of original size)
            fafreplay-zip: 196 KB (16.0% of original size)
            fafreplay-7z:: 141 KB (11.5% of original size)
            
            • Publish the replay vault (maybe IPFS?) so people can mirror / clone the replays for historic reasons.

            • Create a service that collects local replays from players to be able to repair current broken / missing ones in vault

            EDIT:
            Did some more testing and the compression numbers were a bit messed up earlier. I've updated the post now with my results.

            1 Reply Last reply Reply Quote 0
            • A Offline
              Aulex
              last edited by Aulex 19 Jan 2021, 22:04

              +1 on the service,
              you could use some sort of cheaper object storage like AWS glacier or azure archive as place to dump it + a cron job to just upload xGB every + some sort of proxy api to pull the data when requested (probably almost never).

              EDIT: looks like wasabi could be relatively cheap https://wasabi.com/

              1 Reply Last reply Reply Quote 0
              • V Offline
                Voodoo
                last edited by 21 Jan 2021, 19:46

                I'm in favor for deleting them after 3 - 5 years. i don't value old replays as much because they were played with an older version of the game. Very good replays will be casted most likely. Also if you want to watch old gpgnet replays 🙂 https://www.gamereplays.org/supremecommanderforgedalliance/replays.php?game=44

                1 Reply Last reply Reply Quote 0
                • B Online
                  Brutus5000 FAF Server Admin
                  last edited by 21 Jan 2021, 21:02

                  Hi guys, thanks for your feedback so far.

                  Fortunately we finalized some work on replay stuff that was mostly done already, so we'll compress replays with zstandard instead of (zip encoded with base64). Support will come in the next client release and we'll need to find a way to convert all the old replays. This will be a big breaking change for some tools out there, but it's the best chance we have.

                  Some words on the alternative suggested here:
                  While renting storage in the cloud with some cheap providers is possible of course it massively increases develop and (more important) maintenance efforts which I'm not willing to pull. Storage in our Hetzner datacenter would be possible though as it can be natively integrated into the existing server infrastructure. Nevertheless we still strive for a cost neutral solution if possible.

                  Eventually this topic will reappear in a few years again, so the discussion is not off the table forever.
                  We'll see which storage savings we can achieve with the current solution.

                  He said, "I've been to the year 3000
                  Not much has changed, but they live underwater
                  And your great-great-great-granddaughter
                  Is playin' FAF, playin' FAF"

                  1 Reply Last reply Reply Quote 1
                  • F Offline
                    FemtoZetta
                    last edited by 21 Jan 2021, 21:29

                    Will this break the replay parser?

                    A 1 Reply Last reply 21 Jan 2021, 21:41 Reply Quote 0
                    • A Offline
                      arma473 @FemtoZetta
                      last edited by 21 Jan 2021, 21:41

                      @FemtoZetta said in How long should FAF keep old replays?:

                      Will this break the replay parser?

                      Perhaps, but it should not be difficult to find a Java library that can decompress the ztd file format and add that to the parser itself. So it shouldn't be difficult to update the parser to handle this. If anyone is actively maintaining the parser, it should be an easy fix.

                      Even if there's no way to update an existing tool, it should be relatively easy to decompress the ztd files "by hand" and re-compress them in the fafreplay file format in order to hand them off to a software tool.

                      OR someone could even make a software tool to convert replay files in the new (ZTD) format into the old (zip) format. Automating the process of converting files from a more-efficient format to a less-efficient format so that old tools can use them is kind of silly but it would solve the immediate problem of tools being broken.

                      1 Reply Last reply Reply Quote 0
                      • B Online
                        Brutus5000 FAF Server Admin
                        last edited by 22 Jan 2021, 09:00

                        What is "the replay parser"?

                        He said, "I've been to the year 3000
                        Not much has changed, but they live underwater
                        And your great-great-great-granddaughter
                        Is playin' FAF, playin' FAF"

                        1 Reply Last reply Reply Quote 0
                        • Z Offline
                          ZLO
                          last edited by 22 Jan 2021, 11:40

                          http://95.216.153.185/replayparser/SupCom ReplayParser.html

                          TA4Life: "At the very least we are not slaves to the UI" | http://www.youtube.com/user/dimatularus | http://www.twitch.tv/zlo_rd

                          M C 2 Replies Last reply 22 Jan 2021, 12:08 Reply Quote 0
                          • M Offline
                            MazorNoob @ZLO
                            last edited by 22 Jan 2021, 12:08

                            Yes, it will break for the new format. Someone will have to update it, somewhere around line 430 in page source. This diff should help with that.

                            1 Reply Last reply Reply Quote 1
                            • D Offline
                              Defiant
                              last edited by 23 Jan 2021, 22:50

                              Oh please keep all replays. Can we throw money at buying more storage?

                              1 Reply Last reply Reply Quote 0
                              • T Offline
                                TheVVheelboy
                                last edited by 23 Jan 2021, 22:54

                                Imo, no need to keep replays older than 3 years no matter what they are. If they were good they are already casted w/e.
                                Even then I wouldn't really keep replays older than 2 years unless they are from ranked games. It just seems pointless to keep so much when it's useless.

                                1 Reply Last reply Reply Quote 1
                                • E Offline
                                  Eternal-
                                  last edited by Eternal- 24 Jan 2021, 12:44

                                  I would suggest to keep only the special old games. But I think there are no stamps like "Tournament". I also think that no one will sort their favorite replays. I guess you can just save replays of certain players, purely for memory? 😄
                                  But in general, I do not see any point in these replays, the game is growing up, the old tactics and methods of the game can not be applied to the current realities.
                                  I am in favor of removing all replays since the last old patch.


                                  And further sorting them with some parameters

                                  • Removing replays with one player
                                  • Removing replays with a sandbox
                                  • Removing of replays of the company
                                  • Removing "blacklisted" maps (gap, astro, etc)
                                  • Removing replays with desync
                                  • Removing replays after (optional) 4/8/12 months

                                  Profile | Eternal MOD pack | Check new client

                                  1 Reply Last reply Reply Quote 0
                                  • C Offline
                                    Cascade @ZLO
                                    last edited by Cascade 24 Jan 2021, 13:01

                                    @ZLO I've been searching for this parser for ages! The old link on google 404s
                                    edit: still seems to be broken for me 😞

                                    E 1 Reply Last reply 24 Jan 2021, 13:08 Reply Quote 0
                                    • E Offline
                                      Eternal- @Cascade
                                      last edited by 24 Jan 2021, 13:08

                                      @Cascade You should try to open it with vpn. Works fine for me without vpn

                                      Profile | Eternal MOD pack | Check new client

                                      1 Reply Last reply Reply Quote 0
                                      • P Offline
                                        PattogoTehen
                                        last edited by 24 Jan 2021, 16:35

                                        Hi,
                                        Bitbucket deleted my old mercurial repos (https://bitbucket.org/blog/sunsetting-mercurial-support-in-bitbucket).
                                        Moved what i could save to Github.

                                        Please update your links to: https://fafafaf.github.io/

                                        Btw. sometime the CORS header got removed from https://content.faforever.com/faf/vault/replay_vault/replay.php hence it cant load the files directly by replay id.

                                        1 Reply Last reply Reply Quote 0
                                        • B Online
                                          Brutus5000 FAF Server Admin
                                          last edited by Brutus5000 24 Jan 2021, 21:17

                                          @PattogoTehen We changed a lot of urls, but I couldn't make a pull request against bitbucket as it was gone. I'll do one against your Github repository.

                                          The CORS header issue is something we raised as a bug ticket in our reverse proxy, it might vanish in the near future (or already does if you use replay.faforever.com, not sure).

                                          He said, "I've been to the year 3000
                                          Not much has changed, but they live underwater
                                          And your great-great-great-granddaughter
                                          Is playin' FAF, playin' FAF"

                                          1 Reply Last reply Reply Quote 0
                                          28 out of 43
                                          • First post
                                            28/43
                                            Last post