findface-tarantool-server
The findface-tarantool-server
service provides interaction between the findface-sf-api
service and the Tarantool-based feature vector database in the following way:
Tip
See Tarantool official documentation for details.
From
findface-sf-api
,findface-tarantool-server
receives data, such as information of detected objects, to write into the feature vector database.By request from
findface-sf-api
,findface-tarantool-server
performs database searches and returns search results.
Multiple findface-tarantool-server
shards can be created on each Tarantool host to increase search speed. Their running concurrently leads to a remarkable increase in performance (70x-100x).
Functionality:
saving object data to the feature vector database,
database search,
implementation of direct API requests to the database (see Direct API Requests to Tarantool).
The findface-tarantool-server
configuration is done through the /etc/tarantool/instances.available/<shard-*>.lua
configuration file. You can find its default content here
.
Important
In a multi-shard environment, the configuration has to be done for each shard.
When configuring findface-tarantool-server
, refer to the following parameters:
Parameter |
Description |
---|---|
|
Enables automatic database recovery. In this case, each time an error occurs while reading a snapshot or xlog file, Tarantool will skip invalid records, read as much data as possible, and re-build the file. |
|
IP address and port of the |
|
Maximum RAM that can be used by a Tarantool shard. Set in bytes, depending on the number of objects the shard handles. Consult our experts by support@ntechlab.com before setting this parameter. |
|
A database structure to store the object recognition results. The structure is created as a set of fields.
Describe each field with the following parameters: |
Default database structure is passed from /etc/findface-security/tnt_schema.lua
to the meta_scheme
parameter. See Modify Feature Vector Database Structure for details.