606 Commits

Author SHA1 Message Date
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
9ca4938045 Use nodes instead of peers for connection string. 2020-04-18 14:10:33 +05:30
kishorenc
3ac4cfa44b Ensure that the peering service listens only on internal IP. 2020-04-17 18:41:38 +05:30
kishorenc
cb7dba44ea Updates to DEB to use subdir structure and new args. 2020-04-17 18:41:13 +05:30
kishorenc
0055a687a7 Expose text match score as "text_match". 2020-04-09 10:06:41 +05:30
kishorenc
559ee3369a Call the string similarity score as _text_match to reduce ambiguity. 2020-04-05 09:15:20 +05:30
kishorenc
8845917020 Symlink name must not conflict with a collection name. 2020-04-04 21:25:33 +05:30
kishorenc
5c942e7f4a Minor refactor of import API. 2020-04-04 15:46:14 +05:30
kishorenc
51751032c0 Rename http response setters for clarity. 2020-04-02 18:43:23 +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
5d424b5d38 Implement PUT + fix JSON response for forwarded requests. 2020-04-02 13:41:59 +05:30
kishorenc
72e10d2ee4 Should exit cleanly even when API server has not started. 2020-04-01 19:06:59 +05:30
kishorenc
89690101ae Make route_hash unsigned. 2020-04-01 18:30:06 +05:30
kishorenc
dd290884e5 Remove replication updates API. 2020-03-30 20:51:04 +05:30
kishorenc
30ec332e89 Update license text.
Use GPL v3. Closes https://github.com/typesense/typesense/issues/98
2020-03-30 08:43:31 +05:30
kishorenc
16a1285a9b Add facet query tests for overrides. 2020-03-27 20:06:33 +05:30
kishorenc
3b3d9cfb01 Fix a route ordering issue introduced by using unordered map. 2020-03-26 21:12:17 +05:30
kishorenc
8829c5aebc Allow customization of peering address.
This is an optional argument since Typesense automatically tries to bind on an internal IP. One needs to specify this only when there are multiple internal IPs.
2020-03-26 17:39:42 +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
88192820de Free leaf indices during early return. 2020-03-26 14:05:59 +05:30
kishorenc
d3af2bff39 Drop support for rocksdb based replication. 2020-03-26 08:08:41 +05:30
kishorenc
8bfeeeb2ee Fix forwarding of delete operations. 2020-03-25 21:31:56 +05:30
kishorenc
d72351e24d Use find_library for locating leveldb and gflags. 2020-03-25 21:30:43 +05:30
kishorenc
901795869d Fix API server kicking in early before init readiness. 2020-03-25 08:48:01 +05:30
kishorenc
7cc8acfe45 Handle error from init_db. 2020-03-23 21:52:57 +05:30
kishorenc
43231eaae3 Only start API service when peering service is stable. 2020-03-23 21:38:41 +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
kishorenc
3d8350aaaa Fix build. 2020-03-22 11:42:18 +05:30
kishorenc
9500651fb5 Use latest docker build image. 2020-03-22 08:13:18 +05:30
kishorenc
c0759f0d1b When API service quits, peering service also must quit. 2020-03-21 07:43:41 +05:30
kishorenc
1cd9793d69 Reject writes to followers. 2020-03-20 22:31:40 +05:30
kishorenc
e057b64d9d Migrate to butil logger. 2020-03-20 16:49:26 +05:30
kishorenc
ae65d3bed9 Release AsyncIndexArg. 2020-03-18 21:02:32 +05:30
kishorenc
0116e3cb2b BRPC is building. 2020-03-18 21:01:34 +05:30
kishorenc
64f9c84e63 Building dependencies for brpc. 2020-03-17 21:36:47 +05:30
kishorenc
c982335bdd Fix tests. 2020-03-17 07:53:41 +05:30
kishorenc
df08df5d96 Exit cleanly from raft service on validation errors. 2020-03-17 07:43:22 +05:30
kishorenc
123888d4d3 When no --peers arg is given, start single node cluster. 2020-03-15 20:33:13 +05:30
kishorenc
637ba52769 Delete DB cleanly before restore. 2020-03-15 18:52:26 +05:30
kishorenc
b7f9a2ca28 Handle import of raw db data into snapshot. 2020-03-15 17:08:44 +05:30
kishorenc
a52ec80999 Handle presence/absence of snapshot.
Still need to handle import of raw db data into snapshot.
2020-03-15 16:11:29 +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
4f2192648e Add osx cmake extensions. 2020-03-11 16:10:01 +05:30
kishorenc
42f779566b Refactor file fetch. 2020-03-09 07:37:50 +05:30
kishorenc
eb0c66d778 Basic raft clustering is working.
Still need to handle actual stateful operations.
2020-03-08 21:22:48 +05:30