Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 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
16 changes: 15 additions & 1 deletion microservices/time-series-analytics/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,11 @@ COPY ./src/classifier_startup.py ./src/opcua_alerts.py ./src/main.py /app/

COPY ./config/kapacitor*.conf /app/config/

#Copying for Core Pinning
COPY ./docker/run.sh /app/
COPY ./docker/detect-cores.sh /app/
RUN chmod +x /app/run.sh /app/detect-cores.sh

# Optionally download copyleft sources if requested
ARG COPYLEFT_SOURCES=false
RUN if [ "$COPYLEFT_SOURCES" = "true" ]; then \
Expand Down Expand Up @@ -106,4 +111,13 @@ USER $TIMESERIES_USER_NAME
# Simple healthcheck to verify container is running
HEALTHCHECK --interval=5m CMD exit 0

ENTRYPOINT ["python3", "main.py"]
# Optional CPU core pinning behavior:
# - Set CORE_PINNING to control which CPU cores the service should prefer.
# - Supported values:
# * "e-cores" : prefer efficiency cores
# * "p-cores" : prefer performance cores
# * "lp-cores" : prefer low-power cores (if available)
# - If CORE_PINNING is unset or empty, no explicit core pinning policy is applied.
# The run.sh script uses detect-cores.sh together with CORE_PINNING (if set)
# to determine and apply the appropriate core affinity at container startup.
ENTRYPOINT ["./run.sh"]
Loading
Loading