호스트당 다중 서비스 인스턴스
여러 서비스 인스턴스를 한 머신/호스트에 함께 실행하고 프로세스·설정·리소스 예산을 가능한 범위에서 격리하는 서비스 배포 패턴.
구조와 동작 원리
구성 요소와 배치 원칙 (조사 기반 개념 설명 · 연결 순서나 토폴로지는 특정하지 않음)
호스트, 서비스 인스턴스, 프로세스, 설정, 리소스 예산(제한), 배치 정책이 주요 구성·관리 대상.
서비스 인스턴스는 상태를 보관하지 않고 데이터는 외부 DB·캐시 등 전용 저장소로 분리하는 배치가 원칙.
소규모 플릿이 서비스 복제본마다 유휴 전용 머신을 둘 수 없을 때 호스트 공유로 자원 활용률을 높이는 문제를 해결.
기대 효과
호스트 공유로 자원 활용률을 높이고, 프로세스 분리로 서비스 간 충돌 위험을 줄일 수 있다.
트레이드오프
리소스 제한·배치 정책이 없으면 noisy neighbor와 호스트 장애의 blast radius가 커지고 운영 복잡성이 증가.
리소스 제한과 배치 정책이 없으면 한 프로세스의 과부하나 호스트 장애가 여러 서비스에 전파되므로 주의.
운영 및 적용 가이드
종합 설명 · 원문 인용으로 검증된 항목과 구분됩니다. 실제 적용 전 확인이 필요합니다.
언제 사용하는가
서비스 복제본마다 전용 호스트를 둘 만큼 비용·자원이 넉넉하지 않고, 여러 서비스의 CPU·메모리 요구가 유사해 호스트 공유로 활용률을 높이려는 경우에 적합하다.
시나리오
중견 이커머스가 20여 개 마이크로서비스를 운영하며 피크 시간 주문·상품 조회 트래픽이 평시의 3배로 증가하지만 서비스 복제본마다 전용 호스트를 둘 예산은 없다. 각 서비스는 무상태로 설계하고 데이터는 외부 DB·캐시에 두며, 쿠버네티스 노드 풀에서 여러 Pod를 공유 배치한다. 요구사항은 피크 자동 확장, 서비스별 CPU·메모리 상한, 동일 노드 장애 시 5분 내 복구다.
배치 원칙
- 서비스 인스턴스는 호스트·노드에 공유 배치하되 프로세스·컨테이너 단위로 격리
- 상태 데이터는 외부 DB·캐시에 두고 인스턴스는 무상태 유지
- 서비스별 CPU·메모리 requests/limits와 우선순위 설정
- 동일 서비스 복제본은 anti-affinity·topology spread로 다른 노드에 분산
- 포트·설정·버전은 배포 단위별로 분리
온프레미스
물리·가상 호스트 용량을 계획하고 cgroup/리소스 한도, 포트·설정 충돌 방지, 헬스체크·모니터링, 장애 호스트의 인스턴스 재배치 절차를 운영한다.
클라우드
관리형 VM·컨테이너 환경에서 노드를 공유하되 requests/limits, 오토스케일링, 다중 AZ 분산, 호스트 장애 시 재스케줄링과 롤링 배포를 적용한다.
Kubernetes
Deployment replicas/Pod를 노드에 스케줄하고 requests/limits·QoS, anti-affinity/topology spread, liveness/readiness probe, HPA/PDB, Service 기반 접근을 구성한다.
장애 대응
대표 장애는 noisy neighbor 자원 고갈, 호스트·노드 장애로 동일 노드의 여러 서비스 영향, 포트·설정 충돌이다. 알림·프로브로 영향 범위를 확인하고 영향 인스턴스를 격리·재시작·재배치하며, 노드는 cordon/drain 후 복제본을 복구하고 리소스 한도·배치 정책을 재조정한 뒤 사후 분석한다.
14개 관점별 근거
조사 당시 근거 보유 여부입니다. 출처의 정확성과 최신성을 별도로 판단하세요.
정의·개요근거 있음
여러 서비스 인스턴스를 한 머신/호스트에 함께 실행하고 프로세스·설정·리소스 예산을 가능한 범위에서 격리하는 서비스 배포 패턴.
Run several service instances on one machine. Isolate their processes, configuration, and resource budgets해결하는 문제근거 있음
소규모 플릿이 서비스 복제본마다 유휴 전용 머신을 둘 수 없을 때 호스트 공유로 자원 활용률을 높이는 문제를 해결.
A small fleet cannot afford one idle machine per service replica.주요 구성 컴포넌트·리소스근거 있음
호스트, 서비스 인스턴스, 프로세스, 설정, 리소스 예산(제한), 배치 정책이 주요 구성·관리 대상.
Run several service instances on one machine. Isolate their processes, configuration, and resource budgets데이터·에셋 배치 원칙근거 있음
서비스 인스턴스는 상태를 보관하지 않고 데이터는 외부 DB·캐시 등 전용 저장소로 분리하는 배치가 원칙.
This data should be pushed into external services like disk bound database servers or memory bound caches.대표 유스케이스근거 있음
호스트 자원 활용률이 중요하고 여러 서비스의 자원 요구가 서로 호환될 때 적합한 유스케이스.
Sharing hosts can improve utilization when workloads have compatible resource needs and urgency.시나리오 예시근거 있음
소규모 플릿이 서비스 복제본마다 전용 유휴 머신을 둘 수 없어 여러 인스턴스를 한 호스트에 공유 배치하는 시나리오.
A small fleet cannot afford one idle machine per service replica.부적합 상황·주의근거 있음
리소스 제한과 배치 정책이 없으면 한 프로세스의 과부하나 호스트 장애가 여러 서비스에 전파되므로 주의.
Without explicit resource limits and placement policy, a busy process or broken host affects several services.온프레미스 관점(개발·배포·운영)근거 있음
온프레미스에서는 물리·가상 호스트 용량을 공유 배치하고 프로세스·설정·리소스 예산을 격리하며 배포·운영.
Run several service instances on one machine. Isolate their processes, configuration, and resource budgets클라우드 관점(개발·배포·운영)근거 있음
클라우드에서는 노드/호스트를 공유하되 요청·제한과 수평 확장으로 서비스별 격리와 용량을 관리.
All containers that you put into a pod run in a shared context, which means that they share the virtual or physical machine.Kubernetes 관점(개발·배포·운영)근거 있음
Kubernetes에서는 Deployment replica/Pod가 노드에 스케줄되며 requests/limits·affinity·probe로 호스트 공유를 통제.
Scaling out a Deployment will ensure new Pods are created and scheduled to Nodes with available resources.장애 대응 관점근거 있음
호스트 과부하·장애가 동일 호스트의 여러 서비스에 영향을 주므로 프로브·모니터링, 격리, 재배치·재시작 절차가 필요.
Without explicit resource limits and placement policy, a busy process or broken host affects several services.장점근거 있음
호스트 공유로 자원 활용률을 높이고, 프로세스 분리로 서비스 간 충돌 위험을 줄일 수 있다.
Sharing hosts can improve utilization when workloads have compatible resource needs and urgency.단점·트레이드오프근거 있음
리소스 제한·배치 정책이 없으면 noisy neighbor와 호스트 장애의 blast radius가 커지고 운영 복잡성이 증가.
Without explicit resource limits and placement policy, a busy process or broken host affects several services.대표 기술·도구근거 있음
대표 구현은 Kubernetes Deployment/Pod와 같은 컨테이너 오케스트레이션, 서비스별 requests/limits, 컨테이너 런타임.
You can create from the start a Deployment with multiple instances using the --replicas parameter추가 참고 문헌 (20)
- Pattern: Multiple service instances per host ↗
- Choosing a Microservices Deployment Strategy | F5 ↗
- Microservices:How To Make Your Application Scale ↗
- Pattern: Multiple service instances per host | Zhicheng Zhong ↗
- Building for Scalability: Microservice Deployment Patterns | by Roman Glushach | Medium ↗
- Pattern: Service Instance per VM ↗
- Multiple Service Instance Per Host Deployment Design Pattern for Microservices Explained ↗
- Best Practices for Building a Microservice Architecture ↗
- Running Multiple Instances of Your App | Kubernetes ↗
- Planning app deployments ↗
- Reference Architecture: GKE Enterprise hybrid environment - part 2 - Dec '24 - Google Docs ↗
- Use Azure Kubernetes Service (AKS) in a Multitenant Solution - Azure Architecture Center | Microsoft Learn ↗
- Connecting Applications with Services | Kubernetes ↗
- Production environment | Kubernetes ↗
- Architecture Strategies for Designing for Redundancy - Microsoft Azure Well-Architected Framework | Microsoft Learn ↗
- A Consolidated Deployment Edition of a Microservice Core-Banking Platform:Composing Services by Reference into Three Hosts ↗
- Istio / Deployment Models ↗
- Redundancy, Replication, and Backup | Microsoft Learn ↗
- Uber’s Failover Architecture: Reconciling Reliability and Efficiency in Hyperscale Microservice Infrastructure ↗
- High Availability for Multitier AKS Applications - Azure Architecture Center | Microsoft Learn ↗