Skip to Content
자바 마이크로서비스를 활용한 SRE : 기업에서 신뢰할 수 있는 마이크로서비스를 위한 패턴
book

자바 마이크로서비스를 활용한 SRE : 기업에서 신뢰할 수 있는 마이크로서비스를 위한 패턴

by 조너선 슈나이더, 정병열
March 2022
Beginner to intermediate
348 pages
7h 5m
Korean
Hanbit Media, Inc.
Content preview from 자바 마이크로서비스를 활용한 SRE : 기업에서 신뢰할 수 있는 마이크로서비스를 위한 패턴
155
3
장
관찰 가능성과 디버깅
3.4.5
샘플링이 이상 탐지에 미치는 영향
확률 샘플링이 이상 탐지에 미치는 영향을 구체적으로 알아보자. 사실 모든 샘플링 전략에 비
슷한 효과가 발생하지만 여기서는 확률 샘플링을 통해 구체화시켜볼 것이다.
샘플링 비율이
100
%가 아닌 이상, 탐지 시스템은 현실을 정확하게 반영하지 못할 가능성이 늘
있다. 왜 그런지 알아보기 위해 가상의 샘플링 전략을 세워보자. 각 요청을 시작할 때 난수를
생성하고 이를 기반으로 추적 보존 여부를 결정한다 (구글 대퍼가 이렇게 한다 ). 요청 중
1
%를
샘플링한다고 가정하면
99
번째 백분위를 초과한 데이터도
1
% 확률로 살아남는다. 전체 요청
을
100
%로 볼 때 이러한 데이터를 하나라도 관찰하게 될 확률은
0
.
01
%다. 초당
1
,
000
개 요청
중
10
개 이상 데이터가 존재하더라도 결과적으로 관찰되는 것은
5
분당 한 개 정도에 불과할
것이다. 수식으로 표현하면

1 0.99 *100%
N
가 되고 그래프로 나타내면 [그림
3
-
4
]가
된다.
그림
3-4
시간 경과에 따른 이상 데이터 발견 가능성
99
번째 백분위를 초과하는 데이터는 [그림
4
-
20
]에 보이듯 실제로 상당히 많다. 허용 범위가
99
.
9
분위 정도로 매우 높고 이상 데이터가 초당 한 건이라면 관측되기까지 한 시간 이상 걸리
기도 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

처음 시작하는 파이썬: 파이썬 패키지를 활용한 모던 컴퓨팅 입문

처음 시작하는 파이썬: 파이썬 패키지를 활용한 모던 컴퓨팅 입문

최길우, 빌 루바노빅

Publisher Resources

ISBN: 9791162245286