• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Throttle fog replication

    Scheduled Pinned Locked Moved
    General
    2
    6
    2.5k
    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.
    • N
      Nate
      last edited by

      I’m not sure if anyone has wanted to do this, but since we want to put storage nodes at sites throughout our company, we want to be able to throttle the transfer of images so it doesn’t utilize our sites pipes during replication. Does FOG have this capability? I’m thinking something like DFS, where you can specify transfer at X rate during these times, etc.

      Thanks!

      1 Reply Last reply Reply Quote 0
      • C
        chad-bisd Moderator
        last edited by

        check the options for the “lftp” program. If lftp has an option, you can modify the replication service script.


        If you would like to make a donation to the Fog project, please do so [U][COLOR=#0000ff][URL='http://sourceforge.net/dona…

        1 Reply Last reply Reply Quote 0
        • N
          Nate
          last edited by

          Is rsync an option? Does the FOG replication just copy a new image, or can it sync the changes?

          1 Reply Last reply Reply Quote 0
          • C
            chad-bisd Moderator
            last edited by

            Lftp is capable of throttling. Just have to play with the options. Usually you want images replicated ASAP. But if not you can tell the fogimagereplication service not to start at boot, then setup a cron job to start and stop it after hours maybe.


            If you would like to make a donation to the Fog project, please do so [U][COLOR=#0000ff][URL='http://sourceforge.net/dona…

            1 Reply Last reply Reply Quote 0
            • C
              chad-bisd Moderator
              last edited by

              Modify your /opt/fog/service/FOGImageReplicator/FOGImageReplicator file.

              Line 95, add:
              [CODE]set net:limit-rate 100K;[/CODE]

              in between
              [CODE]set net:max-retries 1;[/CODE]
              and
              [CODE]set net:timeout 30;[/CODE]


              If you would like to make a donation to the Fog project, please do so [U][COLOR=#0000ff][URL='http://sourceforge.net/dona…

              1 Reply Last reply Reply Quote 0
              • N
                Nate
                last edited by

                Thanks so much for your quick replies! Yesterday I added that same line to the lftp config file and it worked just fine. This is a great feature since we will be replicating images to 8 of our remote sites, some of which have a slow connection to us (and operate 24/7 so after hours replication isn’t a viable solution). Thanks again!

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

                159

                Online

                12.0k

                Users

                17.3k

                Topics

                155.2k

                Posts
                Copyright © 2012-2024 FOG Project