官术网_书友最值得收藏!

  • OpenStack for Architects
  • Ben Silverman Michael Solberg
  • 363字
  • 2021-06-25 21:24:34

Ephemeral storage

Ephemeral storage is the storage that is consumed when a Glance image is copied locally to a compute node to instantiate a virtual instance. Glance images are typically sparse and tend to be less than 1 gigabyte in size. When instantiated, images provide the root disk for an instance's operating system. These are also sparsely provisioned, but typically grow up to 10, 20, or 40 gigabytes in size. In traditional OpenStack deployments, ephemeral storage is provided by the compute node's internal disks, and when a compute node fails or an instance is terminated, the storage is lost or reclaimed. These days, many organizations will choose to place ephemeral storage on shared storage.

There are two main reasons to use shared storage for ephemeral instance storage. The first reason is to make those ephemeral instances a little less ephemeral by providing for a live  migration capability for instances. With local-only ephemeral storage, any reboot of a compute node will terminate the instances it is currently hosting. If the instance is backed by shared storage (typically NFS or software-based storage such as Ceph), it can be migrated to another compute node that has access to the same storage without downtime. This allows cloud operators to put compute nodes in a maintenance mode so that they can be patched. When the compute nodes are ready to host workloads again, the instances can be rebalanced across the nodes. Having a live copy of the instance is also useful in the case of a compute node failure. Instances backed by shared storage can be evacuated to healthy compute nodes without losing state.

The second reason that shared storage is attractive for ephemeral storage is that some storage backends allow deduplication between Glance images and running instances. In a traditional instance life cycle, there isn't a huge need for deduplication between the images and the instances. However, if there is a deduplication capability, it allows operators to use instance snapshots as backups. Instances can be backed up on a regular basis without consuming an inordinate amount of shared storage. OpenStack allows quiescing guest operating systems during snapshot operations to enable this kind of live backup capability.

主站蜘蛛池模板: 霍林郭勒市| 安岳县| 临颍县| 贵南县| 仁怀市| 望谟县| 巴林右旗| 岳阳县| 焦作市| 岳西县| 寿光市| 乐东| 屯门区| 武邑县| 伊通| 仁怀市| 三明市| 阜宁县| 灌南县| 蒲城县| 扶绥县| 盘山县| 桃园县| 青铜峡市| 韶山市| 凤台县| 娱乐| 石林| 吕梁市| 潜江市| 延川县| 广宗县| 青神县| 松原市| 桐庐县| 镇远县| 鹿泉市| 汉川市| 礼泉县| 长阳| 鄂温|