XCP-ng
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    XO instance UI unreachable during backups

    Scheduled Pinned Locked Moved Backup
    3 Posts 2 Posters 87 Views 1 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.
    • C Offline
      CodeMercenary
      last edited by

      I've noticed recently that when my backups are running, they totally slam the CPUs and the web UI is inaccessible. What can I do to improve this? Should I give the instance more than 4 CPU cores? I used to give the instance 16GB RAM but it never went higher than 2GB so I reduced it. Could that cause this?
      34b6fcae-a06c-46ca-8984-7bf2ae673d89-image.png

      I can still SSH into the instance but I have little way to know how much of the backup is complete or which backups are finished. I've seen this multiple times a week for the last month or so.
      afa7eaef-b2ae-468f-a6d1-cdd050aeb227-image.png

      This goes on for hours and without the web UI I can't even gauge how much time might be left. I came in this weekend because I'm trying to improve my network setup to hopefully help with things like this but I can't shut down the servers and tear the network apart when XO is at some unknown point in the backup. Going to try to come back tomorrow and see if it's finished, well, I'll be smarter tomorrow and check the status from home first.

      Currently running XO from source commit 1bc0f (two commits behind current due to taking a couple days off last week).

      1 Reply Last reply Reply Quote 0
      • DanpD Offline
        Danp Pro Support Team
        last edited by

        The memory usage being reported may be incorrect due to the way Node uses memory. I see kswapd0 with high CPU usage in your screenshot, so that is a clear indicator that swapping is occurring. Give the VM 16GB again and the issue should resolve itself.

        C 1 Reply Last reply Reply Quote 0
        • C Offline
          CodeMercenary @Danp
          last edited by

          @Danp Ah, thank you for that.

          I need to restructure things a bit but I was already thinking I would do that. The issue is that this VM also runs NUT so it's the last VM running before shutting down the servers. I reduced the memory because it takes a LONG time to suspend a VM with 16GB RAM but doesn't take long to shut one down. Between the 8 to 10 minutes it takes for XCP-ng to shut down and the time it takes to suspend a VM with 16GB RAM, I don't think my batteries will last that long.

          I'll have to move NUT into a leaner VM that doesn't handle backups. That's something I was thinking I would do anyway because if there was a power outage during a backup I don't think my NUT script would be able to do what it needs to do. Based on the cron job I run to make sure my xo-cli registration is good, the xo-cli stuff won't run when the VM is hammered like this.

          Thanks for helping me understand why this happens and how to fix it.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post