Update FindFace Security from 1.x to 2.x

To update FindFace Security from 1.x to 2.x, do the following:

  1. Install a new version according to your architecture outline, following instructions in Deploy FindFace Security.

  2. Create the following galleries in the Tarantool-based biometric database:

    • ffsec_dossier_face: biometric samples extracted from dossier photos.
    • ffsec_events: biometric samples extracted from faces in video.
    • ffsec_monitoring: biometrics samples from all dossiers under watch (active).
    curl -i -X POST 'http://127.0.0.1:18411/v2/galleries/ffsec_dossier_face'
    curl -i -X POST 'http://127.0.0.1:18411/v2/galleries/ffsec_events'
    curl -i -X POST 'http://127.0.0.1:18411/v2/galleries/ffsec_monitoring'
    
  3. Migrate data drom PostgreSQL to Tarantool.

    sudo findface-security tnt_migrate
    

    Note

    To purge PostgreSQL after migration is completed, execute the command with the option --purge-sql.

    sudo findface-security tnt_migrate --purge-sql
    

    Note

    It is absolutely data-safe to interrupt the migration process and resume it later.