You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Django application with one view (url "/") that does multiple (around 110) requests to a Redis cache.
Access this view by 100 concurrent users constantly over a duration of 5 minutes.
Baseline
Run the test for 5 minutes without Sentry enabled at all.
(Memory usage is about 50mb, the server manages to serve almost 12 requests per second)
With Sentry / Without Cache Spans
Run the test for 5 minutes with Sentry enabled, but no Cache spans. (so default Sentry setup)
(Memory usage is about 80mb, the server manages to serve 9 requests per second)
With Sentry / With Cache Spans.
Run the test for 5 minutes with Sentry and cache spans enabled. Each request generates around 110 cache spans.
(Memory usage is about 80mb, the server manages to serve around 6 requests per second)
Django application with one view (url "/") that does LOTS (around 660) requests to a Redis cache.
Access this view by 100 concurrent users constantly over a duration of 5 minutes.
With Sentry / LOTS of cache requests / NO Cache Spans
Run the test for 5 minutes with Sentry and NO cache spans. Each request makes around 660 cache request.
(Memory usage is about 100mb, the server manages to serve only 1.5 requests per second)
With Sentry / LOTS of cache requests / With Cache Spans
Run the test for 5 minutes with Sentry and cache spans enabled. Each request makes around 660 cache request.
(Memory usage is about 100mb, the server manages to serve only 1.3 requests per second)
Just to make sure I ran the test for 15 minutes that creates cache spans (the 110 cache spans per request) to see if the memory keeps growing. But it seems the curve flattens out, so this is good.
The load tests seem fine. We enabled cache spans on sentry itself and it did not add any noticeable overhead (in terms of memory usage or response times) to cached Django views.
Activity
antonpirker commentedon Jan 8, 2025
Setup
Sentry Python SDK 2.19.2.
Django application with one view (url
"/") that does multiple (around 110) requests to a Redis cache.Access this view by 100 concurrent users constantly over a duration of 5 minutes.
Baseline
Run the test for 5 minutes without Sentry enabled at all.
(Memory usage is about 50mb, the server manages to serve almost 12 requests per second)
With Sentry / Without Cache Spans
Run the test for 5 minutes with Sentry enabled, but no Cache spans. (so default Sentry setup)
(Memory usage is about 80mb, the server manages to serve 9 requests per second)
With Sentry / With Cache Spans.
Run the test for 5 minutes with Sentry and cache spans enabled. Each request generates around 110 cache spans.
(Memory usage is about 80mb, the server manages to serve around 6 requests per second)
antonpirker commentedon Jan 8, 2025
Setup
Sentry Python SDK 2.19.2.
Django application with one view (url
"/") that does LOTS (around 660) requests to a Redis cache.Access this view by 100 concurrent users constantly over a duration of 5 minutes.
With Sentry / LOTS of cache requests / NO Cache Spans
Run the test for 5 minutes with Sentry and NO cache spans. Each request makes around 660 cache request.
(Memory usage is about 100mb, the server manages to serve only 1.5 requests per second)
With Sentry / LOTS of cache requests / With Cache Spans
Run the test for 5 minutes with Sentry and cache spans enabled. Each request makes around 660 cache request.
(Memory usage is about 100mb, the server manages to serve only 1.3 requests per second)
antonpirker commentedon Jan 8, 2025
Just to make sure I ran the test for 15 minutes that creates cache spans (the 110 cache spans per request) to see if the memory keeps growing. But it seems the curve flattens out, so this is good.
antonpirker commentedon Jan 9, 2025
The load tests seem fine. We enabled cache spans on
sentryitself and it did not add any noticeable overhead (in terms of memory usage or response times) to cached Django views.[-]Load Testing Cache Spans[/-][+]Load Testing Cache Spans in Django[/+]