File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
frameworks/Python/blacksheep Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -11,8 +11,8 @@ RUN pip3 install -r /blacksheep/requirements-uvicorn.txt -q
1111
1212ENV PGSSLMODE=disable
1313RUN CORE_COUNT=$(nproc) && \
14- MAX_PROCESSES=$((CORE_COUNT <= 4 ? CORE_COUNT : CORE_COUNT)) && \
15- SPARE_PROCESSES=$((MAX_PROCESSES // 4 > 0 ? MAX_PROCESSES / / 4 : 1)) && \
14+ MAX_PROCESSES=$((CORE_COUNT <= 4 ? CORE_COUNT : CORE_COUNT / 2 )) && \
15+ SPARE_PROCESSES=$((MAX_PROCESSES / 4 > 0 ? MAX_PROCESSES / 4 : 1)) && \
1616 sed -i "s|\" max\" : [0-9]*|\" max\" : $MAX_PROCESSES|g" /blacksheep/unit-config.json && \
1717 sed -i "s|\" spare\" : [0-9]*|\" spare\" : $SPARE_PROCESSES|g" /blacksheep/unit-config.json && \
1818 sed -i "s|\" idle_timeout\" : [0-9]*|\" idle_timeout\" : 3600|g" /blacksheep/unit-config.json
You can’t perform that action at this time.
0 commit comments