How is a CloudFront origin deemed unavailable?

0

If an origin is unavailable, CloudFront will serve the requested object from cache even if it is stale. I have observed that when the origin server is offline, the stale object is served very quickly and it's obvious that the origin isn't contacted during the viewer request.

How does CloudFront know that the origin is unavailable? Is there a heuristic for this, ie. how many requests have to fail before the origin is marked unavailable? At what point will the origin be contacted again?

Thank you!

gavin
preguntada hace 2 años298 visualizaciones
1 Respuesta
0

According to the documentations, Controlling origin timeouts and attempts:

"By default, CloudFront tries to connect to the primary origin in an origin group for as long as 30 seconds (3 connection attempts of 10 seconds each) before failing over to the secondary origin. "

You can customize these.

profile pictureAWS
EXPERTO
kentrad
respondido hace 2 años

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas