itlc ha noi : openstack from atlanta to ha noi - compute

21
OpenStack Compute Nguyen Trung Kien VietOpenStack, 25/05/2014

Upload: le-van-duy

Post on 15-Jun-2015

190 views

Category:

Technology


7 download

DESCRIPTION

Giới thiệu về kiến trục Compute trong Icehouse, và xây dựng một mô hình riêng áp dụng OpenStack. Mọi người đọc qua cho tác giả thêm góp ý vê mô hình này.

TRANSCRIPT

Page 1: ITLC Ha Noi : Openstack From Atlanta to Ha Noi - Compute

OpenStack Compute

Nguyen Trung KienVietOpenStack, 25/05/2014

Page 2: ITLC Ha Noi : Openstack From Atlanta to Ha Noi - Compute

Nội dung

Kiến trúc nova1

Các thành phần nova 2

3

Thảo luận 4

Các bước khởi chạy instance

Page 3: ITLC Ha Noi : Openstack From Atlanta to Ha Noi - Compute

OpenStack – Các thành phần

Page 4: ITLC Ha Noi : Openstack From Atlanta to Ha Noi - Compute

OpenStack – Các thành phần

Page 5: ITLC Ha Noi : Openstack From Atlanta to Ha Noi - Compute

Kiến trúc Nova (đơn giản)

Page 6: ITLC Ha Noi : Openstack From Atlanta to Ha Noi - Compute

Kiến trúc Nova (tăng quy mô)

Page 7: ITLC Ha Noi : Openstack From Atlanta to Ha Noi - Compute

Libvirt

Page 8: ITLC Ha Noi : Openstack From Atlanta to Ha Noi - Compute

Nova – Các thành phần

• nova-api– Giao diện cho dịch vụ nova

• nova-scheduler– Quyết định host sẽ chạy instance

• nova-conductor– Trung gian kết nối DB

• nova-cert– Quản lý chứng chỉ chứng thực với Nova

• nova-consoleauth– Chứng thực token của user cho dịch vụ graphics proxy

• nova-compute– Chạy các VM instances

Page 9: ITLC Ha Noi : Openstack From Atlanta to Ha Noi - Compute

Nova scheduler

• Quyết định đặt instance lên host nào • Các luật (pluggable):– CPU model/architecture– Virtualization type– PCI device availability– CPU, RAM, Disk usage – Trusted boot (TXT)– …

Page 10: ITLC Ha Noi : Openstack From Atlanta to Ha Noi - Compute

Nova conductor

• Trung gian truy cập DB • Các compute không truy cập trực tiếp tới DB:– Không an toàn – DB thành nút cổ chai khi mở rộng

• Compute host gửi các RPC• Conductor cập nhật trạng thái DB

Page 11: ITLC Ha Noi : Openstack From Atlanta to Ha Noi - Compute

Kiến trúc HA

Page 12: ITLC Ha Noi : Openstack From Atlanta to Ha Noi - Compute

Khởi chạy instance - 1

Page 13: ITLC Ha Noi : Openstack From Atlanta to Ha Noi - Compute

Khởi chạy instance - 2

Page 14: ITLC Ha Noi : Openstack From Atlanta to Ha Noi - Compute

Khởi chạy instance - 3

Page 15: ITLC Ha Noi : Openstack From Atlanta to Ha Noi - Compute

Khởi chạy instance - 4

Page 16: ITLC Ha Noi : Openstack From Atlanta to Ha Noi - Compute

Khởi chạy instance - 5

Page 17: ITLC Ha Noi : Openstack From Atlanta to Ha Noi - Compute

Khởi chạy instance - 6

Page 18: ITLC Ha Noi : Openstack From Atlanta to Ha Noi - Compute

Nova graphics proxy

1. A user connects to the API and gets an access_url such as, http://ip:port/?token=xyz.2. The user pastes the URL in a browser or uses it as a client parameter.3. The browser or client connects to the proxy.4. The proxy talks to nova-consoleauth to authorize the token for the user, and maps the token to the private host and port of the VNC server for an instance.The compute host specifies the address that the proxy should use to connect through the nova.conf file option,vncserver_proxyclient_address. In this way, the VNC proxy works as a bridge between the public network and private host network.5. The proxy initiates the connection to VNC server and continues to proxy until the session ends.

Page 19: ITLC Ha Noi : Openstack From Atlanta to Ha Noi - Compute

noVNC process

Page 20: ITLC Ha Noi : Openstack From Atlanta to Ha Noi - Compute

Tham khảo

• An Introduction to OpenStack and its use of KVM - Daniel P. Berrange

• Mirantis website

Page 21: ITLC Ha Noi : Openstack From Atlanta to Ha Noi - Compute

Q&A

Xin chân thành cảm ơn!