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

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

by 강재준
May 2017
Beginner to intermediate
400 pages
7h 33m
Korean
Hanbit Media, Inc.
Content preview from 코드로 인프라 관리하기: 효율적인 인프라 관리를 위한 자동화 방법
189
CHAPTER 8
서버를 업데이트하고 변경하는 패턴
애플리케이션을 배포할 때 서버 프로비저닝 스크립트는
SERVICE
_
ARTIFACT
_
URI
라는 환경
변수로 전달된
URI
에서 산출물을 내려받을 것이다. 그리고
SERVICEID
라는 사용자 계정이
소유하는 /
app
/
SERVICEID
디렉터리에 산출물의 내용을 추출할 것이다. 또한 환경별 구성
정보가 들어 있는
SERVICEID
-
env
.
yml
이라는 파일을 앞과 동일한 디렉터리에 만들 것이
다.
다음으로 프로비저닝 스크립트는 애플리케이션 시작에 필요한 초기화 작업을 하는
SERVICEID
-
setup
.
sh
스크립트를 실행한다. 마지막으로 /
etc
/
init
.
d
/
SERVICE
-
NAME
이라는 서비스 시작 스크립트를 만들어 활성화하며, 이 스크립트는
java
-
jar
/
app
/
SERVICEID
/
SERVICEID
-
VERSION
.
jar
server
라는 명령어로 애플리케이션을 실행한다.
개발자들은 이러한 표준에 따라 애플리케이션을 만들 수 있으며, 애플리케이션이 기존 인프
라 및 도구와 함께 원활하게 동작하리라고 확신할 수 있다.
8
.
4
.
5
트랜잭션 서버 업데이트
가능성 있는 또 다른 접근법은 트랜잭션 서버 업데이트다. 이를 위해서는 서버의 모든 패키지
를 지정된 버전으로 업데이트하는 작업을 원자성
atomic
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