Skip to main content

Backing up to Backblaze B2 is slow

Comments

7 comments

  • cPanelLauren
    The only modifications you can make to the cPanel backup transport are: I/O priority level at which nightly backups are run (Minimum: 0; Maximum: 7) You must compile ionice with your kernel to use this option. ionice manages I/O scheduling for processes on your system. Specifying a lower value for this option gives the process a higher priority. This option can accept integer values between 0 and 7. Extra CPUs for server load The load average above the number of CPUs at which cpuwatch, cpanellogd, backups, and CPU stats consider the system to be in a critical load state. For example, a server with 4 physical CPUs and a value of 2 in this field will be considered "critical" in these cases once the load reaches 6.
    0
  • dataforge
    Can you guys add support for multi threading uploading then? Multithreading uploads If your tool is uploading many files, the best performance will be achieved by multithreading the upload and launching multiple threads simultaneously.
    • When initializing upload threads, call b2_get_upload_url or b2_get_upload_part_url for each thread. The returned upload URL / upload authorization token should be used in this thread to upload files until one of the error conditions described above occurs. When that happens, simply call b2_get_upload_url or b2_get_upload_part_url again and resume the uploads.
    • When uploading files larger than 200MB, use the large files support to break up the files into parts and upload the parts in parallel.
    See also Large Files
    0
  • cPanelLauren
    Thanks for that, note that I am indicating you couldn't configure not that it doesn't exist. From reading the internal story for the implementation of the Backblaze transporter, I know we break the files down into 5GB chunks and we're using the Backblaze API to connect with them, I am though unclear if this is being performed in parallel though I would assume it is, I'll confirm this with the team tomorrow though.
    0
  • jandafields
    ... I'll confirm this with the team tomorrow though.

    Any update on this?
    0
  • cPanelLauren
    Hello, I discussed this in-depth with the PO and one of the developers on the team that built this. We don't use multi-threading for this when we built the module. They did note that it could be possible but it would have to be implemented into a sprint. They are going to track it on their board but did ask me to have you open a Feature Request (you can do this by clicking the link in my signature). I'll set a reminder to follow up on it as soon as you provide me the link to the feature request :) Thanks!
    0
  • phil99
    Not the OP, but I have created a feature request here (currently on moderation): Edit: link removed as the feature request was indeed declined as per Lauren's post below.
    0
  • cPanelLauren
    Awesome, thanks @phil99 - I talked to our Community team today and they let me know they may close that Feature Request due to an internal improvement case being opened CPANEL-31619 - Parallelize upload of B2 File Parts as a result of this thread as well.
    0

Please sign in to leave a comment.