canonical / charmhub.io

GNU General Public License v3.0
10 stars 22 forks source link

Slow reply 302 redirect for https://charmhub.io/.../collaboration, listing, ... (up to 5+ seconds) #1832

Open taurus-forever opened 4 months ago

taurus-forever commented 4 months ago

Hi,

The time to open charmhib.io pages is close to random... sometimes 5+ seconds!

20:11:34 ✔ taurus:~$ time wget -O /dev/null https://charmhub.io/postgresql/collaboration  2>&1
--2024-05-27 20:11:35--  https://charmhub.io/postgresql/collaboration
Resolving charmhub.io (charmhub.io)... 185.125.190.20, 185.125.190.21, 185.125.190.29, ...
Connecting to charmhub.io (charmhub.io)|185.125.190.20|:443... connected.
HTTP request sent, awaiting response... 302 
Location: https://charmhub.io/login?next=/postgresql/collaboration [following]
--2024-05-27 20:11:40--  https://charmhub.io/login?next=/postgresql/collaboration
Reusing existing connection to charmhub.io:443.
HTTP request sent, awaiting response... 302 
Location: https://api.jujucharms.com/identity/login-redirect?return_to=https://charmhub.io/login/callback&state=IjBkOTMzYWNkNTEwM2E5MzE0NTcwMGQxMWYzZThkMWUwNTNiMWI2YTYi.ZlTM3A.7gRCLCUa419VN-GFHzxof4xjBmc [following]
--2024-05-27 20:11:41--  https://api.jujucharms.com/identity/login-redirect?return_to=https://charmhub.io/login/callback&state=IjBkOTMzYWNkNTEwM2E5MzE0NTcwMGQxMWYzZThkMWUwNTNiMWI2YTYi.ZlTM3A.7gRCLCUa419VN-GFHzxof4xjBmc
Resolving api.jujucharms.com (api.jujucharms.com)... 185.125.188.172, 185.125.188.173
Connecting to api.jujucharms.com (api.jujucharms.com)|185.125.188.172|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1729 (1.7K) [text/html]
Saving to: ‘/dev/null’

/dev/null                                                     100%[=================================================================================================================================================>]   1.69K  --.-KB/s    in 0.002s  

2024-05-27 20:11:41 (1.06 MB/s) - ‘/dev/null’ saved [1729/1729]

real    0m6.239s
user    0m0.022s
sys 0m0.011s

20:12:55 ✔ taurus:~$ time wget -O /dev/null https://charmhub.io/postgresql/listing  2>&1
--2024-05-27 20:12:56--  https://charmhub.io/postgresql/listing
Resolving charmhub.io (charmhub.io)... 185.125.190.20, 185.125.190.29, 185.125.190.21, ...
Connecting to charmhub.io (charmhub.io)|185.125.190.20|:443... connected.
HTTP request sent, awaiting response... 302 
Location: https://charmhub.io/login?next=/postgresql/listing [following]
--2024-05-27 20:13:02--  https://charmhub.io/login?next=/postgresql/listing
Reusing existing connection to charmhub.io:443.
HTTP request sent, awaiting response... 302 
Location: https://api.jujucharms.com/identity/login-redirect?return_to=https://charmhub.io/login/callback&state=ImQ4NDUzZWZkN2Q2YTQxZjViYzExODkxZTQ1ODhlZmM5NDkyMjJlNjEi.ZlTNLg.PudlV7CwJ0XRTcg04FE5g3onN3k [following]
--2024-05-27 20:13:02--  https://api.jujucharms.com/identity/login-redirect?return_to=https://charmhub.io/login/callback&state=ImQ4NDUzZWZkN2Q2YTQxZjViYzExODkxZTQ1ODhlZmM5NDkyMjJlNjEi.ZlTNLg.PudlV7CwJ0XRTcg04FE5g3onN3k
Resolving api.jujucharms.com (api.jujucharms.com)... 185.125.188.173, 185.125.188.172
Connecting to api.jujucharms.com (api.jujucharms.com)|185.125.188.173|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1729 (1.7K) [text/html]
Saving to: ‘/dev/null’

/dev/null                                                     100%[=================================================================================================================================================>]   1.69K  --.-KB/s    in 0s      

2024-05-27 20:13:02 (48.5 MB/s) - ‘/dev/null’ saved [1729/1729]

real    0m6.323s
user    0m0.030s
sys 0m0.009s

We have fixed networking issue with IS in https://rt.admin.canonical.com/Ticket/Display.html?id=163604 and currently it looks like some charmhub.io related issue. Reported here, but maybe you want to collaborate IS to fix collaboration page! :-D

P.S. normally reply time below one second, but slow in about 10% cases.