Onpremise Installation¶
Hardware and Performance¶
The recommended requirements for production purposes on Amazon AWS are:
- Minimum recommended instance type: c5.large
- Processing times are approximately 0.1 seconds for voice comparison with 5 seconds audio duration when using the end-point documented at Section 6.
- Container needs 90 seconds of grace period before receiving health checks.
- Recommended configuration for the instance:
- CPU 2048 MHz (2 cores)
- RAM 3500 Mb +500 Mb reserved for system services
- No more than 1 workers per CPU
- Recommended configuration for a machine with M cores:
- Number of workers (W ): W = M
- RAM: 1700Mb∗W + 500 Mb reserved for system services
For the machine described above, das-Peak has been installed and loading tests have been carried out with 5 seconds duration registration and 5 seconds verification, obtaining that the number of registration/verification requests is 200 per minute.
Container configuration¶
The container creation procedure is configured by using environmental variables which can be given on the docker run command. The default value of this variables is given after equals symbol. For current version, these are the variables that can be configured:
- WORKERS=2 Sets the number of worker processes forked from the master.
- ENABLE_SSL=TRUE to able connections with SSL certificates.
- DEBUG="NO" It may be YES or NO, please, never use YES on production environments.
- FLASK_DEBUG= "NO" It may be YES or NO, please, never use YES on production environments.
Container creation¶
The following command is an example of how to create and start a container from the given docker image:
docker load < daspeak-prod:2.3.1-ubuntu.tar.gz
docker run --name voice-biometrics-prod \ -e WORKERS=2 \
--rm -p 8810:8810 \ daspeak-prod:2.3.1-ubuntu