TripleA Logo TripleA Forum
    • TripleA Website
    • Recent
    • Popular
    • Register
    • Login

    TripleA Server Costs

    Scheduled Pinned Locked Moved News
    37 Posts 6 Posters 5.6k Views 6 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.
    • LaFayetteL
      LaFayette Admin
      last edited by

      15 bots are back.

      Setting update has been deployed:
      https://github.com/triplea-game/infrastructure/commit/54f11b2da26c9b9a7a18079a0489fdc76dc2c756

      The act of deploying an update would have booted the missing bots. They would have been crash/disconnected due to something within our control (system config, code issues, something we own).

      I don't know if that setting will have an impact on the lobby bots. I do see that they are not full on restarting when a game is over, that seems more stable.

      The restart of lobby bots was otherwise handled by systemctl rather than docker. Maybe a key difference, maybe not, I'm not sure.

      I'll be interested if bots drop off again.

      B 1 Reply Last reply Reply Quote 2
      • B
        beelee @LaFayette
        last edited by beelee

        @LaFayette

        Hi Dan

        sadly we had a bot malfunction. I was in Cali 103 and the game kinda just stopped. But wasn't frozen. I checked lobby and my bot was gone 😯

        Screenshot from 2026-09-04 20-19-50.png

        as you can see no 103 and it looks as if we're down to 12.

        Here's in game that is still showing 103 though after it dropped from lobby.

        Screenshot from 2026-09-04 20-21-30.png

        A couple guys said they had froze up at the same time.

        Anyway, just a heads up.

        Edit
        Just checked and now they're back.

        Screenshot from 2026-09-04 21-12-18.png

        Edit 2 jusst checked in a gain about 3 1/2 hours and they are gone once more.

        No Cali 103. Idk when they left again. Was about a 30 minute window first time I checked and it came back.

        Screenshot from 2026-09-05 00-44-00.png

        1 Reply Last reply Reply Quote 1
        • LaFayetteL
          LaFayette Admin
          last edited by

          Did some work on the bots. ..

          Turns out we need EXIT_GAME_ON_QUIT (or whatever it was...) to be true. Memory leaks killed the bots quickly and they crashed out hard after a few games.

          I did some other things like put memory limits in and added swap. Each bot is now running with 128M, which is less, but there's more padding for when there is memory pressure. Hopefully wont' be taking down the whole bot instance any longer.

          Let me know if bots drop out.. should be a bit better now.

          B 2 Replies Last reply Reply Quote 3
          • B
            beelee @LaFayette
            last edited by

            @LaFayette

            Sweet

            Yea I saw that on git. Quit seems counter intuitive but hey I was just a carpenter lol

            1 Reply Last reply Reply Quote 1
            • B
              beelee @LaFayette
              last edited by beelee

              @LaFayette

              It seems as if one Jersey bot is missing.

              Screenshot from 2026-09-08 00-56-41.png

              0100 CST

              C 1 Reply Last reply Reply Quote 2
              • C
                Cernel Moderators Lobby Moderators @beelee
                last edited by

                @beelee Yes, all TripleA hosts are seemingly now working except only the third one (Bot_203_Jersey is missing.) of Jersey (@lafayette).

                1 Reply Last reply Reply Quote 2
                • B
                  beelee
                  last edited by

                  @lafayette

                  It seems that the problem I had has happened to these guys. I didn't talk to them, just saw their conversation

                  Screenshot from 2026-09-08 22-56-39.png

                  1 Reply Last reply Reply Quote 1
                  • B
                    beelee
                    last edited by

                    @lafayette

                    Looking a little light on the bots today.

                    7:40 AM Central time USA

                    Screenshot from 2026-09-20 07-39-38.png

                    1 Reply Last reply Reply Quote 1
                    • C
                      Cernel Moderators Lobby Moderators
                      last edited by

                      @lafayette Bot_302_Toronto was in progress with only 1 (unresponsive) player inside.

                      Maybe the guy fell asleep or something. Anyway, I did a shutdown (restarted) the bot.

                      20260920_1.png

                      And, yeah, all servers except California were down to 2 bots only (instead of the 3 each they should have).

                      Unfortunately, after I clicked on "Shutdown" on Bot_302_Toronto, it never came back, so now the Toronto server is down to 1 bot.

                      20260920_2.png

                      I remember that, if you clicked "Shutdown" on a bot, the bot would restart and return available in lobby after a few seconds.

                      Did it not come back because the bot was broken or did I fuck up because now shutting down a bot just kills it and does not come back, and I didn't know? Should any moderator shutdown apparently broken bots or not?

                      1 Reply Last reply Reply Quote 0
                      • C
                        Cernel Moderators Lobby Moderators
                        last edited by

                        The bots just mass-restarted a few minutes ago.

                        The good news is that now they are all 15 up and running.

                        However, I'm under the understanding that everyone who was in a bot at the moment of the mass-restart was disconnected and unable to save its game. If so, that is rather brutal a way to have the bots all back...

                        I don't actually know for certain what happened: I never play in bots and was not in a bot when that happened. I just saw all bots disappear together in lobby list and then come back all together with also those missing. This is what was going on in lobby right after that happened:

                        20260920_3.png

                        B 2 Replies Last reply Reply Quote 1
                        • B
                          beelee @Cernel
                          last edited by

                          @Cernel

                          Do you know what triggered the mass restart ? That's not good with everyone getting disconnected.

                          It's actually really bad.

                          @lafayette you probably want to check this out

                          1 Reply Last reply Reply Quote 0
                          • LaFayetteL
                            LaFayette Admin
                            last edited by LaFayette

                            The lobby restarted. No bots should have. I'm checking in whether there were some one-offs. In general, nobody should have been disconnected from a bot game and we need to be 1000% clear whether a player was simply disconnected from lobby or the bot game. "I was disconnected" could mean the lobby, and that would be expected.

                            No autosaves should have been lost either.

                            Also, why are we talking about lobby issues in a "TripleA Server Costs" thread?

                            edit: updated "no bots did" to "no bots should have"

                            B 1 Reply Last reply Reply Quote 0
                            • B
                              beelee @LaFayette
                              last edited by

                              @LaFayette

                              was just replying to Cernels screenshot

                              1 Reply Last reply Reply Quote 0
                              • B
                                beelee @Cernel
                                last edited by

                                @Cernel said:

                                However, I'm under the understanding that everyone who was in a bot at the moment of the mass-restart was disconnected and unable to save its game. If so, that is rather brutal a way to have the bots all back...

                                Is this what happened ?

                                1 Reply Last reply Reply Quote 0
                                • LaFayetteL
                                  LaFayette Admin
                                  last edited by

                                  cc: @cernel / @beelee

                                  There were server changes, they apply wholesale and part of that are server package upgrades. 'Docker' which runs the bots was part of that and was restarted. No autosaves should have been lost though, except no autosaves are expected to be cut at the time of the restart either.

                                  So, this event is fairly rare, there was a misconfig that looped the bots into the blast radius, and the autosaves would have been slightly dated (ie: beginning of round rather than at moment of restart).

                                  There's 3 fixes that can be applied here:

                                  • don't restart docker, that can be added to a blacklist for restart-on-package-upgrade
                                  • decouple the docker containers from the docker service, we can add a config that detaches the containers and bounces the service, and then re-attaches them (by default the containers are taken down and then rebooted)
                                  • add a shutdown hook to the game code for bots, to capture an autosave when the game shuts down.
                                  1 Reply Last reply Reply Quote 0

                                  Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                  Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                  With your input, this post could be even better 💗

                                  Register Login
                                  • 1
                                  • 2
                                  • 2 / 2
                                  • First post
                                    Last post
                                  Powered by NodeBB Forums