Skip to content

LUNA Index Module v.5.47.4#

  • The ability to use Redis Sentinel has been added.

    New sections "LIM_MANAGER_DB.SENTINEL" and "LIM_MATCHER_DB.SENTINEL" have been added to the settings of the Index Manager and Indexed Matcher services, containing the following settings:

    • "master_name" - Name of the Redis master node that will be monitored and managed by Redis Sentinel (by default "index_manager" and "indexed_matcher").
    • "sentinels" - List of addresses of Redis Sentinel listeners (not set by default).

    Also, the use of Redis Sentinel is supported in the "REDIS_URL" setting in the "LUNA_INDEXED_LIST_PLUGIN" section, which is responsible for connecting the matching plugin with Redis when calculating matching cost of the request. Example of filling in the "REDIS_URL" setting in the "LUNA_INDEXED_LIST_PLUGIN" section: redis+sentinel://localhost:26379,localhost:26378/indexed_matcher.

  • The default value for the "CONNECTION_POOL_SIZE" settings of the Index Manager and Indexed Matcher services has been increased from 5 to 100.

  • The Python version has been updated to 3.11 in LIM service containers.

    Support for older versions of Python has been discontinued.

Fixed errors

  • The priority of an error like "Couldn't find idx for " has been changed from "ERROR" to "WARNING".

    Such an error can occur when a user has added a new face to the list and then removed it from the list during the period between the launches of index updates in the memory of the Indexed Matcher service (by default, 1 second).

    For more information about the index update process, see the "Refreshing index in memory" section of the LIM administrator manual.

LIM developer's changes (v.0.3.0 - v.0.3.1)#

Improvements#

  • Support for Redis Sentinel configuration.

  • Support for older python versions was dropped. Python 3.11 is required now.

  • Support for Redis Sentinel configuration format of matching plugin REDIS_URL setting, i.e. redis+sentinel://sentinel0:26379,sentinel1:26378/indexed_matcher.

Fixed bugs#

  • Deletion non exist face from matcher cache was fixed. The mathcer service triggered an error ("Couldn't find idx for 457a4567-9886-4947-8b45-771e6b384564") in the following case:

  • A client adds a face to an indexed list.

  • A matcher does not have time to update the cache.

  • A client remove the face from the list.

  • A matcher fails to remove face from the cache.

    Matcher will be write warning "Couldn't find idx for 457a4567-9886-4947-8b45-771e6b384564" now in such cases.