VisitorBadgeReloaded icon indicating copy to clipboard operation
VisitorBadgeReloaded copied to clipboard

[BUG] 'ERROR' views displayed when out of storage.

Open Nathan13888 opened this issue 1 year ago • 0 comments

When the server is out of storage, Redis could no longer flush it's cache resulting in the error. However when the &hit=false flag is included, Redis newer writes to disk so a view count is still shown.

Proposed Mitigations

Detect this edge-case:

  • Be able to monitor an "unexpected" badge periodically
  • Redis should be able to detect if it runs out of space
  • When the error is detected, there should be a public page that posts the issue on a public page.

Prevent this edge-case:

  • Disk space should be reserved for Redis
  • If there is an error, the last known view should be shown

Nathan13888 avatar Jul 19 '23 20:07 Nathan13888