Skip to content

Commit

Permalink
feat: typerom connectionLimit 설정
Browse files Browse the repository at this point in the history
  • Loading branch information
yunuo46 committed Dec 12, 2023
1 parent 669b741 commit 6ade43a
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 37 deletions.
16 changes: 8 additions & 8 deletions back/k6-test/test.js
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
import http from 'k6/http';
import { check, sleep } from 'k6';
import { check } from 'k6';

export const options = {
scenarios: {
contacts: {
executor: 'constant-arrival-rate', // https://k6.io/docs/using-k6/scenarios/executors/constant-arrival-rate/
duration: '30s',
rate: 400,
rate: 500,
timeUnit: '1s',
preAllocatedVUs: 1000,
maxVUs: 1000,
maxVUs: 1000
}
},
}
};

export default function() {
const res = http.get('https://www.mysnowball.kr/api/snowball/73');
check(res, { 'status is 200': (r) => r.status == 200 });
}
export default function () {
const res = http.get('https://www.mysnowball.kr/api/snowball/1');
check(res, { 'status is 200': r => r.status == 200 });
}
5 changes: 4 additions & 1 deletion back/src/config/orm-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ const typeOrmConfig: TypeOrmModuleOptions = {
database: process.env.DATABASE_SCHEMA,
entities: [process.env.ENTITY_PATH],
synchronize: false,
logging: true
logging: true,
extra: {
connectionLimit: 30
}
};
export default typeOrmConfig;
28 changes: 0 additions & 28 deletions back/tests/test.js

This file was deleted.

0 comments on commit 6ade43a

Please sign in to comment.