Skip to content

Commit

Permalink
Add basic scenario description
Browse files Browse the repository at this point in the history
  • Loading branch information
kiootic committed Nov 1, 2023
1 parent 638a148 commit f9df4bb
Showing 1 changed file with 19 additions and 4 deletions.
23 changes: 19 additions & 4 deletions src/scenarios/cache-stampede/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,19 @@
```metrics
system.fn_duration_ms{service=api}
system.fn_duration_ms{service=db}
```
# Cache Stampede

In this scenario, we look into cache stampede caused by cache flush.

## Setup

The system consist of an API server, a cache, and a database.

Database query is slow (~20ms), and cache query is fast (~1ms).


## Useful metrics

- [API latency](lab:metrics?q=system.fn_duration_ms{service=api})
- [DB latency](lab:metrics?q=system.fn_duration_ms{service=db})
- [DB load](lab:metrics?q=system.node_load{service=db})
- [Cache latency](lab:metrics?q=system.fn_duration_ms{service=cache})
- [Cache hits](lab:metrics?q=services.cache.hit)
- [Cache misses](lab:metrics?q=services.cache.miss)

0 comments on commit f9df4bb

Please sign in to comment.