Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion analytics_platform/kronos/scripts/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ zip -r /tmp/training.zip /analytics_platform /util
zip -r /tmp/tagging.zip /tagging_platform /util /analytics_platform

# WARNING: Don't add worker class as gevent since it doesn't allow PGM to perform scoring in parallel
gunicorn --pythonpath / -b 0.0.0.0:$SERVICE_PORT --workers=2 -t $SERVICE_TIMEOUT rest_api:app
gunicorn --pythonpath / -b 0.0.0.0:$SERVICE_PORT --workers=$NUMBER_OF_PROCESSES -t $SERVICE_TIMEOUT rest_api:app

# --------------------------------------------------------------------------------------------------
# to make the container alive for indefinite time
Expand Down
1 change: 1 addition & 0 deletions analytics_platform/kronos/src/config.py.template
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ TESTING = False
DEBUG = True
LOGFILE_PATH = os.environ.get("LOGFILE_PATH", "/tmp/error.log")
SERVICE_PORT = os.environ.get("SERVICE_PORT", "")
NUMBER_OF_PROCESSES = os.environ.get("NUMBER_OF_PROCESSES", "2")

AWS_S3_ACCESS_KEY_ID = os.environ.get("AWS_S3_ACCESS_KEY_ID", "")
AWS_S3_SECRET_ACCESS_KEY = os.environ.get("AWS_S3_SECRET_ACCESS_KEY", "")
Expand Down
2 changes: 2 additions & 0 deletions openshift/template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ objects:
value: "900"
- name: KRONOS_SCORING_REGION
value: "${KRONOS_SCORING_REGION}"
- name: NUMBER_OF_PROCESSES
value: "2"
- name: AWS_S3_ACCESS_KEY_ID
valueFrom:
secretKeyRef:
Expand Down