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

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

by 조너선 슈나이더, 정병열
March 2022
Beginner to intermediate
348 pages
7h 5m
Korean
Hanbit Media, Inc.
Content preview from 자바 마이크로서비스를 활용한 SRE : 기업에서 신뢰할 수 있는 마이크로서비스를 위한 패턴
152
자바 마이크로서비스를 활용한
SRE
메트릭 데이터가 짝을 이루면 전혀 문제될 것이 없다. 메트릭이 비정상적인 상황을 경고하면
추적을 통해 심층적인 디버깅을 수행할 수 있다.
샘플링 전략은 샘플 선정 방식에 따라 몇 가지 기본적인 범주로 나뉜다.
3.4.1
전수 유지
모든 추적 데이터를 유지한다. 일부 조직은 이를 위해 엄청난 비용을 감수하기도 한다. 스프링
클라우드 슬루스는 [예제
3
-
5
]처럼 빈 정의를 이용해 전수 유지 샘플러를 설정한다.
예제
3-5
스프링 클라우드 슬루스의 샘플 유지 설정
@Bean
public Sampler defaultSampler() {
return Sampler.ALWAYS_SAMPLE;
}
3.4.2
비율 제한 샘플링
기본적으로 스프링 클라우드 슬루스는 매초 처음
10
개 샘플을 유지하고 이후의 추적 데이터는
확률적으로 다운샘플링한다. 이 임계 비율은 조절할 수 있다. 슬루스의 기본 샘플 정책은 비율
제한 샘플링이며 [예제
3
-
6
]처럼 프로퍼티로 설정할 수 있다.
예제
3-6
초당 최초
2
,
000
개 샘플을 유지하는 스프링 클라우스 슬루스 설정
spring.sleuth.sampler.rate: 2000
이 설정 뒤에 감춰진 논리적 추정은 비용 효율 면에서 손해를 보지 않는 합리적인 처리 비율이
존재한다는 것이다. 적정 비율을 결정하는 ...
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