89 Commits

Author SHA1 Message Date
Krunal Gandhi
b0359000b1
Fx endpoint and unused vars for events API (#1849)
* fix endpoints and unused vars

* add response on failure of writing events to db

* update response code
2024-07-22 18:20:52 +05:30
Kishore Nallan
7ac12c0357 Merge branch 'v0.25-join' into v0.26-facets 2023-11-25 15:39:52 +05:30
Kishore Nallan
7d06c30cb0 No timeout for follower proxying of writes. 2023-11-20 15:55:02 +05:30
Kishore Nallan
3aa9bad0b1 Merge branch 'v0.25-join' into v0.26-facets
# Conflicts:
#	include/collection.h
#	include/http_data.h
#	test/tokenizer_test.cpp
2023-07-06 12:22:17 +05:30
Kishore Nallan
974280a4d5 Fix response streaming regression.
Introduced during export memory usage fix.
2023-07-04 15:55:27 +05:30
krunal1313
437e81a301 handling small file without chunks 2023-07-03 13:05:52 +05:30
Kishore Nallan
c1500fec81 Reduce export/import memory usage. 2023-06-22 17:39:15 +05:30
Kishore Nallan
d9d6a38226 Reduce export/import memory usage. 2023-06-22 17:38:15 +05:30
Kishore Nallan
9e9569c1cd Fix asan warnings for req/res cycles. 2023-06-18 16:15:25 +05:30
Kishore Nallan
9c8b2eed72 Fix http streaming on upgraded h2o lib. 2023-03-29 17:36:03 +05:30
Kishore Nallan
56184aff26 Allow peers to be reset on error/on-demand. 2023-03-28 16:40:52 +05:30
0x2Adr1
bbebb1a567
Bazel (#736) 2022-12-15 21:09:06 +05:30
Kishore Nallan
2925b2e8d1 Store auth inside request. 2022-07-07 09:37:27 +05:30
Kishore Nallan
9e5c3ed8b2 Status endpoint for tracking lag against leader. 2022-06-30 18:44:59 +05:30
Kishore Nallan
1e241e970d Better synchronization during slow request logging.
We also log slow requests >= 0 ms now.
2022-06-24 09:38:55 +05:30
Kishore Nallan
9cfe72da7e Auth multi_search only when whole body is available. 2022-04-27 13:03:57 +05:30
Kishore Nallan
31c8a030c7 Handle per-search API key for multi search. 2022-02-25 21:19:24 +05:30
Kishore Nallan
d20065a48c Allow a list of specific cors domains. 2022-02-20 10:21:25 +05:30
Kishore Nallan
4549e09063 Handle response write race condition with h2o dispose. 2022-02-14 13:38:51 +05:30
Kishore Nallan
0bc9574112 Further refactor indexing/response workflow. 2021-10-08 18:56:52 +05:30
Kishore Nallan
87f18b03f3 Address concurrency edge case in import streaming.
Manage concurrent access by the req/res variables between batch indexer and http response threads.
2021-10-07 19:38:54 +05:30
Kishore Nallan
6da39ff51c Expose write stats. 2021-10-02 18:54:30 +05:30
Kishore Nallan
e3bf9f02d6 Expose number of pending writes as metric. 2021-09-21 12:04:08 +05:30
Kishore Nallan
b70296e58f Refactor write request check. 2021-04-26 18:33:52 +05:30
Kishore Nallan
60c03bce19 Defer deletion of old ssl context during SSL cert refresh. 2021-04-25 16:31:20 +05:30
Kishore Nallan
aa1cd0acd1 Recover gracefully from a crash during write. 2021-04-23 14:23:00 +05:30
Kishore Nallan
073667e844 Fix blocking of http thread during writes. 2021-04-08 17:57:02 +05:30
kishorenc
ad28540fdc Manage lifecycle of deferred_req_res_t better. 2021-04-06 14:12:15 +05:30
kishorenc
063d7911b4 SSL cert loading: replace instead of add + validation. 2021-03-21 09:37:08 +05:30
kishorenc
b9f3829b43 Refactor query string parsing to not use regexp. 2021-03-03 19:47:02 +05:30
kishorenc
95ee14350a Use shared_ptr to handle req/res life cycles. 2021-02-28 12:48:20 +05:30
kishorenc
5dc7df793c Merge branch '0.18.0-patches' into 0.20.0-rc
# Conflicts:
#	include/auth_manager.h
#	include/collection_manager.h
#	include/http_server.h
#	src/auth_manager.cpp
#	src/collection_manager.cpp
#	src/http_server.cpp
2021-02-16 12:54:42 +05:30
kishorenc
09530e3415 Fix race condition in condition variable notify/wait. 2021-02-15 18:23:42 +05:30
kishorenc
0175ac0df4 Support auth against multiple collections.
# Conflicts:
#	include/auth_manager.h
#	include/collection_manager.h
#	include/http_server.h
#	src/auth_manager.cpp
#	src/collection_manager.cpp
2021-02-11 19:17:18 +05:30
kishorenc
17fbbd0838 Refactor concurrency model. 2021-02-06 20:17:18 +05:30
Jason Bosco
8b4e07cb81 Configuration to log slow requests 2021-01-23 07:44:59 -08:00
Jason Bosco
bcea70ebfd Add windowed stats endpoint 2021-01-22 16:52:27 -08:00
kishorenc
10fd97c32d Node vote API for triggering leader rotation. 2020-12-28 19:20:00 +05:30
kishorenc
8a310bbb82 On demand snapshot API. 2020-12-28 19:19:59 +05:30
Kishore Nallan
93b1d2d1cb Refactor to a create/update/upsert API model. 2020-10-24 15:43:55 +05:30
kishorenc
1ca39459eb Fix catch up error on https. 2020-09-18 07:24:38 +05:30
kishorenc
a2b421209c Protect API until follower has caught up with leader.
The catch up threshold is configurable as well. Default: 95%
2020-09-17 18:00:32 +05:30
kishorenc
695c44dc17 Forward status code and content type properly. 2020-09-05 18:56:39 +05:30
kishorenc
58b52687ea Handle disconnects during import. 2020-09-04 15:12:09 +05:30
kishorenc
6d7c6b2ea0 Implemented import streaming end-to-end on follower. 2020-09-03 20:44:39 +05:30
kishorenc
10957633fb Request-side import streaming via follower is working. 2020-09-01 20:12:08 +05:30
kishorenc
030dc5ca35 Fix http2 async import. 2020-08-21 18:02:06 +05:30
kishorenc
09541e5311 Parameterize number of indices per collection. 2020-08-19 12:29:59 +05:30
kishorenc
80a3e0fb87 Throttle imports.
Ensure that other queries are not blocked when an import is in progress.
2020-08-18 18:32:19 +05:30
kishorenc
e2c0b52671 Free request & response objects via generator dispose callback. 2020-08-17 11:53:04 +05:30