「我是一個前端工程師,每次要進行頁面套版時,都要等後端工程師寫好 API 才能測試,我覺得很痛苦,但公司的後端我又叫不動,有沒有甚麼方法可以簡單的設計出 RESTful API,讓我可以立即套版使用?我不想每次都苦苦哀求後端工程師快點生出 API 給我!」這是之前某位學生告訴我的一段話,也想必是許多前端工程師的痛,現在,你可以不一樣!
我將在這場分享中講解如何利用 JSON Server 快速建立 RESTful API 服務,讓前端工程師可以在完全沒有後端開發能力的情況下,自行設計出任意格式的 API 讓自己使用。本次直播完全免費,當天還會簡單示範如何在 Angular 使用 Http 服務元件呼叫自製的 API!
OpenStack Glance provides image discovery, registration, and retrieval services. It has a RESTful API and supports storing images on various backends like filesystems and OpenStack Swift. Glance components include the Glance API, registry, and database. It supports many disk and container formats and has a caching mechanism. Images can be managed through the Glance API and used to launch instances.
Glance is OpenStack's image service that stores and retrieves virtual machine (VM) images and their metadata. Glance consists of several components - the glance-api service that handles image API requests, the glance-registry service that stores and processes image metadata, and an image store like OpenStack Object Storage where the actual image files are stored. Glance supports various image formats like QCOW2, VHD, VMDK etc. that can be used by different hypervisors. Images in Glance can be public, private or shared between specific tenants using image members.
「我是一個前端工程師,每次要進行頁面套版時,都要等後端工程師寫好 API 才能測試,我覺得很痛苦,但公司的後端我又叫不動,有沒有甚麼方法可以簡單的設計出 RESTful API,讓我可以立即套版使用?我不想每次都苦苦哀求後端工程師快點生出 API 給我!」這是之前某位學生告訴我的一段話,也想必是許多前端工程師的痛,現在,你可以不一樣!
我將在這場分享中講解如何利用 JSON Server 快速建立 RESTful API 服務,讓前端工程師可以在完全沒有後端開發能力的情況下,自行設計出任意格式的 API 讓自己使用。本次直播完全免費,當天還會簡單示範如何在 Angular 使用 Http 服務元件呼叫自製的 API!
OpenStack Glance provides image discovery, registration, and retrieval services. It has a RESTful API and supports storing images on various backends like filesystems and OpenStack Swift. Glance components include the Glance API, registry, and database. It supports many disk and container formats and has a caching mechanism. Images can be managed through the Glance API and used to launch instances.
Glance is OpenStack's image service that stores and retrieves virtual machine (VM) images and their metadata. Glance consists of several components - the glance-api service that handles image API requests, the glance-registry service that stores and processes image metadata, and an image store like OpenStack Object Storage where the actual image files are stored. Glance supports various image formats like QCOW2, VHD, VMDK etc. that can be used by different hypervisors. Images in Glance can be public, private or shared between specific tenants using image members.
A stack is a linear data structure that follows the last-in, first-out (LIFO) principle. Elements are inserted and removed from one end called the top. The basic operations are push, which inserts an element at the top, and pop, which removes the top element. Stacks have many real-world applications like piles of books and evaluating mathematical expressions. An array can be used to implement a stack by storing elements from index 0 to the top index, and incrementing or decrementing the top index during push and pop operations.
Openstack Glance is an image service that allows discovery, registration, and retrieval of virtual machine images. It has a RESTful API to query image metadata and retrieve images. Images can be stored in various locations like file systems or object storage. Glance consists of components like the Glance API, registry, database, and stores that support different storage backends. It supports various disk and container formats for images.
This document provides an overview of OpenStack Compute (Nova), which is an open source software that provides infrastructure as a service cloud computing capabilities. It discusses how Nova controls virtual machine instances, networks, and access through users and projects similar to Amazon EC2. Nova exposes these capabilities through APIs for developers and interfaces for administrators. Key components of Nova like nova-compute, nova-scheduler, nova-api and message queue are described along with their functions and communication processes. Several Nova API examples are listed with their use cases, expected return codes and outcomes. Process flow diagrams are included for creating a server, attaching a volume, and detaching a volume to illustrate the component interactions.
Anatomy of the libvirt virtualization library
http://www.ibm.com/developerworks/library/l-libvirt/
libvirt
http://libvirt.org/index.html
Scheduling
http://docs.openstack.org/icehouse/config-reference/content/section_compute-scheduler.html
Openstack Zoning – Region/Availability Zone/Host Aggregate
https://kimizhang.wordpress.com/2013/08/26/openstack-zoning-regionavailability-zonehost-aggregate/
Availability Zones and Host Aggregates in OpenStack Compute (Nova)
http://blog.russellbryant.net/2013/05/21/availability-zones-and-host-aggregates-in-openstack-compute-nova/
An Introduction to Droplet Metadata
https://www.digitalocean.com/community/tutorials/an-introduction-to-droplet-metadata
HOW WE USE CLOUDINIT IN OPENSTACK HEAT
http://sdake.io/2013/03/03/how-we-use-cloudinit-in-openstack-heat/
How to inject file/meta/ssh key/root password/userdata/config drive to a VM during nova boot
https://kimizhang.wordpress.com/2014/03/18/how-to-inject-filemetassh-keyroot-passworduserdataconfig-drive-to-a-vm-during-nova-boot/
Cloud-init
https://cloudinit.readthedocs.org/en/latest/
MEAN Stack is a full-stack JavaScript solution that helps you build fast, robust and maintainable production web applications using MongoDB, Express, AngularJS, and Node.js.
The document discusses various ways that GlusterFS can integrate with OpenStack components including Swift, Cinder, Manila, and as hyper-converged storage. Current integration includes using GlusterFS as ephemeral storage for Nova instances, as the backend for Swift, Cinder, Glance, and Manila. Work is ongoing to provide a hyper-converged solution with GlusterFS providing both compute and storage on the same nodes.
This document discusses optimizing VM images for OpenStack with KVM/QEMU. It covers disk and container formats like RAW, QCOW2, and AMI. It also discusses tools for manipulating disk files, launching an instance, image OS preparation using cloud-init, authentication models, networking configuration, and hotplug support. The goal is to provide optimized images that support features like snapshots while allowing faster instance launching and increased storage efficiency.
The document discusses OpenStack Neutron and Software Defined Networks (SDN). It begins with an agenda for a demonstration of Neutron including creating networks, spawning VMs, testing connectivity, and creating load balancers. It then provides an overview of Neutron components and architecture, including the modular layer 2 plugin. It demonstrates Neutron APIs and network namespaces. It introduces SDN concepts like the control plane and network virtualization. Finally, it discusses how Neutron enforces SDN through plugins like PLUMgrid that implement the functionality on software edges in compute nodes.
- What is NOVA ?
- NOVA architecture
- How instance are spawned in Openstack ?
- Interaction of nova with other openstack projects like neutron, glance and cinder.
This document provides an overview of how to set up OpenStack using DevStack in 2 hours. It discusses installing VirtualBox and Vagrant, setting up a Vagrantfile to define and configure VMs, installing DevStack which deploys OpenStack services onto the VMs, and using localrc to customize the OpenStack deployment. The document then demonstrates how to launch and interact with the OpenStack environment to deploy and manage resources.
17. Disk and Container format
Disk format:
底層disk的格式,可將image‟s disk格式設置成以下格式
Raw、vhd、vmdk、vdi、iso、qcow2、aki、ari、ami
Container Format:
包含metadata about the actual virtual machine.
需要注意的是當前Container format string在Glance或其他的
OpenStack元件中未使用,因此在不確定的情況下將其設置為
bare是較為安全的 p.s. bare表示沒有任何的container和
metadata envelope
Ovf、bare、aki、ari、ami
當disk format為aki ari ami時,disk format 和container format一
致。
17