Skip to content

Commit

Permalink
Add max_jobs passing for rr
Browse files Browse the repository at this point in the history
  • Loading branch information
wapmorgan committed Aug 7, 2023
1 parent 77100e3 commit 7c3f75d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions .rr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ http:
pool:
debug: ${DEBUG}
num_workers: ${NUM_WORKERS}
max_jobs: ${NUM_REQUESTS_BEFORE_RESET}

rpc:
listen: tcp://127.0.0.1:6001
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ghcr.io/roadrunner-server/roadrunner:2023.2.1 AS roadrunner
FROM ghcr.io/roadrunner-server/roadrunner:2023.1.0 AS roadrunner
FROM composer:2.4.4 AS composer
FROM php:8.1-cli
COPY --from=composer /usr/bin/composer /usr/bin/composer
Expand All @@ -10,4 +10,5 @@ RUN composer install --prefer-dist --optimize-autoloader && composer require --p
ENTRYPOINT rr --WorkDir /app --debug serve
EXPOSE 8080
ENV NUM_WORKERS 4
ENV NUM_REQUESTS_BEFORE_RESET 0
ENV DEBUG false

0 comments on commit 7c3f75d

Please sign in to comment.