Skip to content

Commit

Permalink
46409 nginx 5000 workers, 30 db con, app .4GB, db 1.8GB
Browse files Browse the repository at this point in the history
---- Requests ------------------------------------------------------------------
> Global                                                   (OK=114654 KO=169   )
> criação                                                  (OK=54634  KO=0     )
> busca inválida                                           (OK=4190   KO=0     )
> busca válida                                             (OK=9590   KO=0     )
> consulta                                                 (OK=46240  KO=169   )
---- Errors --------------------------------------------------------------------
> status.find.in([200, 209], 304), found 404                        169 (100,0%)

Simulation RinhaBackendSimulation completed in 211 seconds
================================================================================
---- Global Information --------------------------------------------------------
> request count                                     114823 (OK=114654 KO=169   )
> min response time                                      0 (OK=0      KO=5000  )
> max response time                                   6225 (OK=6225   KO=5273  )
> mean response time                                   490 (OK=483    KO=5081  )
> std deviation                                       1048 (OK=1034   KO=43    )
> response time 50th percentile                         52 (OK=51     KO=5083  )
> response time 75th percentile                        247 (OK=244    KO=5091  )
> response time 95th percentile                       3306 (OK=3280   KO=5176  )
> response time 99th percentile                       4571 (OK=4477   KO=5194  )
> mean requests/sec                                541.618 (OK=540.821 KO=0.797 )
---- Response Time Distribution ------------------------------------------------
> t < 800 ms                                         95653 ( 83%)
> 800 ms <= t < 1200 ms                               3494 (  3%)
> t >= 1200 ms                                       15507 ( 14%)
> failed                                               169 (  0%)
---- Errors --------------------------------------------------------------------
> status.find.in([200, 209], 304), found 404                        169 (100,0%)
================================================================================

* Connection #0 to host localhost left intact
46409
  • Loading branch information
tivrfoa committed Sep 22, 2023
1 parent 275d50b commit 640b698
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,23 +6,23 @@ services:
environment:
HTTP_PORT: 8080
DB_HOST: localhost
MAX_CONNECTIONS: 10
MAX_CONNECTIONS: 30
ACQUIRE_TIMEOUT: 5
depends_on:
- db
deploy:
resources:
limits:
cpus: '0.15'
memory: '0.3GB'
memory: '0.4GB'
network_mode: "host"

api02:
<<: *api
environment:
HTTP_PORT: 8081
DB_HOST: localhost
MAX_CONNECTIONS: 10
MAX_CONNECTIONS: 30
ACQUIRE_TIMEOUT: 5

nginx: # Load Balancer
Expand Down Expand Up @@ -54,4 +54,4 @@ services:
resources:
limits:
cpus: '1'
memory: '2GB'
memory: '1.8GB'
4 changes: 2 additions & 2 deletions nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ worker_processes auto;

events {
use epoll;
worker_connections 10000;
worker_connections 5000;
}
http {
access_log off;
Expand All @@ -11,7 +11,7 @@ http {
server localhost:8080;
server localhost:8081;
keepalive 320;
keepalive_requests 10000;
keepalive_requests 5000;
}
server {
listen 9999;
Expand Down

0 comments on commit 640b698

Please sign in to comment.