Azure / azure-storage-php

Microsoft Azure Storage Library for PHP
MIT License
217 stars 200 forks source link

BlobRestProxy::createBlobService(CONN_STRING); performance #234

Open Paxconnect opened 4 years ago

Paxconnect commented 4 years ago

Which service(blob, file, queue, table) does this issue concern?

Blob Storage Account in combination with Azure PHP WebApp Service

Which version of the SDK was used?

"version": "1.5.0"

What's the PHP/OS version?

Running in a Azure Web Service Php 7.3 Linux 614fd55f592d 4.4.0-128-generic #154-Ubuntu SMP Fri May 25 14:15:18 UTC 2018 x86_64 GNU/Linux

What problem was encountered?

call to BlobRestProxy::createBlobService(CONN_STRING); always takes between 500-1000 ms when invoked from certain Azure WebApp Services. Invocation from local PCs, other WebApp Services and non-Azure based Servers only takes a few ms.

Steps to reproduce the issue?

Invoke BlobRestProxy::createBlobService(CONN_STRING); and measure latency

Have you found a mitigation/solution?

No. Comparing the different App Service settings yielded no clues. I also checked everything in the MS Azure, as well in this SDK's documentation.

Is there a failing request ID related to this problem returned by server? What is it?

No failing requests, only an extremely increased latency.

What is the storage account name and time frame of your last reproduce? (UTC YYYY/MM/DD hh:mm:ss)

2020/06/22 15:33:00

(If you think some of the information should not be shared publicly, you can e-mail the main Microsoft contributors of the repository instead.)

XiaoningLiu commented 4 years ago

Hi @Paxconnect, can you directly open a ticket in Azure Portal to Azure WebApp Services? Support enginnerrs should help profile what happens behind 500-1000 ms latency.