O0oO0Oo / netty-reservation-service

트랜잭션, 동시성을 공부하기 위한 토이 프로젝트입니다.
0 stars 0 forks source link

feat: optimize thread pool size #39

Closed O0oO0Oo closed 2 weeks ago

O0oO0Oo commented 2 weeks ago

이슈 개요

동시에 10,000 개의 요청이 들어왔을때를 기준으로 삼는다. 프로파일러의 thread time, jmeter 의 throughput 을 보며 스레드 풀 최적화

재현 단계

스레드 풀의 종류

boss-thread-group - 3개

4개

image

3개

image

2개

image 2개로 설정할 경우, 실행 시간이 항상 한쪽으로 쏠린다.

worker-thread-group - 10개

16개

image

10개

image

8개

image

async-executor-thread-group, async-response-conversion-thread-group - 6개/2개

8개, 4개 thread time, memory image

6개, 2개 image

saga-thread-group - 4개

2개 image

4개 image

추가 정보