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

    Want to compare insecure_nbd but doesn't seem to work (secure does)

    Scheduled Pinned Locked Moved Xen Orchestra
    26 Posts 3 Posters 5.8k Views 3 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.
    • S Offline
      sluflyer06 @olivierlambert
      last edited by

      @olivierlambert okay yeah I can compare to HTTPS. totally game to try whatever setting he's got to increase the parallel work.

      Insecure NBD would good comparison to http but I don't know how to turn that on, I know the purpose to set in host but there must be a config line to make it work in xo.

      1 Reply Last reply Reply Quote 0
      • olivierlambertO Offline
        olivierlambert Vates 🪐 Co-Founder CEO
        last edited by

        It's only relevant to compare secure vs secure or insecure vs insecure. @florent will guide you when he's around 🙂

        S 1 Reply Last reply Reply Quote 0
        • S Offline
          sluflyer06 @olivierlambert
          last edited by

          @olivierlambert agree

          1 Reply Last reply Reply Quote 0
          • florentF Offline
            florent Vates 🪐 XO Team
            last edited by olivierlambert

            hi,

            in theory, the insecure nbd should work when adding the insecure_nbd flag to the purpose of the network . Have you got any error message in the xo logs ?

            you can add in the xapiOptions part

            preferNbd = true
            nbdOptions.readAhead = 20 # default 10 
            

            also do you remote store disks as multiple blocks ?

            regards

            S 1 Reply Last reply Reply Quote 1
            • S Offline
              sluflyer06 @florent
              last edited by sluflyer06

              @florent Yes to multiple blocks. I did see this in host>networks page.9d9de7d0-26b2-46e2-8729-09720ee65eab-image.png

              I do (and did) have the preferNbd set.

              florentF 1 Reply Last reply Reply Quote 0
              • florentF Offline
                florent Vates 🪐 XO Team @sluflyer06
                last edited by

                @sluflyer06 we did a rework on NBD, to be able to use it everywhere, paving the way for some nice features like retry on network error

                but it may have an impact on block based backup. I will make a branch which should alleviate this today

                florentF 1 Reply Last reply Reply Quote 0
                • florentF Offline
                  florent Vates 🪐 XO Team @florent
                  last edited by

                  @sluflyer06 can you test the speed with this branch based on master https://github.com/vatesfr/xen-orchestra/pull/6840

                  The backup job must have only one remote , which must be block based, and without a continuous replication

                  Warning : this is not production ready, this branch is only to find where the potential gains are.

                  fbeauchamp opened this pull request in vatesfr/xen-orchestra

                  draft feat(@xen-orchestra/backups): use parallel reading whith NBD + blocks to only one remote #6840

                  S 1 Reply Last reply Reply Quote 0
                  • S Offline
                    sluflyer06 @florent
                    last edited by

                    @florent How would I verify for testing if its insecure NBD or not? I switched to your branch and rebuilt, I see the same message about not allowed but dunno if that matters.

                    florentF 1 Reply Last reply Reply Quote 0
                    • florentF Offline
                      florent Vates 🪐 XO Team @sluflyer06
                      last edited by florent

                      @sluflyer06 For now , I get back to the first problem : NBD should be faster than xapi export ( or at least as fast)

                      now I 'm working on enabling insecure

                      edit : the not allowed is only to inform the user that it can't be set through XO, but it should be used for backup if present

                      S 1 Reply Last reply Reply Quote 0
                      • S Offline
                        sluflyer06 @florent
                        last edited by

                        @florent like Oliver was telling me, to compare secure to secure, it is faster than https,.still curious if anyway to try insecure.

                        Also. Is there a way to update XO (from sources) without losing the config.yaml or just a minor inconvenience until NBD is fully rolled into XO? (I assume we'll get told when we don't have to run custom config for NBD whenever it's ready?)

                        florentF 1 Reply Last reply Reply Quote 0
                        • florentF Offline
                          florent Vates 🪐 XO Team @sluflyer06
                          last edited by florent

                          @sluflyer06 the warning on XO is to discourage the mass. But you can really try

                          you can make a config.toml file in ~/.config/xo-server/config.*.toml , it should be loaded , and won't be changed by an XO update . https://github.com/JsCommunity/app-conf

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