SlideShare a Scribd company logo
1 of 9
Download to read offline
Trần Hữu Cường, Nguyễn Văn Thường Monitor and Load Balancing Hà Nội, 19/07/2015 1 / 9
Content
1 Start with Simple Webapp
2 Monitor docker with cAdvisor + InfluxDB + Grafana
3 Load balancing with Mesos + Marathon + Nginx
4 Autoscaling (coming soon, join us)
Trần Hữu Cường, Nguyễn Văn Thường Monitor and Load Balancing Hà Nội, 19/07/2015 2 / 9
Start with Simple Webap
docker-compose.yml
web1:
image: test/counter
ports:
- "81:5000"
links:
- redis:redis
redis:
image: redis
Access: http://127.0.0.1:81/
Trần Hữu Cường, Nguyễn Văn Thường Monitor and Load Balancing Hà Nội, 19/07/2015 3 / 9
Hệ thống monitor
Cần các thành phần:
• App agent (sensor): thu thập thông tin hệ thống, log và gửi đến bộ
phận ghi nhận event.
• Ghi nhận event: nhận các event từ agent và ghi vào database.
• Database event: chuyên dụng, được thiết kế để tối ưu hóa việc lưu
trữ dữ liệu event theo thời gian.
• Bộ phận tổng hợp, visualization: aggregate, trực quan hóa dữ liệu
event.
Trần Hữu Cường, Nguyễn Văn Thường Monitor and Load Balancing Hà Nội, 19/07/2015 4 / 9
Monitor docker
• cAdvisor: thu thập metrics docker.
• InfluxDB: open-source distributed time series database.
• Grafana: rich metrics dashboard and graph editor.
Access: http://monitor.coclab.lan:3000/
Trần Hữu Cường, Nguyễn Văn Thường Monitor and Load Balancing Hà Nội, 19/07/2015 5 / 9
Load balancing with Mesos + Marathon + Nginx
Experiment:
1 Start Mesos and Marathon.
2 Start Nginx.
Trần Hữu Cường, Nguyễn Văn Thường Monitor and Load Balancing Hà Nội, 19/07/2015 6 / 9
Autoscaling (coming soon, join us)
Architecture:
1 Reporters: lấy thông tin trạng thái hoạt động.
2 Deciders: xử lí thông tin, ra quyết định.
3 Scalers: thực hiện lệnh scale.
Trần Hữu Cường, Nguyễn Văn Thường Monitor and Load Balancing Hà Nội, 19/07/2015 7 / 9
References
1 https://www.brianchristner.io/how-to-setup-docker-monitoring/
2 https://spof.io/blog/2015/06/23/mesos-sandbox-using-docker-
compose/
Trần Hữu Cường, Nguyễn Văn Thường Monitor and Load Balancing Hà Nội, 19/07/2015 8 / 9
Thank you!
• http://www.meetup.com/Docker-Hanoi/
• Trần Hữu Cường: tranhuucuong91@gmail.com
• Nguyễn Văn Thường: thuongnvbk@gmail.com
Trần Hữu Cường, Nguyễn Văn Thường Monitor and Load Balancing Hà Nội, 19/07/2015 9 / 9

More Related Content

Similar to DockerDay2015: Build and monitor a load balanced web application with Docker and Nginx

Mai kim thi bao cao thuc tap tuan 1
Mai kim thi   bao cao thuc tap tuan 1Mai kim thi   bao cao thuc tap tuan 1
Mai kim thi bao cao thuc tap tuan 1Tehichan Mai
 
Báo cáo thực tập tuần 1 tại athena đàm văn sáng
Báo cáo thực tập tuần 1 tại athena   đàm văn sángBáo cáo thực tập tuần 1 tại athena   đàm văn sáng
Báo cáo thực tập tuần 1 tại athena đàm văn sángĐàm Văn Sáng
 
Bao cao thuc tap mau
Bao cao thuc tap mauBao cao thuc tap mau
Bao cao thuc tap mauHuy Bach
 
Báo cáo thực tập Tuần 1
Báo cáo thực tập Tuần 1Báo cáo thực tập Tuần 1
Báo cáo thực tập Tuần 1Nat Galacticos
 
Bao cao thuc tap tuan 1
Bao cao thuc tap tuan 1Bao cao thuc tap tuan 1
Bao cao thuc tap tuan 1TranQuangChien
 
Bao cao thuc tap tuan 1
Bao cao thuc tap tuan 1Bao cao thuc tap tuan 1
Bao cao thuc tap tuan 1TranQuangChien
 
Bao cao do an ltm hoan chinh
Bao cao do an ltm hoan chinhBao cao do an ltm hoan chinh
Bao cao do an ltm hoan chinhNgok Ánk
 
Progressive web apps - Linh Nguyen
Progressive web apps  - Linh NguyenProgressive web apps  - Linh Nguyen
Progressive web apps - Linh NguyenTu Le Dinh
 
OpenWIPS-ng report Vietnamese
OpenWIPS-ng report VietnameseOpenWIPS-ng report Vietnamese
OpenWIPS-ng report VietnameseHoàng Tuấn Lê
 
HƯỚNG DẪN SỬ DỤNG PHẦN MỀM SUBVERSION (SVN) TOÀN TẬP
HƯỚNG DẪN SỬ DỤNG PHẦN MỀM SUBVERSION (SVN) TOÀN TẬPHƯỚNG DẪN SỬ DỤNG PHẦN MỀM SUBVERSION (SVN) TOÀN TẬP
HƯỚNG DẪN SỬ DỤNG PHẦN MỀM SUBVERSION (SVN) TOÀN TẬPdvms
 
Lập trình background job bằng azurequeue và webjob sử dụng azure storage emul...
Lập trình background job bằng azurequeue và webjob sử dụng azure storage emul...Lập trình background job bằng azurequeue và webjob sử dụng azure storage emul...
Lập trình background job bằng azurequeue và webjob sử dụng azure storage emul...VKhang Yang
 
Xây dựng extension portal cho nimbus
Xây dựng extension portal cho nimbusXây dựng extension portal cho nimbus
Xây dựng extension portal cho nimbusVu Hung Nguyen
 
đề thi trắc nghiệm asp net co kem đáp án trên 400 câu hỏi thiết kế website ki...
đề thi trắc nghiệm asp net co kem đáp án trên 400 câu hỏi thiết kế website ki...đề thi trắc nghiệm asp net co kem đáp án trên 400 câu hỏi thiết kế website ki...
đề thi trắc nghiệm asp net co kem đáp án trên 400 câu hỏi thiết kế website ki...anh hieu
 
Virtual cluster thesis
Virtual   cluster thesisVirtual   cluster thesis
Virtual cluster thesisSentifi
 
ITLC Hanoi - Triển khai ceph hướng tới Cloud Storage và hỗ trợ OpenStack - du...
ITLC Hanoi - Triển khai ceph hướng tới Cloud Storage và hỗ trợ OpenStack - du...ITLC Hanoi - Triển khai ceph hướng tới Cloud Storage và hỗ trợ OpenStack - du...
ITLC Hanoi - Triển khai ceph hướng tới Cloud Storage và hỗ trợ OpenStack - du...Le Cuong
 
Bai bao webcambien_ql_vantai
Bai bao webcambien_ql_vantaiBai bao webcambien_ql_vantai
Bai bao webcambien_ql_vantaiTrieu Nguyen
 

Similar to DockerDay2015: Build and monitor a load balanced web application with Docker and Nginx (20)

Mai kim thi bao cao thuc tap tuan 1
Mai kim thi   bao cao thuc tap tuan 1Mai kim thi   bao cao thuc tap tuan 1
Mai kim thi bao cao thuc tap tuan 1
 
Báo cáo thực tập tuần 1 tại athena đàm văn sáng
Báo cáo thực tập tuần 1 tại athena   đàm văn sángBáo cáo thực tập tuần 1 tại athena   đàm văn sáng
Báo cáo thực tập tuần 1 tại athena đàm văn sáng
 
Bao cao thuc tap mau
Bao cao thuc tap mauBao cao thuc tap mau
Bao cao thuc tap mau
 
Báo cáo thực tập Tuần 1
Báo cáo thực tập Tuần 1Báo cáo thực tập Tuần 1
Báo cáo thực tập Tuần 1
 
Bao cao thuc tap tuan 1
Bao cao thuc tap tuan 1Bao cao thuc tap tuan 1
Bao cao thuc tap tuan 1
 
Bao cao thuc tap tuan 1
Bao cao thuc tap tuan 1Bao cao thuc tap tuan 1
Bao cao thuc tap tuan 1
 
Bao cao do an ltm hoan chinh
Bao cao do an ltm hoan chinhBao cao do an ltm hoan chinh
Bao cao do an ltm hoan chinh
 
Progressive web apps - Linh Nguyen
Progressive web apps  - Linh NguyenProgressive web apps  - Linh Nguyen
Progressive web apps - Linh Nguyen
 
OpenWIPS-ng report Vietnamese
OpenWIPS-ng report VietnameseOpenWIPS-ng report Vietnamese
OpenWIPS-ng report Vietnamese
 
HƯỚNG DẪN SỬ DỤNG PHẦN MỀM SUBVERSION (SVN) TOÀN TẬP
HƯỚNG DẪN SỬ DỤNG PHẦN MỀM SUBVERSION (SVN) TOÀN TẬPHƯỚNG DẪN SỬ DỤNG PHẦN MỀM SUBVERSION (SVN) TOÀN TẬP
HƯỚNG DẪN SỬ DỤNG PHẦN MỀM SUBVERSION (SVN) TOÀN TẬP
 
Docker 101
Docker 101Docker 101
Docker 101
 
Lập trình background job bằng azurequeue và webjob sử dụng azure storage emul...
Lập trình background job bằng azurequeue và webjob sử dụng azure storage emul...Lập trình background job bằng azurequeue và webjob sử dụng azure storage emul...
Lập trình background job bằng azurequeue và webjob sử dụng azure storage emul...
 
Xây dựng extension portal cho nimbus
Xây dựng extension portal cho nimbusXây dựng extension portal cho nimbus
Xây dựng extension portal cho nimbus
 
Bai 7
Bai 7Bai 7
Bai 7
 
400 câu hỏi thi trắc nghiệm ASP.NET có đáp án - Thiết kế website kinh doanh 2
400 câu hỏi thi trắc nghiệm ASP.NET có đáp án - Thiết kế website kinh doanh 2400 câu hỏi thi trắc nghiệm ASP.NET có đáp án - Thiết kế website kinh doanh 2
400 câu hỏi thi trắc nghiệm ASP.NET có đáp án - Thiết kế website kinh doanh 2
 
đề thi trắc nghiệm asp net co kem đáp án trên 400 câu hỏi thiết kế website ki...
đề thi trắc nghiệm asp net co kem đáp án trên 400 câu hỏi thiết kế website ki...đề thi trắc nghiệm asp net co kem đáp án trên 400 câu hỏi thiết kế website ki...
đề thi trắc nghiệm asp net co kem đáp án trên 400 câu hỏi thiết kế website ki...
 
Virtual cluster thesis
Virtual   cluster thesisVirtual   cluster thesis
Virtual cluster thesis
 
ITLC Hanoi - Triển khai ceph hướng tới Cloud Storage và hỗ trợ OpenStack - du...
ITLC Hanoi - Triển khai ceph hướng tới Cloud Storage và hỗ trợ OpenStack - du...ITLC Hanoi - Triển khai ceph hướng tới Cloud Storage và hỗ trợ OpenStack - du...
ITLC Hanoi - Triển khai ceph hướng tới Cloud Storage và hỗ trợ OpenStack - du...
 
Bai bao webcambien_ql_vantai
Bai bao webcambien_ql_vantaiBai bao webcambien_ql_vantai
Bai bao webcambien_ql_vantai
 
Su dung-may-tems
Su dung-may-temsSu dung-may-tems
Su dung-may-tems
 

More from Docker-Hanoi

ContainerDayVietnam2016: Lesson Leanred on Docker 1.12 and Swarm Mode
ContainerDayVietnam2016: Lesson Leanred on Docker 1.12 and Swarm ModeContainerDayVietnam2016: Lesson Leanred on Docker 1.12 and Swarm Mode
ContainerDayVietnam2016: Lesson Leanred on Docker 1.12 and Swarm ModeDocker-Hanoi
 
ContainerDayVietnam2016: Docker 1.12 at OpenFPT
ContainerDayVietnam2016: Docker 1.12 at OpenFPTContainerDayVietnam2016: Docker 1.12 at OpenFPT
ContainerDayVietnam2016: Docker 1.12 at OpenFPTDocker-Hanoi
 
ContainerDayVietnam2016: Become a Cloud-native Developer
ContainerDayVietnam2016: Become a Cloud-native DeveloperContainerDayVietnam2016: Become a Cloud-native Developer
ContainerDayVietnam2016: Become a Cloud-native DeveloperDocker-Hanoi
 
ContainerDayVietnam2016: Kubernetes State-of-the-art Container Management Pla...
ContainerDayVietnam2016: Kubernetes State-of-the-art Container Management Pla...ContainerDayVietnam2016: Kubernetes State-of-the-art Container Management Pla...
ContainerDayVietnam2016: Kubernetes State-of-the-art Container Management Pla...Docker-Hanoi
 
ContainerDayVietnam2016: Docker for JS Developer
ContainerDayVietnam2016: Docker for JS DeveloperContainerDayVietnam2016: Docker for JS Developer
ContainerDayVietnam2016: Docker for JS DeveloperDocker-Hanoi
 
ContainerDayVietnam2016: Containers with OpenStack
ContainerDayVietnam2016: Containers with OpenStackContainerDayVietnam2016: Containers with OpenStack
ContainerDayVietnam2016: Containers with OpenStackDocker-Hanoi
 
ContainerDayVietnam2016: Django Development with Docker
ContainerDayVietnam2016: Django Development with DockerContainerDayVietnam2016: Django Development with Docker
ContainerDayVietnam2016: Django Development with DockerDocker-Hanoi
 
ContainerDayVietnam2016: Docker at scale with Mesos
ContainerDayVietnam2016: Docker at scale with MesosContainerDayVietnam2016: Docker at scale with Mesos
ContainerDayVietnam2016: Docker at scale with MesosDocker-Hanoi
 
ContainerDayVietnam2016: Dockerize a small business
ContainerDayVietnam2016: Dockerize a small businessContainerDayVietnam2016: Dockerize a small business
ContainerDayVietnam2016: Dockerize a small businessDocker-Hanoi
 
ContainerDayVietnam2016: Hybrid and Automation System Architecture
ContainerDayVietnam2016: Hybrid and Automation System ArchitectureContainerDayVietnam2016: Hybrid and Automation System Architecture
ContainerDayVietnam2016: Hybrid and Automation System ArchitectureDocker-Hanoi
 
Azure Container Service
Azure Container ServiceAzure Container Service
Azure Container ServiceDocker-Hanoi
 
Docker-Ha Noi- Year end 2015 party
Docker-Ha Noi- Year end 2015 partyDocker-Ha Noi- Year end 2015 party
Docker-Ha Noi- Year end 2015 partyDocker-Hanoi
 
DockerDay2015: Introduction to OpenStack Magnum
DockerDay2015: Introduction to OpenStack MagnumDockerDay2015: Introduction to OpenStack Magnum
DockerDay2015: Introduction to OpenStack MagnumDocker-Hanoi
 
DockerDay2015: Keynote
DockerDay2015: KeynoteDockerDay2015: Keynote
DockerDay2015: KeynoteDocker-Hanoi
 
DockerDay2015: Deploy Apps on IBM Bluemix
DockerDay2015: Deploy Apps on IBM BluemixDockerDay2015: Deploy Apps on IBM Bluemix
DockerDay2015: Deploy Apps on IBM BluemixDocker-Hanoi
 
DockerDay2015: Docker Security
DockerDay2015: Docker SecurityDockerDay2015: Docker Security
DockerDay2015: Docker SecurityDocker-Hanoi
 
DockerDay2015: Docker orchestration for developers
DockerDay2015: Docker orchestration for developersDockerDay2015: Docker orchestration for developers
DockerDay2015: Docker orchestration for developersDocker-Hanoi
 
DockerDay2015: Docker Networking
DockerDay2015: Docker NetworkingDockerDay2015: Docker Networking
DockerDay2015: Docker NetworkingDocker-Hanoi
 
DockerDay2015: Docker orchestration for sysadmin
DockerDay2015: Docker orchestration for sysadminDockerDay2015: Docker orchestration for sysadmin
DockerDay2015: Docker orchestration for sysadminDocker-Hanoi
 
DockerDay2015: Getting started with Google Container Engine
DockerDay2015: Getting started with Google Container EngineDockerDay2015: Getting started with Google Container Engine
DockerDay2015: Getting started with Google Container EngineDocker-Hanoi
 

More from Docker-Hanoi (20)

ContainerDayVietnam2016: Lesson Leanred on Docker 1.12 and Swarm Mode
ContainerDayVietnam2016: Lesson Leanred on Docker 1.12 and Swarm ModeContainerDayVietnam2016: Lesson Leanred on Docker 1.12 and Swarm Mode
ContainerDayVietnam2016: Lesson Leanred on Docker 1.12 and Swarm Mode
 
ContainerDayVietnam2016: Docker 1.12 at OpenFPT
ContainerDayVietnam2016: Docker 1.12 at OpenFPTContainerDayVietnam2016: Docker 1.12 at OpenFPT
ContainerDayVietnam2016: Docker 1.12 at OpenFPT
 
ContainerDayVietnam2016: Become a Cloud-native Developer
ContainerDayVietnam2016: Become a Cloud-native DeveloperContainerDayVietnam2016: Become a Cloud-native Developer
ContainerDayVietnam2016: Become a Cloud-native Developer
 
ContainerDayVietnam2016: Kubernetes State-of-the-art Container Management Pla...
ContainerDayVietnam2016: Kubernetes State-of-the-art Container Management Pla...ContainerDayVietnam2016: Kubernetes State-of-the-art Container Management Pla...
ContainerDayVietnam2016: Kubernetes State-of-the-art Container Management Pla...
 
ContainerDayVietnam2016: Docker for JS Developer
ContainerDayVietnam2016: Docker for JS DeveloperContainerDayVietnam2016: Docker for JS Developer
ContainerDayVietnam2016: Docker for JS Developer
 
ContainerDayVietnam2016: Containers with OpenStack
ContainerDayVietnam2016: Containers with OpenStackContainerDayVietnam2016: Containers with OpenStack
ContainerDayVietnam2016: Containers with OpenStack
 
ContainerDayVietnam2016: Django Development with Docker
ContainerDayVietnam2016: Django Development with DockerContainerDayVietnam2016: Django Development with Docker
ContainerDayVietnam2016: Django Development with Docker
 
ContainerDayVietnam2016: Docker at scale with Mesos
ContainerDayVietnam2016: Docker at scale with MesosContainerDayVietnam2016: Docker at scale with Mesos
ContainerDayVietnam2016: Docker at scale with Mesos
 
ContainerDayVietnam2016: Dockerize a small business
ContainerDayVietnam2016: Dockerize a small businessContainerDayVietnam2016: Dockerize a small business
ContainerDayVietnam2016: Dockerize a small business
 
ContainerDayVietnam2016: Hybrid and Automation System Architecture
ContainerDayVietnam2016: Hybrid and Automation System ArchitectureContainerDayVietnam2016: Hybrid and Automation System Architecture
ContainerDayVietnam2016: Hybrid and Automation System Architecture
 
Azure Container Service
Azure Container ServiceAzure Container Service
Azure Container Service
 
Docker-Ha Noi- Year end 2015 party
Docker-Ha Noi- Year end 2015 partyDocker-Ha Noi- Year end 2015 party
Docker-Ha Noi- Year end 2015 party
 
DockerDay2015: Introduction to OpenStack Magnum
DockerDay2015: Introduction to OpenStack MagnumDockerDay2015: Introduction to OpenStack Magnum
DockerDay2015: Introduction to OpenStack Magnum
 
DockerDay2015: Keynote
DockerDay2015: KeynoteDockerDay2015: Keynote
DockerDay2015: Keynote
 
DockerDay2015: Deploy Apps on IBM Bluemix
DockerDay2015: Deploy Apps on IBM BluemixDockerDay2015: Deploy Apps on IBM Bluemix
DockerDay2015: Deploy Apps on IBM Bluemix
 
DockerDay2015: Docker Security
DockerDay2015: Docker SecurityDockerDay2015: Docker Security
DockerDay2015: Docker Security
 
DockerDay2015: Docker orchestration for developers
DockerDay2015: Docker orchestration for developersDockerDay2015: Docker orchestration for developers
DockerDay2015: Docker orchestration for developers
 
DockerDay2015: Docker Networking
DockerDay2015: Docker NetworkingDockerDay2015: Docker Networking
DockerDay2015: Docker Networking
 
DockerDay2015: Docker orchestration for sysadmin
DockerDay2015: Docker orchestration for sysadminDockerDay2015: Docker orchestration for sysadmin
DockerDay2015: Docker orchestration for sysadmin
 
DockerDay2015: Getting started with Google Container Engine
DockerDay2015: Getting started with Google Container EngineDockerDay2015: Getting started with Google Container Engine
DockerDay2015: Getting started with Google Container Engine
 

DockerDay2015: Build and monitor a load balanced web application with Docker and Nginx

  • 1. Trần Hữu Cường, Nguyễn Văn Thường Monitor and Load Balancing Hà Nội, 19/07/2015 1 / 9
  • 2. Content 1 Start with Simple Webapp 2 Monitor docker with cAdvisor + InfluxDB + Grafana 3 Load balancing with Mesos + Marathon + Nginx 4 Autoscaling (coming soon, join us) Trần Hữu Cường, Nguyễn Văn Thường Monitor and Load Balancing Hà Nội, 19/07/2015 2 / 9
  • 3. Start with Simple Webap docker-compose.yml web1: image: test/counter ports: - "81:5000" links: - redis:redis redis: image: redis Access: http://127.0.0.1:81/ Trần Hữu Cường, Nguyễn Văn Thường Monitor and Load Balancing Hà Nội, 19/07/2015 3 / 9
  • 4. Hệ thống monitor Cần các thành phần: • App agent (sensor): thu thập thông tin hệ thống, log và gửi đến bộ phận ghi nhận event. • Ghi nhận event: nhận các event từ agent và ghi vào database. • Database event: chuyên dụng, được thiết kế để tối ưu hóa việc lưu trữ dữ liệu event theo thời gian. • Bộ phận tổng hợp, visualization: aggregate, trực quan hóa dữ liệu event. Trần Hữu Cường, Nguyễn Văn Thường Monitor and Load Balancing Hà Nội, 19/07/2015 4 / 9
  • 5. Monitor docker • cAdvisor: thu thập metrics docker. • InfluxDB: open-source distributed time series database. • Grafana: rich metrics dashboard and graph editor. Access: http://monitor.coclab.lan:3000/ Trần Hữu Cường, Nguyễn Văn Thường Monitor and Load Balancing Hà Nội, 19/07/2015 5 / 9
  • 6. Load balancing with Mesos + Marathon + Nginx Experiment: 1 Start Mesos and Marathon. 2 Start Nginx. Trần Hữu Cường, Nguyễn Văn Thường Monitor and Load Balancing Hà Nội, 19/07/2015 6 / 9
  • 7. Autoscaling (coming soon, join us) Architecture: 1 Reporters: lấy thông tin trạng thái hoạt động. 2 Deciders: xử lí thông tin, ra quyết định. 3 Scalers: thực hiện lệnh scale. Trần Hữu Cường, Nguyễn Văn Thường Monitor and Load Balancing Hà Nội, 19/07/2015 7 / 9
  • 9. Thank you! • http://www.meetup.com/Docker-Hanoi/ • Trần Hữu Cường: tranhuucuong91@gmail.com • Nguyễn Văn Thường: thuongnvbk@gmail.com Trần Hữu Cường, Nguyễn Văn Thường Monitor and Load Balancing Hà Nội, 19/07/2015 9 / 9