Survival Analysis For Cache Time-To-Live Optimization Presentation
Survival Analysis For Cache Time-To-Live Optimization Presentation
3/5/12
Outline
The Problem Survival Analysis
Intro Key Terms Techniques & Models:
Kaplan-Meier Estimates Parametric Models
The Problem
The hotel rate cache and TTL optimization.
3/5/12
3/5/12
hotel id host
check-in check-out
# people # rooms
(TTL)
TTLs set based on intuition ages ago. Goal: Optimize TTL to decrease looks,
3/5/12
Survival Analysis
A brief? introduction.
3/5/12
Prison parolees:
Re-arrest.
3/5/12
Key Terms
Survival Time, T vs. t Failure Censoring Survival Function
3/5/12
Censoring
Period of no information
Left-censored. Right-censored.
Causes:
Individual is lost to follow-up Death from cause unrelated to event of
interest
Study ends
Survival Function
Survival Function: S(t) Probability of survival greater than t,
Properties:
Non-increasing S(t) = 1, for t=0. S(t) = 0, t=
3/5/12
Kaplan-Meier Estimates
tj: observation time
tj mj qj mj: number ofnjfailures 0 0 0 14
+1 = ( + )
3/5/12
Kaplan-Meier Estimates
()
3/5/12
Parametric Models
Accelerated Failure
Time
S(t)
Assume
distribution
Use regression to
fit parameters.
is parameterized
3/5/12
3/5/12
Data Collection
Data is collected from service hosts in
records.
Extraction: <40 GB compressed, 109
records.
3/5/12
Data Preparation
Map/Reduce Job
Key: unique search criteria (including
hotel id)
Does rate ever change? (how long) status ever change? (how long)
Does
chain, etc.
3/5/12
KM Estimates
Glo bal By Traffic Volume
3/5/12
Survival Regression
Using survreg, we can fit
Allows us to capture
3/5/12
Model Families
3/5/12
Production Testing
Divided hotels in 8 markets into A & B groups Modified TTL values for unavailable rates for B Prediction: Reduce the number of looks to B Reduce the unavailability percentage for B No negative impact on bookings or look-to-
books for B
3/5/12
Production Results
3/5/12
Production Results
3/5/12
problem. rates.
Whats next?
Available rates Introduction of predictor variables On-the-fly TTL calculation Beyond TTL
3/5/12
Thank you!
Questions?
3/5/12