Skip to content

Commit fa319df

Browse files
committed
feat(fpm): look at latest phpfpm built-in metrics exporter #4
1 parent 775c588 commit fa319df

19 files changed

+130
-790
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ franken-shell:
115115
docker-compose exec -it franken bash
116116

117117
worker-shell:
118-
docker-compose exec -it franken bash
118+
docker-compose exec -it franken-worker bash
119119

120120
migrate: ## Run database migrations
121121
docker-compose exec app php bin/console doctrine:migrations:migrate --no-interaction

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,9 @@ password: croatia
142142
make benchmark-product-random-fpm
143143
```
144144

145+
Output:
146+
![PHP-FPM Benchmark Results](docs/images/benchmark-product-random-fpm.png)
147+
145148
see file inside k6/report-UTC-xxxxxxx.html
146149
> i.e: k6/report-product-by-id-random-8088-2025-11-25T10-45-06.548Z.html
147150

docker/Caddyfile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,16 @@
88
max_threads auto # Keep stable, no dynamic scaling
99

1010
worker {
11+
watch
12+
1113
file ./public/index.php
1214
num 16 # 2 workers per CPU core (8 cores * 2) - optimal balance
1315
}
16+
17+
php_ini {
18+
opcache.enable 0
19+
opcache.validate_timestamps 1
20+
}
1421
}
1522
}
1623

docker/symfony.prod.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ opcache.enable=1
4141
opcache.enable_cli=1
4242

4343
opcache.revalidate_freq=0
44-
opcache.validate_timestamps=1
44+
opcache.validate_timestamps=0
4545

4646
; find . -type f -name "*.php" | wc -l
4747
opcache.max_accelerated_files=16087
325 KB
Loading
330 KB
Loading
365 KB
Loading
187 KB
Loading
271 KB
Loading
205 KB
Loading

0 commit comments

Comments
 (0)