Skip to content

Why does Neptune replication only support replicating ongoing requests but not missing data if it is using commitNum to replicate data?

0

Neptune1-to-Neptune2 replication only replicates in-flight requests enabled after replication, but does not replicate data that exists in Cluster 1 and is missing in the Cluster 2 database.

If it relies on Neptune streams and uses the TRIM_HORIZON and Latest iterator to list all data with unprocessed replication or DynamoDB tags, should the remaining stream records without replication tags should also be replicated?

asked 2 years ago189 views

1 Answer
0

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 StartingCheckpoint in the stack is set to the proper commitNum:opNum combination based on the last commitNum/opNum seen on the restored (target) cluster. (Format would be something like 245: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).

AWS

answered 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.