metacpan / metacpan-grep-front-end

Grep Front end code
GNU General Public License v3.0
13 stars 12 forks source link

first search produces 503 error #64

Closed tonycoz closed 1 year ago

tonycoz commented 2 years ago

Context

My first attempt at a search typically produces a 503 error:

Error 503 first byte timeout

first byte timeout Error 54113

Details: cache-syd10155-SYD 1654215852 2321965435

Varnish cache server

Reloading the page displays the results.

Process

[ordered list the process to finding and recreating the issue, example below]

  1. search for something I haven't searched for before
  2. wait while spinny with Grepping is displayed
  3. 503 error is displayed

Expected result

Display the results of the search

Current result

503 error

Possible Fix

[not obligatory, but suggest fixes or reasons for the bug]

[if relevant, include a screenshot - simply drag & drop a picture there] image

atoomic commented 1 year ago

at first glance the Varnish cache is probably coming from the CDN cache we should either try to configure the CDN properly or consider a cache buster...

Will give it a try , as I cannot reproduce this error in development environement but this is obviously an issue in production

atoomic commented 1 year ago

After discussion with @ranguard this seems to be setting on the CDN side we have to set.

ranguard commented 1 year ago

I changed the first byte timeout from 15 to 40 seconds - it can be increase do a max of 60 seconds

Search seemed to work first time for me - reopen if not!

atoomic commented 1 year ago

@ranguard I ve just noticed the issue while reaching the homepage with probably a cold cache note that a second hit fixed the issue, as it stands, I believe you would not notice the issue

Screen Shot 2023-04-29 at 12 57 00
ranguard commented 1 year ago

https://grep.metacpan.org/ looking ok for me now?

atoomic commented 1 year ago

yes we are now hitting a warm varnish cache...