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
C++ algoliadatastoreelasticsearchenterprise-searchfacetingfull-text-searchfuzzy-searchgeosearchin-memoryinstantsearchmerchandisingpineconesearchsearch-enginesemantic-searchsimilarity-searchsite-searchsynonymstypo-tolerancevector-search
Remove resource check for POST /health
Kishore Nallan741dd338f055
diff --git a/src/raft_server.cpp b/src/raft_server.cppindex 920b6b34..e882244a 100644--- a/src/raft_server.cpp+++ b/src/raft_server.cpp@@ -194,7 +194,8 @@ void ReplicationState::write(const std::shared_ptr<http_req>& request, const stdauto resource_check = cached_resource_stat_t::get_instance().has_enough_resources(raft_dir_path,config->get_disk_used_max_percentage(), config->get_memory_used_max_percentage());- if (resource_check != cached_resource_stat_t::OK && request->http_method != "DELETE") {+ if (resource_check != cached_resource_stat_t::OK &&+ request->http_method != "DELETE" && request->path_without_query != "/health") {response->set_422("Rejecting write: running out of resource type: " +std::string(magic_enum::enum_name(resource_check)));response->final = true;