Closed samueleresca closed 2 years ago
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository
Description of changes:
This change provides a better way to configure gunicorn in the serving container.
Instead of using ad-hoc env vars (see
SAGEMAKER_GUNICORN_WORKERS
orSAGEMAKER_GUNICORN_THREADS
) we can use the configuration file approach (https://docs.gunicorn.org/en/stable/settings.html#config-file).In this way, it is possible to specify the configuration of gunicorn along with
code
of the model:The resulting
gunicorn_command
should look like something similar to this:By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.