Skip to content

Commit

Permalink
Nginx experiment
Browse files Browse the repository at this point in the history
  • Loading branch information
GISRedeDev committed Jan 8, 2025
1 parent 104047d commit c81e4ca
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
6 changes: 3 additions & 3 deletions api/tests/stress/k6-script-heavy.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ export const options = {
// { duration: '10s', target: 0 }, // ramp down to 0 users over 10 seconds
// ],
stages: [
{ duration: '5s', target: 10 }, // ramp up to 5 users over 5 seconds
{ duration: '10s', target: 10 }, // hold at 10 users for 5 seconds
{ duration: '5s', target: 0 }, // ramp down to 0 users over 5 seconds
{ duration: '2s', target: 1 }, // ramp up to 5 users over 5 seconds
{ duration: '2s', target: 1 }, // hold at 10 users for 5 seconds
{ duration: '2s', target: 0 }, // ramp down to 0 users over 5 seconds
],
thresholds: {
http_req_duration: ['p(95)<20000'], // 95% of requests must complete below 2 seconds
Expand Down
6 changes: 3 additions & 3 deletions api/tests/stress/k6-script.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ export const options = {
//vus: 5, // number of virtual users
//duration: '30s', // duration of the test
stages: [
{ duration: '20s', target: 10 }, // ramp up to 50 users over 20 seconds
{ duration: '120s', target: 10 }, // hold at 50 users for 30 seconds
{ duration: '20s', target: 0 }, // ramp down to 0 users over 10 seconds
{ duration: '2s', target: 1 }, // ramp up to 50 users over 20 seconds
{ duration: '2s', target: 1 }, // hold at 50 users for 30 seconds
{ duration: '2s', target: 0 }, // ramp down to 0 users over 10 seconds
],
// stages: [
// { duration: '5s', target: 5 }, // ramp up to 5 users over 5 seconds
Expand Down
2 changes: 2 additions & 0 deletions www/conf.d/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ server {
root /var/www/public_html;
index index.html;
proxy_read_timeout 2000s;
proxy_connect_timeout 75s;
proxy_max_temp_file_size 4096m;
proxy_send_timeout 2000s;
send_timeout 2000s;
keepalive_timeout 2000s;
Expand Down

0 comments on commit c81e4ca

Please sign in to comment.