Compute API 是 RESTful HTTP 服务,提供管理虚机的能力。

虚机可能有不同的内存大小,CPU数量,硬盘大小,能够在几分钟之内创建出来。和虚机的交互,可以通过Compute API编程实现。

用户需要知道的概念

  • Server

    A virtual machine (VM) instance, physical machine or a container in the compute system. Flavor and image are requisite elements when creating a server. A name for the server is also required. 一个虚拟机实例,物理机或者容器。规格,镜像和名字是创建Server必须指定的元素。

    For more details, such as server actions and server metadata, please see: Server concepts

  • Flavor 规格

    Virtual hardware configuration for the requested server. Each flavor has a unique combination of disk space, memory capacity and priority for CPU time.

  • Flavor Extra Specs

    Key and value pairs that can be used to describe the specification of the server which more than just about CPU, disk and RAM. For example, it can be used to indicate that the server created by this flavor has PCI devices, etc.

    For more details, please see: Flavor Extra Specs and Image Properties

  • Image 镜像

    A collection of files used to create or rebuild a server. Operators provide a number of pre-built OS images by default. You may also create custom images from cloud servers you have launched. These custom images are useful for backup purposes or for producing “gold” server images if you plan to deploy a particular server configuration frequently.

  • Image Properties 镜像属性

    Key and value pairs that can help end users to determine the requirements of the guest os in the image.

    For more details, please see: Flavor Extra Specs and Image Properties

  • Key Pair

    An ssh or x509 keypair that can be injected into a server at it’s boot time. This allows you to connect to your server once it has been created without having to use a password. If you don’t specify a key pair, Nova will create a root password for you, and return it in plain text in the server create response.

  • Volume 云硬盘

    A block storage device that Nova can use as permanent storage. When a server is created it has some disk storage available, but that is considered ephemeral, as it is destroyed when the server is destroyed. A volume can be attached to a server, then later detached and used by another server. Volumes are created and managed by the Cinder service. For additional info, see Block device mapping

  • Quotas 配额

    An upper limit on the amount of resources any individual tenant may consume. Quotas can be used to limit the number of servers a tenant creates, or the amount of disk space consumed, so that no one tenant can overwhelm the system and prevent normal operation for others. Changing quotas is an administrator-level action. For additional info, see Quotas

  • Rate Limiting

    Please see Limits

  • Availability zone 可用域(虚机可以被创建在哪些服务器上)

    A grouping of machines that can be used to control where a new server is created. There is some confusion about this, as the name “availability zone” is used in other clouds, such as Amazon Web Services, to denote a physical separation of server locations that can be used to distribute cloud resources for fault tolerance in case one zone is unavailable for any reason. Such a separation is possible in Nova if an administrator carefully sets up availability zones for that, but it is not the default.

管理员需要知道的概念

Services

Services are provided by Nova components. Normally, the Nova component runs as a process on the controller/compute node to provide the service. These services may be end-user facing, such as the OpenStack Compute REST API service, but most just work with other Nova services. The status of each service is monitored by Nova, and if it is not responding normally, Nova will update its status so that requests are not sent to that service anymore. The service can also be controlled by an Administrator in order to run maintenance or upgrades, or in response to changing workloads.

  • nova-osapi_compute

    This service provides the OpenStack Compute REST API to end users and application clients.

  • nova-metadata

    This service provides the OpenStack Metadata API to servers. The metadata is used to configure the running servers.

  • nova-scheduler

    This service provides compute request scheduling by tracking available resources, and finding the host that can best fulfill the request.

  • nova-conductor

    This service provides database access for Nova and the other OpenStack services, and handles internal version compatibility when different services are running different versions of code. The conductor service also handles long-running requests.

  • nova-compute

    This service runs on every compute node, and communicates with a hypervisor for managing compute resources on that node.

Services Actions

enable, disable, disable-log-reason

The service can be disabled to indicate the service is not available anymore. This is used by administrator to stop service for maintenance. For example, when Administrator wants to maintain a specific compute node, Administrator can disable nova-compute service on that compute node. Then nova won’t dispatch any new compute request to that compute node anymore. Administrator also can add note for disable reason.

Hosts

Hosts are the physical machines that provide the resources for the virtual servers created in Nova. They run a hypervisor (see definition below) that handles the actual creation and management of the virtual servers. Hosts also run the Nova computeservice, which receives requests from Nova to interact with the virtual servers on that machine. When compute service receives a request, it calls the appropriate methods of the driver for that hypervisor in order to carry out the request. The driver acts as the translator from generic Nova requests to hypervisor-specific calls. Hosts report their current state back to Nova, where it is tracked by the scheduler service, so that the scheduler can place requests for new virtual servers on the hosts that can best fit them.

Host Actions

host action is one that affects the physical host machine, as opposed to actions that only affect the virtual servers running on that machine. There are three ‘power’ actions that are supported: startupshutdown, and reboot. There are also two ‘state’ actions: enabling/disabling the host, and setting the host into or out of maintenance mode. Of course, carrying out these actions can affect running virtual servers on that host, so their state will need to be considered before carrying out the host action. For example, if you want to call the ‘shutdown’ action to turn off a host machine, you might want to migrate any virtual servers on that host before shutting down the host machine so that the virtual servers continue to be available without interruption.

Hypervisors

A hypervisor, or virtual machine monitor (VMM), is a piece of computer software, firmware or hardware that creates and runs virtual machines.

In nova, each Host (see Hosts) runs a hypervisor. Administrators are able to query the hypervisor for information, such as all the virtual servers currently running, as well as detailed info about the hypervisor, such as CPU, memory, or disk related configuration.

Currently nova-compute also supports Ironic and LXC, but they don’t have a hypervisor running.

Migrations

Migrations are the process where a virtual server is moved from one host to another. Please see Server concepts for details about moving servers.

Administrators are able to query the records in database for information about migrations. For example, they can determine the source and destination hosts, type of migration, or changes in the server’s flavor.

转载于:https://www.cnblogs.com/gremount/p/9749630.html

Compute API 关键概念 详解相关推荐

  1. YOLOv1的损失函数和关键概念详解

    Loss function详解 在loss function中,前面两行表示localization error(即坐标误差),第一行是box中心坐标(x,y)的预测,第二行为宽和高的预测.这里注意用 ...

  2. java jvm sdk_JDK、SDK、JRE、JVM概念详解

    JDK.SDK.JRE.JVM概念的认识我们可以通过HelloWorld来理解这几个缩写词的具体含义: publicclassHelloWorld { publicstaticvoidmain(Str ...

  3. AUTOSAR从入门到精通100讲(三十九)-AUTOSAR 通信服务-Com模块两部曲-概念详解

    Com模块概念详解 1. Com模块功能介绍 COM模块位于RTE和PDU Router模块之间. COM模块提供信号网关功能,主要的功能如下: . 为RTE提供信号导向的数据接口 . 将AUTOSA ...

  4. R语言生存分析(survival analysis)与生存资料有关的概念详解

    R语言生存分析(survival analysis)与生存资料有关的概念详解 目录 R语言生存分析(survival analysis)与生存资料有关的概念详解 #生存分析

  5. 科普:5G网络关键技术详解

    不久前,中国华为公司主推的Polar Code(极化码)方案,成为5G控制信道eMBB场景编码方案.消息一出,在网络上就炸开了锅,甚至有媒体用"华为碾压高通,拿下5G时代"来形容这 ...

  6. python 自动化-Python API 自动化实战详解(纯代码)

    主要讲如何在公司利用Python 搞API自动化. 1.分层设计思路 dataPool :数据池层,里面有我们需要的各种数据,包括一些公共数据等 config :基础配置 tools : 工具层 co ...

  7. BlockChain:BlockChain周边概念详解+个人理解

    BlockChain:BlockChain周边概念详解+个人理解 目录 1.拜占庭将军问题 2.共识机制 1.区块链的共识机制目前有以下几种 PoW PoS DPoS 其他共识机制 1.拜占庭将军问题 ...

  8. [crypto]-02-非对称加解密RSA原理概念详解

    说明:本文使用的数据来自网络,重复的太多了,也不知道哪篇是原创. 算法原理介绍 step 说明 描述 备注 1 找出质数 P .Q - 2 计算公共模数 N = P * Q - 3 欧拉函数 φ(N) ...

  9. [crypto]-01-对称加解密AES原理概念详解

    1.对称加解密 术语:P是明文,C是密文,K是密钥,E是加密算法,D是解密算 (1).常用的对称加解密有哪些? (2).加解密的模式 [ecb]这种模式是将整个明文分成若干段相同的小段,然后对每一小段 ...

最新文章

  1. 最新的C#SqlHelper 类苏飞修改版(转载)
  2. 关于使用asp.net调试器出现的问题及相关解决方法
  3. VTK:图片之ImageContinuousErode3D
  4. oracle中游标的使用
  5. SQL Server - 在SQL Server中创建ASSEMBLY
  6. linux下使用过的命令总结(未整理完)
  7. Jmeter接口测试实战分享,你一定要知道的问题总结!
  8. 蓝牙音频中Classic Audio和LEAudio对比和区别
  9. jetbrains验证服务器,搭建个人jetbrains授权服务器
  10. 基于lingo的线性回归和非线性回归
  11. 短语(直接短语、句柄)以及语法树
  12. 内网渗透-红队内网渗透工具(Viper)
  13. js 点击切换背景图片
  14. 用计算机处理信息图文,浅谈计算机技术在报纸图文信息处理中的应用
  15. what's the meaning of Shell?
  16. 人工智能教学竞赛科研平台解决方案
  17. AI宝典:AI超强工具大整合
  18. MySQL之DML和DQL
  19. AdobePhotoshopCS3-full1224 (绿色版)
  20. 高效敏捷的十大经验法则

热门文章

  1. Android MarsDaemon实现进程及Service常驻
  2. Vue 踩坑之旅(1)
  3. C++primer笔记之关联容器
  4. HashMap 1.8 源码解析以及非线程安全分析
  5. GoldenGate复制单表开并行
  6. POJ 1989 贪心
  7. JAVA IO - 删除特定扩展名的文件
  8. RouteHttpMap要添加的引用
  9. 约瑟夫问题(c++)
  10. LVM 逻辑卷的扩容/缩容