Downloadable Components - Installer download speed vs. standard HTTP GET

Comments

4 comments

  • Avatar
    BitRock support

    Hi Stephen,

    Please accept our sincere apologies for the delay in our reply. The demo version does not have any hidden constraints. Could you give move information regarding your setup? Does your component has a lot of files and folders? How are you measuring the download speed? 

    Regards,

    Michiel

     

    0
    Comment actions Permalink
  • Avatar
    Stephen Wright

    I have two components, a pak for Windows and a pak for OSX, both of which contain an application (in this case, it's a ~200MB Unity3D application).  On OSX, this is a .app with the associated file structure, on Windows, this is a folder containing the .exe and associated dlls.

    Therefore, the paks being downloaded logically look like this:

    osx.pak
        - Application.app
            - Contents
                - Data
    windows.pak
        - Application.exe
        - Libraries
            *.dll

    So to answer your first question, yes, this pak does contain a lot of files and folders, but fundamentally it's built from InstallBuilder as a single .pak file per OS.  Arguably I could restructure the contents to make multiple .pak files, but I don't know what that would do to the integrity of the executable's published codesign.

    In terms of how i'm measuring download speed, I can see from the Installer when it's downloading the component that it's only hitting ~400KB/s (both in the log and visually in the GUI):

    193500 KB downloaded. Speed: 426 KB/s. Remaining time:  2s
    193500 KB / 194360 KB downloaded. Remaining time: 2s
    193750 KB downloaded. Speed: 427 KB/s. Remaining time: 1s
    193750 KB / 194360 KB downloaded. Remaining time: 1s

    Whereas with wget I can download the same file much faster:

    Length: 199024656 (190M) [application/x-www-form-urlencoded]
    Saving to: ‘OSX-0.12.7-osx.pak.1’
    OSX-0.12.7-osx.pak.1 100%[=========================>] 189.80M 5.00MB/s in 43s
    2019-08-14 10:25:20 (4.46 MB/s) - ‘OSX-0.12.7-osx.pak.1’ saved [199024656/199024656]
    0
    Comment actions Permalink
  • Avatar
    BitRock support

    Hi Stephen,

    Thank you for the extra information. I've tried to reproduce the issue, using an AWS instance as the file server, and it my case the installer downloaded at a speed of around 4MB per second, and wget was just a bit faster, around 5MB per second. I will try to reproduce it using an S3 bucket to see if there is any difference, and I will let you know the result as soon as possible. 

    Regards,

    Michiel

     

    0
    Comment actions Permalink
  • Avatar
    michiel

    Hi Stephen,

    I've not been able to reproduce the issue using an S3 bucket. In my case the installer was only a little bit slower. Could you run the installer with the debugtrace and send the debug.txt to support@bitnami.com

    For Windows: 
    \Path\to\installer.exe --debugtrace debug.txt

    For OS X:
    /Path/to/installer.app/Contents/MacOs/installbuilder.sh --debugtrace debug.txt

    For Linux:
    /Path/to/installer.run --debugtrace debug.txt

    Regards,

    Michiel

    0
    Comment actions Permalink

Please sign in to leave a comment.