-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Deliverability Solution #153
Deliverability Solution #153
Conversation
Tested fc7dc36 with logging:
|
|
||
await Promise.all(Object.keys(domainDeliverability).map(async domain => { | ||
const deliverability = domainDeliverability[domain]; | ||
if (deliverability < sensorDeliverability - 0.30) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is completely made up
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's move it to a DELIVERABILITY_DIFF_THRESHOLD
variable at the top
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This could mark everything is still good if the sensor domains are performing really poorly, so we want a floor (< max(FLOOR, sensoryDeliverability - DELIVERABILITY_DIFF_THRESHOLD)
We also probably want a MIN_SAMPLE_SIZE
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If the sensor-domain strategy works (assumption), maybe we should attribute poor sensor-domain performance to external factors and mark the workhorse-domain differently than when the sensor-domain is performing well. markDomainUnhealthy vs. markNetworkUnhealthy? Although it may not be practically useful if the response is to wait in both cases.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should DELIVERABILITY_DIFF_THRESHOLD
be based on the sample size? Is that sound?
This is being merged and deployed now, but without the cron job enabled. For now, staff will enable/disable domains manually based on a Metabase query for domain deliverability percentage. We will revisit automated health checks. |
The approach for evaluating domain health in cron job is:
Every 10 minutes: