살아가는 이유_EU
내가 살아가는 이유, 삶
살아가는 이유_EU
전체 방문자
오늘
어제
  • 삶 (159)
    • 이유's EATERY (16)
      • 맛집 (10)
      • 까페 (4)
      • 맛있는 Recipe (1)
    • 이유's LIFE (16)
      • 국내여행 (5)
      • 해외여행 (2)
      • 운동 (1)
      • 취업정보 (0)
      • 끄적끄적 (5)
      • 일기쟝 (3)
      • 세상 이야기 (0)
      • 결혼 준비 (0)
    • 이유's Programming (43)
      • JavaScript (6)
      • Java (7)
      • C++ (0)
      • DBMS (24)
      • Spring (3)
      • til (1)
      • HTTP (2)
    • 이유's REVIEW (13)
      • BOOK (6)
      • PROGRAM or MOVIE (5)
      • PRODUCT 제품리뷰 (2)
    • 이유's STUDY (31)
      • 수업 관련 (2)
      • IT 시사 (2)
      • IT NEWS (2)
      • IVIEW (0)
      • IOS 앱 만들기 (0)
      • 알고리즘 문제풀이 (23)
      • PM data literacy (2)
    • 이유's ENGLISH (13)
      • Writing about something! (12)
      • Feedback (1)
      • TIL (0)
    • 이유's DB 공부 (1)
      • MySQL DB (0)
      • Postgre (1)
    • Computer 공부 (17)
      • Backend question (10)
      • Clean architecture (2)
      • Operating system (2)
      • Network (3)
      • 항해 (0)

블로그 메뉴

  • 홈
  • EATERY's 맛집
  • CAFE 까페
  • Recipe 레시피
  • IT 공부
  • 방명록
  • 태그

공지사항

인기 글

태그

  • 묵리
  • 고메커피
  • 어게인마이라이프
  • React.memo
  • 고메동 카페
  • 용인추천
  • map 하는 법
  • 현명하게 리액트
  • 용인맛집
  • 아메리카토노
  • 맛집
  • 스쿤브레드
  • 인절미 티라미수
  • 스테이크
  • key 로 접근
  • 자세요정
  • 영어공부
  • 송계옥
  • 렌더링 수 줄이기
  • have something to do with뜻
  • have something to do with
  • 피지오필로소피
  • go hand in hand
  • 삼돈식탁
  • memoziation
  • Array로 접근
  • 파스타맛집
  • 용인까페
  • 흑임자 크림
  • 자바스크립트

최근 댓글

최근 글

티스토리

hELLO · Designed By 정상우.
살아가는 이유_EU

내가 살아가는 이유, 삶

이유's Programming/DBMS

database paraellel 관리

2025. 1. 15. 19:17
728x90
반응형

maxDop 이슈 해결 

-

MAXDOP often reduces duration for CPU-intensive queries. However, excessive parallelism can worsen other concurrent workload performance by starving other queries of CPU and worker thread resources. In extreme cases, excessive parallelism can consume all database or elastic pool resources, causing query timeouts, errors, and application outages.

  • -> excessive parallelism 도 문제가 많음.
  • When you see high CPU, is this application issue or backend Ops issue? If it's application issue, application team needs to tune the queries used by application or upgrade SLO. If it's Ops issue, SQL DB team needs to handle .

 

maxDOP(Maximum Degree of Parallelism)은 SQL Server에서 쿼리 실행 계획이 병렬 처리를 사용하는 방식을 제어하는 중요한 설정입니다. 잘못된 maxDOP 설정은 성능 저하, 자원 과다 사용, 응답 시간 증가 등의 문제를 야기할 수 있습니다. 이 이슈를 해결하려면 상황별로 적합한 접근법을 선택해야 합니다.

하지만 이럴 경우 이제 maxDop 을 하면 병렬 처리를 이제 설정하게 되면 다른 DB 의 이슈가 있을 수도 있으니 좀 신중하게 해야합니다.

 

높은 cpu 를 유발하는 쿼리가 존재했지만 이 경우에 parallel 의 설정인 maxDOP (Excessive parallel) 의 경우 신중해서 이제 적응을 해야한다. 

- 

 

 

MAXDOPBehavior

  • In Azure SQL Database, you can change the default MAXDOP value:
    • At the query level, using the MAXDOP query hint.
    • At the database level, using the MAXDOP database scoped configuration.
= 1 The database engine uses a single serial thread to execute queries. Parallel threads are not used.
> 1 The database engine sets the number of additional schedulers to be used by parallel threads to the MAXDOP value, or the total number of logical processors, whichever is smaller.
= 0 The database engine sets the number of additional schedulers to be used by parallel threads to the total number of logical processors or 64, whichever is smaller

 

728x90
반응형
저작자표시 비영리 변경금지 (새창열림)

'이유's Programming > DBMS' 카테고리의 다른 글

library cache - latch: cache buffers chains  (0) 2025.01.17
index 잘 타지 못하는 경우  (0) 2025.01.15
DBMS 의 구조를 파악해보자  (0) 2024.10.16
인덱스.. 그래서 어떻게 해야 효율적이야? (필터조건, 액세스 조건)  (0) 2024.10.16
인덱스 스캔의 효율적인 방식...?  (0) 2024.10.16
    '이유's Programming/DBMS' 카테고리의 다른 글
    • library cache - latch: cache buffers chains
    • index 잘 타지 못하는 경우
    • DBMS 의 구조를 파악해보자
    • 인덱스.. 그래서 어떻게 해야 효율적이야? (필터조건, 액세스 조건)
    살아가는 이유_EU
    살아가는 이유_EU
    안녕하세요. 초보개발자의 일상을 담은 블로그입니다.

    티스토리툴바