View a markdown version of this page

为 Amazon Neptune 选择存储类型 - Amazon Neptune
Amazon Web Services 文档中描述的 Amazon Web Services 服务或功能可能因区域而异。要查看适用于中国区域的差异,请参阅 中国的 Amazon Web Services 服务入门 (PDF)。

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

为 Amazon Neptune 选择存储类型

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

  • 标准存储 — 标准存储为中低级别的应用程序提供经济实惠的数据库存储 I/O 用法。

  • I/O—优化的存储 — 用 I/O—优化存储,从引擎版本 1.3.0.0 开始提供,您只需为所使用的存储和实例付费。存储成本高于标准存储,而且实例成本高于标准实例。你不为此付任何代价 I/O 你用的。如果你的 I/O 使用率高,预置的 IOPS 存储可以显著降低成本。

    I/O—优化的存储旨在满足以下需求 I/O—成本可预测的密集型图形工作负载。你只能在之间切换 I/O—每 30 天优化一次存储类型和标准存储类型。

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

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

默认情况下,海王星数据库集群使用标准存储。您可以启用 I/O—在创建数据库集群时优化了数据库集群上的存储,如下所示:

以下是如何启用的示例 I/O—使用创建集群时优化存储 Amazon CLI:

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

您可以确定集群是否在使用 I/O—使用任何方法优化存储 describe- 打电话。如果 I/O—优化存储已启用,调用返回存储类型字段设置为 iop1。