Modifying a Neptune Analytics graph
You can change the settings of a Neptune Analytics graph to accomplish tasks such as changing public connectivity, its memory, or its graph type: a provisioned graph or one of the Neptune Graph Sessions.
It is recommended that you test any changes using a test graph before modifying any production graphs, so that you are able to fully understand the impact of each change.
Memory scaling
Neptune Analytics is a memory-optimized graph database engine for analytics, which stores data in-memory to enable optimal
performance for algorithmic and analytical workflows. A Neptune Analytics graph can have the instance size upscaled or
downscale the database to a smaller or larger memory size by updating the graph to higher m-NCU. The minimum
size of the mNCU chosen must be capable of storing all the data in the graph, smaller mNCU values than that
required by the graph will result in ValidationException errors.
To change the memory, call UpdateGraph with a new computeConfiguration. For example,
the following command scales a provisioned graph to 256 m-NCUs:
aws neptune-graph update-graph \ --graph-identifierg-0123456789\ --compute-configuration '{"provisionedGraph": {"memory": 256}}'
The provisionedMemory parameter of UpdateGraph is deprecated. Use
computeConfiguration instead.
The computeConfiguration parameter is required on UpdateGraph, including when
you change other settings.
Switching between sessions and provisioned graphs
You can also use UpdateGraph to switch a graph between a provisioned graph and a
graph session. A session can be scaled up to a provisioned graph,
and a provisioned graph can be scaled down to a session, as long as the data in the graph fits within the
session.
A session has a starting size of 4 or 8 s-NCU. Its memory grows above the starting size when the workload
needs it. Its CPU bursts to about twice the starting vCPU at no extra charge. When a session reaches the
burst limit for its starting size, the session is throttled. To get more capacity, call UpdateGraph to
change the starting size to 8 s-NCU, or to convert the session to a provisioned graph.
The following example converts a session to a provisioned graph with 32 m-NCUs:
aws neptune-graph update-graph \ --graph-identifierg-0123456789\ --compute-configuration '{"provisionedGraph": {"memory": 32}}'
The following example converts a provisioned graph to a session. To change an existing session's starting
size, run the same command on the session with the new minMemory value.
aws neptune-graph update-graph \ --graph-identifierg-0123456789\ --compute-configuration '{"graphSession": {"minMemory": 8}}'