Closed Bug 768169 Opened 12 years ago Closed 12 years ago

New process for serving static content for Persona

Categories

(Cloud Services :: Operations: Miscellaneous, task)

x86_64
Linux
task
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: zaach, Unassigned)

References

()

Details

(Whiteboard: [qa+])

Attachments

(9 obsolete files)

Please review the documentation on a new process for serving static content: https://etherpad.mozilla.org/static-process
Assignee: nobody → gene
Whiteboard: [qa+]
great writeup, zach!  This arch change has my r+ and full support.

I also wonder if along with this change we should change process names to reflect more clearly the responsibilities of the different processes?

browserid -> readapi
dbwriter -> writeapi
Not sure what the URL structure inside the static bit looks like. See http://gregoryszorc.com/notes/static-content-hosting.html for some tips on getting the most out of static content hosting.
:gps this is a great reference, thanks!  I'll review in depth.

Currently you can check out our resource serving strategy by loading https://login.dev.anosrep.org

We built and use this thing: https://github.com/mozilla/connect-cachify
bump!  where are we at with architecture review?  is there anything else you need from the dev team?
Pete, can you speak to this?
LGTM. One thing I'd like to see is a brief comment on why this content can't just be served from nginx (or some other static web server).
The static process will be serving semi-dynamic content (page templates for the Persona site) in addition to static resources at this time. But yes, static resources should be moved into a CDN/static server eventually.
Blocks: 776304
first draft, incomplete
Assignee: gene → rsoderberg
Status: NEW → ASSIGNED
add daemontools run files
Attachment #645575 - Attachment is obsolete: true
remove locale_directory config argument per changelog, still missing debug locale argument
Attachment #645579 - Attachment is obsolete: true
remove "if stage" wrappers in various places, remove unrelated config change for parent bug

add svc_check_http!/static as a first guess at what the static monitoring path might be for nagios

add static bind_to 63200, static_url localhost:63200, location /static/__heartbeat__ -> localhost:63200/__heartbeat__

copy browserid 50001 rsbac rules to router 50008, static 50009
Attachment #645597 - Attachment is obsolete: true
fix two unrelated rsbac typos (one functional, one cosmetic)
Attachment #645647 - Attachment is obsolete: true
add daemontools run files for browserid-static service

remove duplicate router process and syntax-error close brace in webhead.pp

working on RSBAC issues with the new process
Attachment #645659 - Attachment is obsolete: true
changelog below for v6 is a complete re-do of the rsbac changes only.

add roles 50008 router, 50009 static

repair description for fd 50004 modules

repair role 50000 (uid browserid) access to nscd

clone role 50001 browserid to 50008 router, 50009 static
Attachment #646424 - Attachment is obsolete: true
requires "add browserid-static" patch (v7) for the nginx /static/__heartbeat__ redirect

confirmed working in staging
QA will work with OPs to get this Verified in Stage once all the bits and pieces are done...
Attachment #646441 - Attachment description: draft: add browserid-static process and router-metrics.json (v7) → puppet: add browserid-static process and router-metrics.json (v7)
Attachment #646447 - Attachment description: add bidpush heartbeat check for static (v1) → sysadmins: add bidpush heartbeat check for static (v1)
The puppet (v7) patch does not yet include the necessary graphs nor cepmon, and the monitoring component of the patch is untested. Work continues on those components.

Deployed train-2012.07.20 to stage with this bug's puppet (v7), sysadmins (v1) patches, and bug 776304's puppet (v1) patch.
increase RAM allocation for BrowserID mysql databases from 256M to 50% of physical RAM
Attachment #646441 - Attachment is obsolete: true
Blocks: 779264
Blocks: 783725
developed patch for this, but train has since derailed. returning this to the general pool for :gene to either triage+assign or close as desired.
Assignee: rsoderberg → nobody
Status: ASSIGNED → NEW
Attachment #646447 - Attachment is obsolete: true
Attachment #646868 - Attachment is obsolete: true
this was eventually deployed in some fashion
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: