- Newest
- Most votes
- Most comments
Neptune does not begin tracking changes until Neptune Streams is enabled on the source cluster (https://docs.aws.amazon.com/neptune/latest/userguide/streams-using-enabling.html). Even if you attempted to use TRIM_HORIZON, you would only get the latest commitNum after Streams was enabled.
(I'm not sure I follow the reasoning around DynamoDB tags. Neptune doesn't use DynamoDB tags internally as part of its Streams implementation. The only part of the architecture that uses DynamoDB is the Neptune Streams Poller (https://docs.aws.amazon.com/neptune/latest/userguide/streams-consumer-setup.html). Within the Poller architecture, a single row DynamoDB table is used to maintain the checkpoint for the poller.)
If you're looking to configure Neptune-to-Neptune Streams between two clusters, the best approach is as follows:
- Before creating a target cluster, enable Streams on the source cluster.
- Using either Fast Cloning (https://docs.aws.amazon.com/neptune/latest/userguide/manage-console-cloning.html) or restoring from a snapshot (taken after enabling Streams), create a new cluster based on the source cluster's data. This will also copy the current state of the Streams log into the new cluster.
- Launch the Neptune-to-Neptune Streams stack. Ensure that the
StartingCheckpointin the stack is set to the propercommitNum:opNumcombination based on the last commitNum/opNum seen on the restored (target) cluster. (Format would be something like245:1). This will allow the poller to begin to pick up any changes made after the restored cluster was created (or from when the snapshot was created after Streams was enabled).
This process will be much faster than potentially needing to iterate across all objects in the source cluster (even if the Streams log had those changes).
answered 2 years ago
Relevant content
- AWS OFFICIALUpdated 2 years ago
