chore(tiering): add protection against overruning memory budget (#3327)

chore(tiering): Introduce second chance replacement strategy

Introduce hot/cold replacement strategy https://www.geeksforgeeks.org/second-chance-or-clock-page-replacement-policy/

Also, add protection against overruning memory budget
Finally, cancel in-flight offloading requests for entries that were looked up.

Signed-off-by: Roman Gershman <roman@dragonflydb.io>
This commit is contained in:
Roman Gershman 2024-07-18 03:52:43 -04:00 committed by GitHub
parent d51fea09e2
commit b9f8671df9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 81 additions and 55 deletions

View file

@ -6,6 +6,7 @@
#include <absl/strings/match.h>
#include "base/flags.h"
#include "base/logging.h"
#include "facade/op_status.h"
#include "redis/redis_aux.h"