53 Commits

Author SHA1 Message Date
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
kishorenc
4a173ee49d Streaming import basics. 2020-08-16 20:17:07 +05:30
kishorenc
6e77a9792e Refactor http req handler: prepare for deferred request body access. 2020-08-12 21:42:23 +05:30
kishorenc
5bb3e062da Update H2O. 2020-05-18 19:24:15 +05:30
kishorenc
6342465a30 Return server state in debug response. 2020-05-05 20:06:14 +05:30
kishorenc
1395d74d48 Manage scoped search API keys. 2020-04-30 14:21:39 +05:30
kishorenc
29b4225461 API Key management. 2020-04-27 21:43:24 +05:30
kishorenc
1e656b092a Refresh SSL certs from disk periodically (every 8h). 2020-04-18 19:56:07 +05:30
kishorenc
deeec05f69 Make health check consider underlying replication state. 2020-04-02 18:38:58 +05:30
kishorenc
b9bc0bd31a Synchronize start of API and state services. 2020-04-02 14:38:55 +05:30
kishorenc
89690101ae Make route_hash unsigned. 2020-04-01 18:30:06 +05:30
kishorenc
3b3d9cfb01 Fix a route ordering issue introduced by using unordered map. 2020-03-26 21:12:17 +05:30
kishorenc
75a1fe1e1d Use hashmap for storing routes instead of an array.
The use of array index makes rolling updates tricky since requests might be forwarded to an instance running an older/newer version having a different route index.
2020-03-26 14:08:06 +05:30
kishorenc
901795869d Fix API server kicking in early before init readiness. 2020-03-25 08:48:01 +05:30
kishorenc
b81ce1062d Basic write replication is working. 2020-03-11 22:31:17 +05:30
kishorenc
a975f39685 Refactor http code to remove circular references. 2020-03-11 16:13:14 +05:30
kishorenc
1bae5bead6 Make Typesense version a member. 2019-09-28 09:49:53 +05:30
Kishore Nallan
13964b6a57 Allow collections to be symlinked by an alternative name. 2018-07-30 19:48:17 +05:30
Kishore Nallan
8bbfef8d44 Clear stray timeout. 2018-03-24 21:24:01 +05:30
Kishore Nallan
2714f6ee0c Enable gzip compression for responses. 2018-02-03 17:46:08 -05:00
Kishore Nallan
523c142479 #7: Support for CORS via the --enable-cors flag. 2018-01-01 12:26:38 +05:30
Kishore Nallan
f3e630f9de Collection export API. 2017-12-16 13:02:50 +05:30
Kishore Nallan
de80250de9 Extract authentication logic into a separate handler.
It is now possible to define a separate key for search end-point alone as well. This will be used when one needs to call the API directly from Javascript.
2017-12-12 18:10:08 +05:30
Kishore Nallan
42d0c31140 HTTPS is now supported! 2017-11-25 18:24:33 +05:30
Kishore Nallan
17b2201c52 Another round of h2o related resource clean up. [Valgrind]
No more h2o related valgrind warnings.
2017-11-20 07:39:46 +05:30
Kishore Nallan
d132098463 Free h2o related resources to have a clean shutdown. [Valgrind] 2017-11-19 20:41:31 +05:30
Kishore Nallan
7220a9e51d Cleanly exit server on sigint.
Valgrind "definitely lost" and "indirectly lost" are zero now.
2017-09-17 13:59:47 +05:30
Kishore Nallan
58a10877ee Basics of background replication.
Supports inserts. Deletion will be tackled next.
2017-09-14 09:58:44 +05:30
Kishore Nallan
3febb7840a Generalize the custom message struct such that it can support multiple types of messages and values. 2017-09-10 15:48:41 +05:30
Kishore Nallan
ea246f1c45 Collect and send replication updates in an async fashion.
This ensures that the query performance is not affected by replication running constantly in the background.
2017-09-02 15:56:07 +05:30
Kishore Nallan
7509de2300 Upgrade H2O + fixed core dump on Linux release build.
Core dump on Linux on release build (debug build is fine) when `h2o_accept_ctx_t` was stack allocated.
2017-08-21 12:30:48 +05:30
Kishore Nallan
ce69dbb371 Remove all static variables in http server so that it can be reused. 2017-07-30 08:48:52 +05:30
Kishore Nallan
e066beb870 Move http data structs to a separate header. 2017-07-29 22:31:24 +05:30
Kishore Nallan
005b637f74 Send 401 rather than 403 when API key is incorrect. 2017-07-26 21:11:02 +05:30
Kishore Nallan
c471cd50c3 Implement authentication against an API auth key.
The key should be passed via X-API-KEY HTTP header.
2017-07-04 22:18:47 +05:30
Kishore Nallan
0b9d5e386a Pass program arguments for listen address and port into http server. 2017-05-29 20:41:46 +05:30
Kishore Nallan
3478aef573 API for deleting a document by ID. 2017-05-17 20:31:24 +05:30