distribution icon indicating copy to clipboard operation
distribution copied to clipboard

Azure storage driver spent too much resources on SSL connection to storage server

Open yuwaMSFT2 opened this issue 9 years ago • 3 comments

This is with 100 clients requesting a 500 bytes manifest (each client keeps requesting with 1s delay in between): CPU usage was about 83%, while about 78% CPU was on handshaking cpu-100client-beforechange

With keep-alive of 30s and 500 idle connection in connection pool, the CPU was about 58%

cpu-100client-afterchange

Meanwhile, the throughput improved by 15 times: total finished requests before change: 1912 total finished requests after change: 30180

Since the Azure storage driver only connects to one storage account, it make perfect sense to cache the connections for a busy server. Will prepare a PR for this.

yuwaMSFT2 avatar Apr 14 '17 19:04 yuwaMSFT2

@DavidObando @SajayAntony @sivagms

yuwaMSFT2 avatar Apr 14 '17 19:04 yuwaMSFT2

I'm guessing you are following up with a PR :)

sajayantony avatar Apr 14 '17 19:04 sajayantony

Closing as this is wildly outdated.

Besides, we've recently merged https://github.com/distribution/distribution/pull/3839 which improves Azure support in registry. Please verify if this still happens on main and feel free to reopen.

milosgajdos avatar Aug 13 '23 15:08 milosgajdos