728x90
반응형

{Scouter install directory}  /server/conf/scouter.conf

Xlog 보관기간, Purge 설정
# 로그 보존 기간

log_keep_days=90

# Disk 사용률이 80%를 넘으면 오래된 로그를 삭제한다

mgr_purge_disk_usage_pct=80

 

Scouter Agent (AP 서버)

{Scouter install directory}  /agent.java/conf/scouter.conf

 

Xlog Sampling 설정 - 4단계로 나누어 Xlog의 Profile 로그를 Sampling 해서 남길 수 있다.
Sampling 의 %는, Step 마다 설정할 수 있습니다.
Sampling 설정해도, Xlog의 chart에는 도트가 표시됩니다.(Profile 로그만 Sampling됩니다.)
이 서비스는 0.3초 미만의 PRC의 Xlog Profile 로그는 Disk에 남기지 않는 설정을 하여 AP 전체를 Scouter로 모니터링합니다
##### [XLog Sampling] #####
xlog_sampling_enabled=true
xlog_sampling_only_profile=true
xlog_sampling_step1_ms=300
xlog_sampling_step1_rate_pct=0
xlog_sampling_step2_ms=1000
xlog_sampling_step2_rate_pct=100
xlog_sampling_step3_ms=1000
xlog_sampling_step3_rate_pct=100
xlog_sampling_over_rate_pct=100

 

 

히스토리

 

해당 설정들보다 Scouter Server에 어딘가의 세션이 가득 남아서 그것이 Scouter Server 로그를 반복적으로 참조하다 보니 Read가 증가하고 폭주했던 기억이 있네요.

 

아까 xlog에 기록하는 횟수를 줄여봤어요.
30msec 이하로 설정
그래도 iowait이 내려가지 않았어요

728x90
300x250

'IT > Scouter' 카테고리의 다른 글

Scouter log 로테이션  (0) 2021.08.09
Scouter-Slack Alert 구성  (0) 2021.08.09
Scouter Agent 설치 및 설정  (0) 2021.08.09
Scouter 서버 설치·설정  (0) 2021.08.09
Scouter 데이터베이스 삭제 및 다시 시작  (0) 2021.08.09

+ Recent posts