Skip to content

Add "No CDN" flags to .NET Install Script usage from eng/common - #7144

Merged
MattGal merged 1 commit into
dotnet:mainfrom
MattGal:no-cdn-flag
Mar 24, 2021
Merged

MattGal merged 1 commit into
dotnet:mainfrom
MattGal:no-cdn-flag

Conversation

@MattGal

@MattGal MattGal commented Mar 23, 2021

Copy link
Copy Markdown
Member

To double check:

…m eng/common .NET Core Install script usages
@MattGal

MattGal commented Mar 23, 2021

Copy link
Copy Markdown
Member Author

Relevant logging bits from the PR build:

Windows:


dotnet-install: Downloading primary link https://dotnetcli.blob.core.windows.net/dotnet/Sdk/6.0.100-preview.2.21155.3/dotnet-sdk-6.0.100-preview.2.21155.3-win-x64.zip
dotnet-install: Extracting zip from https://dotnetcli.blob.core.windows.net/dotnet/Sdk/6.0.100-preview.2.21155.3/dotnet-sdk-6.0.100-preview.2.21155.3-win-x64.zip
dotnet-install: Adding to current process PATH: "D:\workspace\_work\1\s\.dotnet\". Note: This change will not be visible if PowerShell was run as a child process.

Source build: (linux)

dotnet-install: Downloading primary link https://dotnetcli.blob.core.windows.net/dotnet/Sdk/6.0.100-preview.2.21155.3/dotnet-sdk-6.0.100-preview.2.21155.3-linux-x64.tar.gz
dotnet-install: Extracting zip from https://dotnetcli.blob.core.windows.net/dotnet/Sdk/6.0.100-preview.2.21155.3/dotnet-sdk-6.0.100-preview.2.21155.3-linux-x64.tar.gz
dotnet-install: Adding to current process PATH: `/__w/1/s/.dotnet`. Note: This change will be visible only when sourcing script.

@MattGal
MattGal merged commit 106356d into dotnet:main Mar 24, 2021
@akoeplinger

akoeplinger commented Mar 24, 2021 •

Copy link
Copy Markdown
Member

@MattGal this will make the install experience much worse for everyone not in US-West where the dotnetcli storage container lives since the download speeds are awful if you pull from the blob storage directly.

Compare (I'm based in Europe):

$ wget https://dotnetcli.blob.core.windows.net/dotnet/Sdk/6.0.100-preview.2.21155.3/dotnet-sdk-6.0.100-preview.2.21155.3-linux-x64.tar.gz

156,10M  2,01MB/s    in 2m 29s

$ wget https://dotnetcli.azureedge.net/dotnet/Sdk/6.0.100-preview.2.21155.3/dotnet-sdk-6.0.100-preview.2.21155.3-linux-x64.tar.gz

156,10M  9,29MB/s    in 17s

What's the reason for this change?

@MattGal

MattGal commented Mar 24, 2021 •

Copy link
Copy Markdown
Member Author

@akoeplinger people use these scripts in Helix work items (asking them to stop did not help) and it accounts for many tens of thousands in CDN fees, estimatedly more than the entire cost of the rest of the world combined. I'm chatting with @Chrisboh about reverting it now though.

MattGal added a commit to MattGal/arcade that referenced this pull request Mar 24, 2021
…sage from eng/common .NET Core Install script usages (dotnet#7144)"

This reverts commit 106356d.
@MattGal

MattGal commented Mar 24, 2021

Copy link
Copy Markdown
Member Author

Created #7147, will merge after discussing with @Chrisboh

@akoeplinger

Copy link
Copy Markdown
Member

Don't we pay for bandwith fees on the blob storage container too? And as far as I know blob storage has a fixed quota of traffic per container so the more hits we get the slower it'll get.

If the Helix usage is such a huge driver then we should focus on that and not just ask nicely :)

@MattGal

MattGal commented Mar 24, 2021

Copy link
Copy Markdown
Member Author

Don't we pay for bandwith fees on the blob storage container too? And as far as I know blob storage has a fixed quota of traffic per container so the more hits we get the slower it'll get.

CDN costs more than double storage per GB.

If the Helix usage is such a huge driver then we should focus on that and not just ask nicely :)

With the number of folks in Europe who've pinged me this morning, yes we'll probably do that.

MattGal added a commit that referenced this pull request Mar 24, 2021
…sage from eng/common .NET Core Install script usages (#7144)" (#7147)

This reverts commit 106356d.
akoeplinger pushed a commit to akoeplinger/arcade that referenced this pull request Apr 12, 2021
akoeplinger pushed a commit to akoeplinger/arcade that referenced this pull request Apr 12, 2021
…sage from eng/common .NET Core Install script usages (dotnet#7144)" (dotnet#7147)

This reverts commit 106356d.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants