Closed Bug 1130193 Opened 6 years ago Closed 4 years ago

turn on config enablePruning in production

Categories

(Cloud Services :: Server: Firefox Accounts, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: jrgm, Assigned: vladikoff)

Details

This never got enabled and fell off the radar. My fault. We need to turn on enablePruning in production (and re-estimate if we can just turn it on, or if we need to do little trimming if the tables are too large (shouldn't be)).
Isn't this just a config option in the DB Server config to turn it on? ie. that we have control over.
> This never got enabled and fell off the radar

:jrgm, did this continue its fall off the radar, or is it running in prod these days?
Flags: needinfo?(jrgm)
:jrgm, did we ever get around to doing this in production?
Talked to :jrgm about this and we wanted to confirm that the `pruneBefore` value is correct here: https://github.com/mozilla/fxa-auth-db-mysql/blob/22e27d16d635927d2facfe8382030ec10447e600/lib/db/schema/patch-003-004.sql#L3

the `pruneBefore` value is also used here https://github.com/mozilla/fxa-auth-db-mysql/blob/a902f48a57cebbd17350818d90c23246099de9d2/lib/db/mysql.js#L948 as a `TOKEN OLDER THAN` 30 mins?

Is that correct?
Flags: needinfo?(jrgm) → needinfo?(rfkelly)
:vladikoff you're right, there's something very fishy about use of `pruneBefore`.  I think it will work as long a `options.pruneEvery` is greater than or equal to the maximum lifetime of any of these tokens, but we should probably re-work things a little here to make it more obvious that this is the case.  Maybe we can rename it to "maxTokenLifetime" or something.
Flags: needinfo?(rfkelly)
ni'd myself so I don't forget...
Flags: needinfo?(vlad)
This is on track to be turned on in Train-81, a note made in the deploy doc for this...
Status: NEW → RESOLVED
Closed: 4 years ago
Flags: needinfo?(vlad)
Resolution: --- → FIXED
Assignee: jrgm → vlad
You need to log in before you can comment on or make changes to this bug.