Skip to content

Commit f06ef70

Browse files
committed
fix(maximus): Optimize for GKE - 1 worker + increased timeouts
1 parent c7a290a commit f06ef70

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

backend/services/maximus_core_service/Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@ ENV PYTHONUNBUFFERED=1 \
7272
# Mudar para usuário não-root
7373
USER maximus
7474

75-
# Health check
76-
HEALTHCHECK --interval=30s --timeout=10s --start-period=60s --retries=3 \
75+
# Health check (increased timeouts for MAXIMUS initialization)
76+
HEALTHCHECK --interval=30s --timeout=10s --start-period=180s --retries=5 \
7777
CMD curl -f http://localhost:8150/health || exit 1
7878

7979
# Expor portas
@@ -84,5 +84,5 @@ LABEL org.opencontainers.image.source="https://github.com/vertice-dev/vertice"
8484
LABEL org.opencontainers.image.description="MAXIMUS Core Service with uv package manager"
8585
LABEL org.opencontainers.image.licenses="Proprietary"
8686

87-
# Comando de produção
88-
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8150", "--workers", "4"]
87+
# Comando de produção (1 worker para estabilidade - MAXIMUS é pesado na inicialização)
88+
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8150", "--workers", "1", "--timeout-keep-alive", "75"]

0 commit comments

Comments
 (0)