If you think a bug might affect users in the 57 release, please set the correct tracking and status flags for Release Management.

[Air Mozilla] Change our MEDIA_URL

RESOLVED FIXED

Status

Infrastructure & Operations
WebOps: IT-Managed Tools
RESOLVED FIXED
3 years ago
3 years ago

People

(Reporter: peterbe, Assigned: gozer)

Tracking

Details

(Whiteboard: [kanban:https://kanbanize.com/ctrl_board/4/1140] )

Attachments

(1 attachment)

(Reporter)

Description

3 years ago
We now have a CDN [0]. All we need to do is to change the settings/local.py so that it says::

MEDIA_URL = '//air.cdn.mozilla.net'


[0] https://bugzilla.mozilla.org/show_bug.cgi?id=1030199#c4

Updated

3 years ago
Whiteboard: [kanban:https://kanbanize.com/ctrl_board/4/1140]
(Reporter)

Comment 1

3 years ago
This is prod only since the CDN's origin server is only for air.mozilla.org.
Whiteboard: [kanban:https://kanbanize.com/ctrl_board/4/1140]
(Reporter)

Updated

3 years ago
Whiteboard: [kanban:https://kanbanize.com/ctrl_board/4/1140]
(Assignee)

Updated

3 years ago
Assignee: server-ops-webops → gozer
(Assignee)

Comment 2

3 years ago
Looks like MEDIA_URL *must* end with a '/', otherwise, Django throws an error.
(Assignee)

Comment 3

3 years ago
And the winner is:

MEDIA_URL = '//air.cdn.mozilla.net/media/'
Status: NEW → RESOLVED
Last Resolved: 3 years ago
Resolution: --- → FIXED
(Reporter)

Comment 4

3 years ago
Ne marche pas
https://air.mozilla.org/media/cache/a6/29/a629f156509941795fae6851a3d2d0fc.png works but 
https://air.cdn.mozilla.net/media/cache/a6/29/a629f156509941795fae6851a3d2d0fc.png just spins and spins :(
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
(Reporter)

Comment 5

3 years ago
Created attachment 8480119 [details]
What you often see when loading air.mozilla.org

Hmm. Now it works but it's horribly slow
https://air.cdn.mozilla.net/media/cache/a6/29/a629f156509941795fae6851a3d2d0fc.png

It takes tens of seconds to load. Sometimes more.
(Reporter)

Comment 6

3 years ago
The CDN is working wonderfully now. So there's little action we can take right now.
Status: REOPENED → RESOLVED
Last Resolved: 3 years ago3 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.