Closed
Bug 1010385
Opened 11 years ago
Closed 11 years ago
Update/migrate Affiliates-prod to Affiliates 2.0
Categories
(Infrastructure & Operations Graveyard :: WebOps: Engagement, task)
Infrastructure & Operations Graveyard
WebOps: Engagement
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: osmose, Assigned: cturra)
References
Details
Instructions for the update are in bug 1005212 (updated based on what we learned while updating stage). We're aiming to do this push on Wednesday, May 21st. I'm Eastern time, so perhaps sometime in Pacific morning / my afternoon? Whatever works for cturra.
Given that once we start messing with the DB production will get wonky for users, can we put up hardhat.mozilla.net over affiliates.mozilla.org during the update?
Also, do we have a way to rollback the filesystem and database if we mess up?
| Reporter | ||
Comment 1•11 years ago
|
||
Note that bug 1005946 comment 2 has some extra notes we found during our testing of migrating the prod data.
| Reporter | ||
Comment 2•11 years ago
|
||
Also, with regards to the hardhat idea, is it possible to put hardhat over certain parts of the site? Like not hardhat /media so that banner images still load. And is it possible to redirect to mozilla.org instead of hardhat?
Flags: needinfo?(cturra)
| Assignee | ||
Comment 3•11 years ago
|
||
(In reply to Michael Kelly [:mkelly,:Osmose] from comment #2)
> Also, with regards to the hardhat idea, is it possible to put hardhat over
> certain parts of the site? Like not hardhat /media so that banner images
> still load. And is it possible to redirect to mozilla.org instead of hardhat?
with some modifications to the traffic script in zeus, we should be able to do all these things. lets test first with dev or stage to confirm it functions as expected, but this shouldn't be too challenging.
Flags: needinfo?(cturra)
| Reporter | ||
Comment 4•11 years ago
|
||
We've decide to go with 1:30PM Pacific (4:30PM Eastern) as the go time.
As for blocking the site during the deploy, here's what we'd like to do:
- Any requests going to /media should go through normally and not be blocked so that banner images still load.
- Any requests going to /referral, /link/banner, or /fb/banners/ should be redirected to mozilla.org
- Examples:
- /referral/7/
- /link/banner/2
- /link/banner/7/28/15
- /fb/banners/72/link
- Any requests going to the rest of the site should be redirected to hardhat.mozilla.com
| Assignee | ||
Comment 5•11 years ago
|
||
i have written up a traffic script for the load balancer and the following is my testing against stage. can you please confirm it looks as expected.
> - Any requests going to /media should go through normally and not be blocked
> so that banner images still load.
$ curl -I https://affiliates.allizom.org/media/uploads/facebook/banners/banner-2.png
HTTP/1.1 200 OK
Server: Apache
X-Backend-Server: generic1.stage.webapp.phx1.mozilla.com
Content-Type: image/png
Strict-Transport-Security: max-age=15768000 ; includeSubDomains
Date: Tue, 20 May 2014 19:11:55 GMT
Accept-Ranges: bytes
ETag: "5fbe"
Last-Modified: Tue, 18 Dec 2012 19:58:12 GMT
Content-Length: 24510
Connection: Keep-Alive
X-Cache-Info: cached
> - Any requests going to /referral, /link/banner, or /fb/banners/ should be
> redirected to mozilla.org
> - Examples:
> - /referral/7/
$ curl -I https://affiliates.allizom.org/referral/7/
HTTP/1.1 302 Moved Temporarily
Content-Type: text/html
Date: Tue, 20 May 2014 19:13:11 GMT
Location: https://www.mozilla.org
Connection: Keep-Alive
Content-Length: 0
> - /link/banner/2
$ curl -I https://affiliates.allizom.org/link/banner/2
HTTP/1.1 302 Moved Temporarily
Content-Type: text/html
Date: Tue, 20 May 2014 19:13:20 GMT
Location: https://www.mozilla.org
Connection: Keep-Alive
Content-Length: 0
> - /link/banner/7/28/15
$ curl -I https://affiliates.allizom.org/link/banner/7/28/15
HTTP/1.1 302 Moved Temporarily
Content-Type: text/html
Date: Tue, 20 May 2014 19:13:26 GMT
Location: https://www.mozilla.org
Connection: Keep-Alive
Content-Length: 0
> - /fb/banners/72/link
$ curl -I https://affiliates.allizom.org/fb/banners/72/link
HTTP/1.1 302 Moved Temporarily
Content-Type: text/html
Date: Tue, 20 May 2014 19:13:31 GMT
Location: https://www.mozilla.org
Connection: Keep-Alive
Content-Length: 0
> - Any requests going to the rest of the site should be redirected to
> hardhat.mozilla.com
$ curl -I https://affiliates.allizom.org/
HTTP/1.1 302 Moved Temporarily
Content-Type: text/html
Date: Tue, 20 May 2014 19:13:36 GMT
Location: https://hardhat.cdn.mozilla.net
Connection: Keep-Alive
Content-Length: 0
Assignee: server-ops-webops → cturra
Flags: needinfo?(mkelly)
| Assignee | ||
Comment 7•11 years ago
|
||
prod launch complete. notes were tracked in the following etherpad:
https://etherpad.mozilla.org/affiliates2-launch
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Updated•9 years ago
|
Product: Infrastructure & Operations → Infrastructure & Operations Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•