Closed Bug 1647864 Opened 5 years ago Closed 5 years ago

Please deploy Private Relay v0.8.7 to prod and invite 5k from the monitor waitlist

Categories

(Cloud Services :: Operations: Firefox Private Relay, task)

task

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: groovecoder, Assigned: bobm)

References

Details

Please deploy the v0.8.7 tag of the fx-private-relay repo to:

https://relay.firefox.com/

Code changelog:
https://github.com/mozilla/fx-private-relay/compare/v0.8.6..v0.8.7

Summary: Please deploy Private Relay v0.8.7 to prod → Please deploy Private Relay v0.8.7 to prod and invite 5k from the monitor waitlist

To invite 5k users from the Monitor waitlist ...

  1. In the Monitor DB, check the number of Monitor subscribers on the wait-list for relay: SELECT COUNT(id) as waitlists_joined FROM subscribers WHERE waitlists_joined @> '{"email_relay":{"notified": false}}';
    • Should be ~55k
  2. Also check the number of Monitor subscribers already notified: SELECT COUNT(id) as waitlists_joined FROM subscribers WHERE waitlists_joined @> '{"email_relay":{"notified": true}}';
    • Should be 0
  3. On Relay, set MONITOR_DATABASE_URL env var to the Monitor production DB url
  4. On Relay, set MAX_ACTIVE_ACCOUNTS env var to 7000
  5. On a Relay node, run a small batch of Monitor invites to spot-check the functionality: python manage.py invite_monitor_waitlist 10
    • Should output like:
Creating invitation for bum@mailinator.com
Sending invite email to bum@mailinator.com
Creating invitation for chewiebugboo@mailinator.com
Sending invite email to chewiebugboo@mailinator.com
...
Sent 10 invitations.
  1. In the Monitor DB, re-check the number of Monitor subscribers already notified: SELECT COUNT(id) as waitlists_joined FROM subscribers WHERE waitlists_joined @> '{"email_relay":{"notified": true}}';
    • Should now be 10
  2. In the Relay DB, check that invitations were created: select count(*) from privaterelay_invitations;
    • Should be 10
  3. If the above looks good, do another batch, this time of 100: python manage.py invite_monitor_waitlist 100
  4. (optional) repeat steps 6-8 and check the numbers are now 110
  5. Repeat until we've invited a total of 5k.

Production deployment complete. Please verify before we start sending invites.

Flags: needinfo?(lcrouch)

Prod spot-check looks good. I was able to create a reddit.com account with a prod relay address. Ready to move on to first invites.

Flags: needinfo?(lcrouch) → needinfo?(bobm)
  1. In the Monitor DB, check the number of Monitor subscribers on the wait-list for relay: SELECT COUNT(id) as waitlists_joined FROM subscribers WHERE waitlists_joined @> '{"email_relay":{"notified": false}}';
    • Should be ~55k
=> SELECT COUNT(id) as waitlists_joined FROM subscribers WHERE waitlists_joined @> '{"email_relay":{"notified": false}}';
 waitlists_joined
------------------
            55703
(1 row)
  1. Also check the number of Monitor subscribers already notified: SELECT COUNT(id) as waitlists_joined FROM subscribers WHERE waitlists_joined @> '{"email_relay":{"notified": true}}';
    • Should be 0
=> SELECT COUNT(id) as waitlists_joined FROM subscribers WHERE waitlists_joined @> '{"email_relay":{"notified": true}}';
 waitlists_joined
------------------
                0
(1 row)
  1. On Relay, set MONITOR_DATABASE_URL env var to the Monitor production DB url
  2. On Relay, set MAX_ACTIVE_ACCOUNTS env var to 7000
  3. On a Relay node, run a small batch of Monitor invites to spot-check the functionality: python manage.py invite_monitor_waitlist 10
Sent 10 invitations.
  1. In the Monitor DB, re-check the number of Monitor subscribers already notified: SELECT COUNT(id) as waitlists_joined FROM subscribers WHERE waitlists_joined @> '{"email_relay":{"notified": true}}';
    • Should now be 10
=> SELECT COUNT(id) as waitlists_joined FROM subscribers WHERE waitlists_joined @> '{"email_relay":{"notified": true}}';
 waitlists_joined
------------------
               10
(1 row)
  1. In the Relay DB, check that invitations were created: select count(*) from privaterelay_invitations;
    • Should be 10
=> select count(*) from privaterelay_invitations;
 count
-------
   865
(1 row)
Flags: needinfo?(bobm)

5k Invites sent. Created PR 2254 to address MAX_ACCOUNTS_ACTIVE being set to 1400.

Blocks: 1648232

These invites were complete. Closing this bug.

Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.