Skip to Content
코드로 인프라 관리하기: 효율적인 인프라 관리를 위한 자동화 방법
book

코드로 인프라 관리하기: 효율적인 인프라 관리를 위한 자동화 방법

by 강재준
May 2017
Beginner to intermediate
400 pages
7h 33m
Korean
Hanbit Media, Inc.
Content preview from 코드로 인프라 관리하기: 효율적인 인프라 관리를 위한 자동화 방법
165
CHAPTER 7
서버 템플릿을 관리하는 패턴
EBS
Elastic
Block
Store
기반의
AMI
이미지처럼 디스크 볼륨으로 마운트할 수 있는 원본 이미지를
사용하는 것이다. 동작하는 서버에 원본 이미지의 사본을 디스크 볼륨으로 마운트한 후 해당
이미지에 있는 파일들을 수정할 수 있다. 이 과정에서 패키지 관리 도구나 스크립트가 해당 이
미지의 경로를 제대로 인식할 수 있도록
chroot
를 사용하기도 한다.
디스크 볼륨에 필요한 수정이 완료되면 해당 볼륨은 마운트 해제된 후 서버 템플릿으로 사용하
기에 적절한 서버 이미지로 변환된다.
이 절차는 부팅 후 수정하는 것보다 훨씬 빠르며 불변 서버를 사용하는 팀처럼 템플릿을 자주
만드는 경우에 특히 유용하다.
또 다른 장점은 템플릿 서버 이미지가 부팅되어 실행되는 짧은 시간 동안 발생할 수 있는 오염
이 거의 또는 전혀 없다는 점이다. 예를 들어 템플릿을 부팅해 수정하는 동안에는 필연적으로
시스템 로그가 생성될 수밖에 없으며, 임시 파일 등의 찌꺼기
3
가 남을 수도 있다.
이 방식은 좀 더 복잡할 수 있다는 단점도 있다. 동작 중인 서버에서 사용하는 것과 동일한 서
버 구성 도구와 정의 파일을 사용하려면 어느 정도의 추가 작업이 필요할 수도 있다. 또한 모든
인프라 플랫폼이 서버 이미지 볼륨을 다른 서버에 ...
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

스파크를 이용한 자연어 처리 : 대규모 텍스트를 다루는 가장 효율적인 딥러닝을 만나다

스파크를 이용한 자연어 처리 : 대규모 텍스트를 다루는 가장 효율적인 딥러닝을 만나다

이창현, 앨릭스 토머스
클라우드 엔지니어를 위한 97가지 조언

클라우드 엔지니어를 위한 97가지 조언

Emily Freeman, Nathen Harvey, 정기훈(Jung Ki Hun)

Publisher Resources

ISBN: 9788968483431