Skip to content

Open Source alternative to Algolia + Pinecone and an Easier-to-Use alternative to ElasticSearch ⚡ 🔍 ✨ Fast, typo tolerant, in-memory fuzzy Search Engine for building delightful search experiences

Exclude POST /health from batch indexer resource check.

Kishore Nallan799805490034
diff --git a/src/batched_indexer.cpp b/src/batched_indexer.cpp
index 93a19382..be3c9974 100644
--- a/src/batched_indexer.cpp
+++ b/src/batched_indexer.cpp
@@ -200,7 +200,8 @@ void BatchedIndexer::run() {
config.get_disk_used_max_percentage(),
config.get_memory_used_max_percentage());
- if (resource_check != cached_resource_stat_t::OK && orig_req->http_method != "DELETE") {
+ if (resource_check != cached_resource_stat_t::OK &&
+ orig_req->http_method != "DELETE" && found_rpath->handler != post_health) {
const std::string& err_msg = "Rejecting write: running out of resource type: " +
std::string(magic_enum::enum_name(resource_check));
LOG(ERROR) << err_msg;