Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PowerShell Gallery Extremely Slow Publishing and Access #274

Open
3 tasks done
boblodgett opened this issue May 16, 2024 · 24 comments
Open
3 tasks done

PowerShell Gallery Extremely Slow Publishing and Access #274

boblodgett opened this issue May 16, 2024 · 24 comments

Comments

@boblodgett
Copy link

Prerequisites

  • Write a descriptive title.
  • Make sure you are able to repro it on the latest version
  • Search the existing issues.

Steps to reproduce

Starting within the last 24 hours PowerShell Gallery has become extremely slow. I do not see anything on the status page yet but there should be.

Expected behavior

Working with normal speed.

Actual behavior

It is extremely slow.

Error details

No response

Environment data

N/A

Version

N/A

Visuals

No response

@alerickson
Copy link
Member

@boblodgett Thanks for letting us know, we've been doing some deployments which may have caused a bit of latency, though it shouldn't be that extreme. Do you know when exactly this started happening or just that it was roughly 24 hours ago? Things should be stable in terms of deployments, but please keep us updated if this issue continues or resolves. We'll investigate and see if we can pinpoint what's going.

@afroz429
Copy link

afroz429 commented May 16, 2024

@alerickson our metrics show that the slowness with FindPackagesById() API call started around 2024-05-15 17:10 UTC and was about 6 times slower than the baseline and then started to get significantly better from 2024-05-16 00:40 UTC. Its still not as good as it used to be, about 40% slower than the baseline.

@afroz429
Copy link

@alerickson appears to be closer to baseline from 2024-05-16 15:10 UTC

@wsmelton
Copy link

...we've been doing some deployments which may have caused a bit of latency,...

@alerickson how much latency was added to the system? Should we be seeing job steps that are going from 12 minutes up to 60+ minutes for downloading modules to our agents in Azure DevOps Service (use Azure VMSS deployed agents so our steps to install dependent modules has to run in every run).

@carpnick
Copy link

@alerickson - All of our builds are now failing/timing out when we use Invoke-PSDepend. Something is now broken.....

@tksrc
Copy link

tksrc commented May 20, 2024

@alerickson @SteveL-MSFT We are unable to publish modules at the moment. Are you folks working on a fix?

@carpnick
Copy link

@SydneyhSmith - FYI - serious performance issues with Powershell gallery again. Has been this way since late last week.

@SydneyhSmith
Copy link
Contributor

Making some changes this morning and monitoring-- hopefully should be improving shortly

@sterlingtalbott
Copy link

Discovered this post after noticing that PowerShell modules which used to update in seconds, are now taking 5-30+ minutes. Still haven't seen Microsoft.Graph finish installing. Perhaps a load balancing, server I/O, or software timeout issue on the server side? Good luck with the fix!

@carpnick
Copy link

Performance is still very bad - 1 day later.

@tksrc
Copy link

tksrc commented May 21, 2024

Same for us. It was "OK" briefly in the morning (UK time) and then it went super slow again.

@JasonGore
Copy link

I have been trying to install Azure Powershell for over 24 hours with no success.

image

@scottmcburney
Copy link

our pipelines have been experiencing the slowness (causing failures) since about Noon Central Time yesterday. It seems to happen in waves, and will occur for an hour or two, and then things work, and then later another hour or two of failures.

@SydneyhSmith
Copy link
Contributor

SydneyhSmith commented May 21, 2024

Thanks for the continued updates, our monitors are showing that the Gallery is healthy at this point, after we have made updates, but we are doing deeper investigation based on these reports

@crownmike
Copy link

I've had a ticket open with the graph team since yesterday. It was recommended that I drop the ticket number here -

2*0007771

We've had pipelines fail with End of Central Directory could not be found. We pretty much build everything on demand for our infrastructure and deployments so we're completely down when these things timeout.

It seems like its a bit better today but there is still some huge delays. Any updates on what you're seeing on your end?

image

@boblodgett
Copy link
Author

Our monitors show it is still working very slowly. These problems started shortly before I opened this ticket and have not completely recovered since.

image

The requests are timing out for us:

https://www.powershellgallery.com/api/v2/FindPackagesById()?id='AWS.Tools.AWSSupport'&$inlinecount=allpages&$filter=IsLatestVersion%20and%20Id%20eq%20'AWS.Tools.AWSSupport'. Attempt 1 of 3. 
{
    "Url": "https://www.powershellgallery.com/api/v2/FindPackagesById()?id='AWS.Tools.AWSSupport'&$inlinecount=allpages&$filter=IsLatestVersion%20and%20Id%20eq%20'AWS.Tools.AWSSupport'",
    "Retry": 1,
    "MaxRetries": 3,
    "Exception": {
        "ClassName": "System.Threading.Tasks.TaskCanceledException",
        "Message": "The request was canceled due to the configured HttpClient.Timeout of 30 seconds elapsing.",

@Kambz23
Copy link

Kambz23 commented May 21, 2024

We are also seeing issues across all of our environments with all different types of modules. Sometimes gets an error, sometimes it never completes and is just suspended. Have not seen this issue before

@SydneyhSmith
Copy link
Contributor

We just finished another deployment-- let me know if you are seeing any improvement

@goldjg
Copy link

goldjg commented May 21, 2024

What were the causes of the issues?

@SydneyhSmith
Copy link
Contributor

The initial cause points to high load on the service--- we are still determining the full series of events as to why the service did not scale as expected

@goldjg
Copy link

goldjg commented May 21, 2024

The initial cause points to high load on the service--- we are still determining the full series of events as to why the service did not scale as expected

It does seem a lot more performant right now.

Install of Az module was much faster.

Now testing install of Microsoft.Graph module which as well as being slow was also giving Package failed to install because: End of Central Directory record could not be found. earlier.

@goldjg
Copy link

goldjg commented May 21, 2024

Yeah definitely a lot better!


VERBOSE: Module 'Microsoft.Graph' was installed successfully to path '/home/prometheus/.local/share/powershell/Modules/Microsoft.Graph/2.19.0'.
PS /home/prometheus>

@boblodgett
Copy link
Author

It has currently improved to normal levels:

image

@carpnick
Copy link

Performance is much better on my end is well.

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

No branches or pull requests