본문 바로가기

분류 전체보기324

사케동 간장소스 재료를 최대한 간단하게 하고 내 입맛에 맞게 조정한것입니다. - 재료 양에 비례해서 비율로 준비 -> 물 : 간장 : 설탕 : 맛술 = 2 : 1.7 : 0.5 : 0.5 양파 감자 -> 칼집내서 표면적을 크게 - 절차 물, 간장, 설탕, 맛술에 채썬 양파, 감자를 넣고 양파가 투명해질때까지 강불로 조진다. 양파가 투명해지면 중간불로 조진다. 감자는 건져내서 버린다. 2023. 10. 29.
Circuit Breaker 출처: https://learn.microsoft.com/en-us/azure/architecture/patterns/circuit-breaker Circuit Breaker pattern - Azure Architecture Center Handle faults that might take a variable amount of time to fix when connecting to a remote service or resource. learn.microsoft.com - 개요 Circuit Breaker는 원격 서비스나 자원에 접근할 때 오류가 발생하는 경우 복구에 어느 정도 시간이 걸리는지 알 수 없는데, 이런 경우를 다루는데 유용한 패턴이다. Application의 안정성과 탄력성을 향상 시킨다... 2023. 10. 27.
Docker compose - Tutorials - 출처: https://docs.docker.com/compose/gettingstarted/ Try Docker Compose Check out this tutorial on how to use Docker Compose from defining application dependencies to experimenting with commands. docs.docker.com - 목적 Docker Compose의 핵심 개념을 알아보기 위해 간단한 Python web app을 구성해본다. Docker Engine과 Docker Compose가 standalone binaries로 설치되어 있거나 Docker Desktop이 설치되어 있어야 한다. - Step 1: app 의존성 정의 1. project를.. 2023. 10. 12.
Docker compose - Overview and Feature - 출처: https://docs.docker.com/compose/ - 출처: https://docs.docker.com/compose/features-uses/ Docker Compose overview Learn how to use Docker Compose to define and run multi-container applications with this detailed introduction to the tool. docs.docker.com - Overview Compose는 multi container Docker application을 저의하고 실행하기 위한 도구이다. YAML file을 이용하여 application service를 설정한다. 그리고 단일 명령어로 설정한 모든 servi.. 2023. 10. 12.
Cloud Native의 구성요소 - 출처: 클라우드 네이티브 GO - 매튜 A. 티트뮤스 지음 - 확장성 (Scaleability) 요청량이 급격하게 증가했을 때 대응하는 시스템의 능력을 말한다. 수직적 확장(Vertical scaling, Scale up): 시스템의 할당된 하드웨어 자원을 늘리는것을 말한다. 예를 들어 DB 서버의 경우 성능 향상을 위해 메모리를 늘린다면 이는 수직적 확장에 해당한다. 직관적이고 관리가 쉽지만 요청량이 아주 커지면 한계점이 존재한다. 수평적 확장(Horizontal scaling, Scale out: 인스턴스를 추가하는 방식을 말한다. 늘어난 요청량을 처리하기 위해 장비 Node를 늘린다면 이는 수평적 확장에 해당한다. 관리가 어렵지만 서비스 규모가 아주 커진다면 수평적 확장은 피할 수 없다. 수평적.. 2023. 10. 10.
Swarm - routing mesh - 출처: https://docs.docker.com/engine/swarm/ingress/#publish-a-port-for-a-service Use swarm mode routing mesh Use the routing mesh to publish services externally to a swarm docs.docker.com - 개요 Docker Engine swarm mode는 외부 리소스가 사용할 수 있도록 service port를 노출하는 기능을 제공한다. 모든 node는 ingress routing mesh 에 참여한다. routing mesh는 node에서 수행중인 task가 없더라도 다른 node에서 실행중인 task의 service port로 연결해준다. routing mesh는 n.. 2023. 10. 8.
Swarm - drain node - 출처: https://docs.docker.com/engine/swarm/swarm-tutorial/drain-node/ Drain a node on the swarm Drain nodes on the swarm docs.docker.com - Drain 의 필요성 이전까지의 실습은 모든 node가 active 상태라고 가정하고 진행했다. swarm manager는 task를 active 상태인 node에 할당하므로 모든 node가 task 를 수신할 수 있었다. 하지만 실제 운영 환경에서는 특정 node가 유지보수 상태에 들어갈 수 있으므로 해당 node를 drain 상태로 유지해야하는 경우가 생긴다. drain 상태가 되면 swarm manager로 부터 더이상 새로운 task를 할당받지 않는다... 2023. 10. 2.
Swarm - Rolling update - 출처: https://docs.docker.com/engine/swarm/swarm-tutorial/rolling-update/ Apply rolling updates to a service Apply rolling updates to a service on the swarm docs.docker.com - Deploy test service, Redis 3.0.6 Redis 3.0.6 컨테이너 tag 기반의 서비스를 배포하고, 이를 rolling update 방식으로 Redis 3.0.7 로 갱신해보자. [ec2-user@ip-172-31-36-249 ~]$ docker service create --replicas 3 --name redis --update-delay 10s redis:3.0.6 .. 2023. 10. 2.
Swarm mode tutorial - 출처: https://docs.docker.com/engine/swarm/swarm-tutorial/ - 출처: https://linux.how2shout.com/how-to-install-docker-on-amazon-linux-2023/ Getting started with swarm mode Getting Started tutorial for Docker Engine swarm mode docs.docker.com - Create Amazon EC2 instances Swarm mode tutorial 에서는 실습에서는 통신가능한 3대의 host 가 있다고 가정한다. 기본적인 실습은 1대의 host로도 가능하지만 일부 실습(ex - node 관련 부분)은 확인할 수 없다. 하지만 3대의 기기를 .. 2023. 10. 2.
Swarm mode overview and concepts - 출처: https://docs.docker.com/engine/swarm/ Swarm mode overview Docker Engine swarm mode overview docs.docker.com 개요 Docker를 swarm mode로 사용하기 위해서 docker를 설치하면 된다. Docker는 swarm 이라고 하는 Docker engine 클러스터를 기본적으로 관리하는 swarm mode가 포함하고 있다. Docker CLI를 사용하여 swarm을 생성하고, app 서비스를 swarm에 배포하며 swarm을 관리할 수 있다. 주요 기능 Docker Engine과 통합된 cluster 관리: App service 를 배포할 수 있는 Docker Engine swarm을 생성하기 위해 Docke.. 2023. 9. 17.