为亚马逊 Neptune 选择存储类型 - Amazon Neptune

本文属于机器翻译版本。若本译文内容与英语原文存在差异,则一律以英文原文为准。

为亚马逊 Neptune 选择存储类型

Neptune 提供两种具有不同定价模式的存储类型:

  • 标准存储-标准存储为中低 I/O 使用率的应用程序提供经济实惠的数据库存储。

  • I/O — 优化的存储 — 由于I/O–Optimized storage, available from engine version 1.3.0.0, you pay only for the storage and instances you are using. The storage costs are higher than for standard storage, and also the instance costs are higher than for standard instances. You pay nothing for the I/O that you use. If your I/O使用率高,预配置的 IOPs 存储可以显著降低成本。

    I/O–Optimized storage is designed to meet the needs of I/O–intensive graph workloads at a predictable cost. You can only switch between I/O—每 30 天优化和标准存储类型一次。

    有关 I/O 优化存储的定价信息,请参阅 Neptune 定价页面。以下部分介绍如何为 Neptune 数据库集群设置 I/O 优化存储。

为 Neptune 数据库集群选择 I/O 优化存储

默认情况下,Neptune 数据库集群使用标准存储。您可以在创建数据库集群时对其启用 I/O 优化存储,如下所示:

以下是一个示例,说明如何在使用 AWS CLI创建集群时启用 I/O 优化存储:

aws neptune create-db-cluster \ --db-cluster-identifier (an ID for the cluster) \ --engine neptune \ --engine-version (the Neptune engine version) \ --storage-type iopt1

然后,您自动创建的任何实例都启用 I/O 优化存储:

aws neptune create-db-instance \ --db-cluster-identifier (the ID of the new cluster) \ --db-instance-identifier (an ID for the new instance) \ --engine neptune \ --db-instance-class db.r5.large

您也可以修改现有数据库集群,以对其启用 I/O 优化存储,如下所示:

aws neptune modify-db-cluster \ --db-cluster-identifier (the ID of a cluster without I/O–Optimized storage) \ --storage-type iopt1 \ --apply-immediately

您可以将备份快照还原到启用了 I/O 优化存储的数据库集群:

aws neptune restore-db-cluster-from-snapshot \ --db-cluster-identifier (an ID for the restored cluster) \ --snapshot-identifier (the ID of the snapshot to restore from) \ --engine neptune \ --engine-version (the Neptune engine version) \ --storage-type iopt1

您可以通过任何 describe- 调用来确定集群是否在使用 I/O 优化存储。如果启用了 I/O 优化存储,则该调用将返回设置为 iop1 的存储类型字段。