Skip to content

Commit f91556b

Browse files
authored
[Ubiquity] update worker count (#6831)
* Update ubiquity-ngx-micro.dockerfile * Update ubiquity-ngx-micro.dockerfile * update php.ini
1 parent 3eba5ac commit f91556b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

frameworks/PHP/ubiquity/deploy/conf/php.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ max_input_time = 60
401401

402402
; Maximum amount of memory a script may consume (128MB)
403403
; http://php.net/memory-limit
404-
memory_limit = 128M
404+
memory_limit = 256M
405405

406406
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
407407
; Error handling and logging ;

frameworks/PHP/ubiquity/ubiquity-ngx-micro.dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ RUN /ubiquity/vendor/bin/Ubiquity bootstrap prod
4646
RUN echo "opcache.preload=/ubiquity/app/config/preloader.script.php" >> deploy/conf/php.ini
4747
RUN echo "opcache.jit_buffer_size=128M\nopcache.jit=tracing\n" >> deploy/conf/php.ini
4848

49-
RUN export WORKERS=$(( 4 * $(nproc) )) && \
49+
RUN export WORKERS=$(( $(nproc) )) && \
5050
sed -i "s|worker_processes auto|worker_processes $WORKERS|g" /ubiquity/deploy/conf/ngx/nginx.conf
5151

5252
EXPOSE 8080

0 commit comments

Comments
 (0)