Skip to content

Commit

Permalink
fix: connection limit 제거
Browse files Browse the repository at this point in the history
  • Loading branch information
yunuo46 committed Dec 12, 2023
1 parent 6ade43a commit 995b2d3
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 5 deletions.
2 changes: 1 addition & 1 deletion back/k6-test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export const options = {
contacts: {
executor: 'constant-arrival-rate', // https://k6.io/docs/using-k6/scenarios/executors/constant-arrival-rate/
duration: '30s',
rate: 500,
rate: 600,
timeUnit: '1s',
preAllocatedVUs: 1000,
maxVUs: 1000
Expand Down
22 changes: 22 additions & 0 deletions back/k6-test/user-test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import http from 'k6/http';
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: 500,
timeUnit: '1s',
preAllocatedVUs: 1000,
maxVUs: 1000
}
}
};

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

0 comments on commit 995b2d3

Please sign in to comment.