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

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

by 조너선 슈나이더, 정병열
March 2022
Beginner to intermediate
348 pages
7h 5m
Korean
Hanbit Media, Inc.
Content preview from 자바 마이크로서비스를 활용한 SRE : 기업에서 신뢰할 수 있는 마이크로서비스를 위한 패턴
139
3
장
관찰 가능성과 디버깅
3.1.1
로그
로그는 모든 소프트웨어 스택에 존재한다. 또한 최종적인 저장 위치나 구조에 관계없이 공통적
으로 보이는 뚜렷한 특징이 있다.
로그의 양은 시스템 처리량에 비례한다. 로그로 측정하는 코드 실행 경로가 많을수록 더 많은
로그 데이터가 발행된다. 로그 데이터를 샘플링한다 해도 이 비례 관계는 변함이 없다.
로그 콘텍스트 영역은 하나의 이벤트에 해당한다. 로그 데이터는 특정 상호작용의 실행 콘텍스
트를 제공한다. 개별 로그 이벤트의 데이터를 집계해 시스템의 전반적인 성능을 추론할 때 로
그 집계는 사실상 메트릭의 역할을 한다.
로그의 존재 의의는 명백히 디버깅에 있다. 정교한 로그 분석 패키지는 로그 집계 과정을 거쳐
시스템의 가용성을 도출한다. 로그 데이터를 유지하고, 지속적으로 집계하고, 작업 페이로드를
할당하면 그에 상응하는 비용이 발생한다.
3.1.2
분산 추적
원격 추적 로그는 실행 (이벤트 ) 단위로 기록하지만 한편으로 시스템 각 부분에 일어나는 개별
이벤트를 인과적으로 연결하는 특성이 있다. 분산 추적 시스템은 사용자와 시스템 사이의 상호
작용을 시작점부터 끝점까지 관찰한다. 따라서 특정 요청이 성능 저하를 발생시키면 엔드투엔
드 추적 관찰을 통해 시스템의 어느 부분이 저하되었는지 확인할 수 있다.
원격 추적은 일반적인 로그보다 샘플링 비율이 더 높다. 그러나 추적 데이터 역시 로그 데이터
처럼 시스템 처리량에 비례해 저장 용량이 늘어난다.
기존 시스템이 구축된 상태에서 추적 기능을 추가하기 ...
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