45 Commits

Author SHA1 Message Date
Kishore Nallan
c299172ccc Fix curl client response wait cycle. 2023-07-25 12:48:30 +05:30
Kishore Nallan
172fc49837 Tweak timeouts. 2023-07-11 13:19:19 +05:30
Kishore Nallan
01801f4ea9 Refactor remoted embedding code. 2023-07-11 12:42:06 +05:30
ozanarmagan
e614895ea4 Add extra check for timeouts 2023-07-06 13:10:32 +03:00
Kishore Nallan
176a72e6ca Fix http curl client timeout API. 2023-06-30 10:58:15 +05:30
Kishore Nallan
b44a374229 Close async curl socket on premature error. 2023-06-24 10:05:04 +05:30
Kishore Nallan
b2c95d84c6 Fix curl client not passing arg along. 2023-05-30 19:28:27 +05:30
Kishore Nallan
d8fc509fe9 Don't send ts api key in curl client requests by default. 2023-05-30 16:28:36 +05:30
ozanarmagan
5bcbb2832e Review changes 2023-05-04 11:52:45 +03:00
ozanarmagan
096543dcd6 Added OpenAI integration for embeddings 2023-04-22 00:40:51 +03:00
ozanarmagan
4f728c98fe Review Changes 2023-02-21 13:02:47 +03:00
ozanarmagan
4f921a3040 Auto vector generation & Hybrid Search 2023-02-16 14:47:17 +03:00
Kishore Nallan
c5b55a4ca3 More careful handling of custom request data destruction. 2022-09-06 19:16:50 +05:30
Kishore Nallan
9db05986d7 Fix follower streaming edge case. 2021-10-17 07:58:23 +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
51c95dd764 Handle null header in leader curl response. 2021-10-03 17:43:29 +05:30
Kishore Nallan
1e1e4c8e07 Close connection after follower is done proxying import. 2021-08-09 19:10:47 +05:30
Kishore Nallan
35409f8493 Batched background indexer.
Enables write parallelism across collections.
2021-07-31 21:44:06 +05:30
Kishore Nallan
46b0f08d3f Server should not be ready during snapshot pull + load. 2021-05-07 19:32:08 +05:30
Kishore Nallan
c4deb38189 Handle lag being negative in leader. 2021-04-26 17:19:07 +05:30
Kishore Nallan
c1a2b2252a Always use http2 for follower -> leader communication.
Noticed some socket leaks with http1 (https://github.com/h2o/h2o/issues/1525).
2021-04-21 08:40:29 +05:30
kishorenc
ad28540fdc Manage lifecycle of deferred_req_res_t better. 2021-04-06 14:12:15 +05:30
kishorenc
4152e69b6b Log failed curl req url, and local sequence number. 2021-03-20 16:53:19 +05:30
kishorenc
9e78a6f8d5 Free curl_slist after use. 2021-02-28 16:39:32 +05:30
kishorenc
95ee14350a Use shared_ptr to handle req/res life cycles. 2021-02-28 12:48:20 +05:30
kishorenc
e2882c5828 Fix race condition in snapshot restoration. 2021-02-12 19:10:57 +05:30
Jason Bosco
ed6a4ecc00 Fix import edge case crashes 2021-01-29 23:20:50 -08:00
Jason Bosco
009e67815c Make on-demand snapshot endpoint asynchronous. 2021-01-29 13:58:14 -08:00
Jason Bosco
d2206168ec Forward patch request to leader 2021-01-22 16:51:57 -08:00
kishorenc
120396489c Comment out verbose debug logs for now. 2020-09-18 21:08:46 +05:30
kishorenc
3189c1c4cc Fix import follower hang. 2020-09-09 17:35:50 +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
5b618ac06c Log curl result integer code, along with strerror. 2020-08-13 07:51:21 +05:30
kishorenc
72e4c0510c Use only connection timeout, and not request timeout for curl. 2020-08-12 17:59:41 +05:30
kishorenc
7b7af9453d Set original response content type when proxying to leader. 2020-08-06 12:10:30 +05:30
kishorenc
e06df3f457 Ensure http client returns non-zero status code. 2020-05-10 15:36:43 +05:30
kishorenc
c2833afa86 Log only a warning if system SSL certs are not found. 2020-05-09 12:18:19 +05:30
kishorenc
bbc9c9780d Expose system metrics via API. 2020-05-07 18:26:33 +05:30
kishorenc
5d424b5d38 Implement PUT + fix JSON response for forwarded requests. 2020-04-02 13:41:59 +05:30
kishorenc
8bfeeeb2ee Fix forwarding of delete operations. 2020-03-25 21:31:56 +05:30
kishorenc
3cb4c3a3b6 Reject writes to a follower when there is no leader. 2020-03-23 19:21:25 +05:30
kishorenc
b16614eb20 Follower should forward write requests to leader. 2020-03-23 08:53:58 +05:30