Traffic Capture Verification - opensearch-project/opensearch-migrations GitHub Wiki
This guide will describe how once the traffic capture proxy is deployed the captured traffic can be verified.
Replication setup and validation
- Navigate to Migration ECS Cluster in AWS Console
- Navigate to Capture Proxy Service
- Verify > 0 desired count and running
- if not, update service to increase to at least 1 and wait for startup
- Within "Load balancer health" on "Health and Metrics" tab, verify all targets are reporting healthy
- This means the ALB is able to connect to the source cluster through the capture proxy
- Navigate to the Migration Console Terminal
- Execute
console kafka describe-topic-records
- Wait 30 seconds for another elb health check to be recorded
- Execute
console kafka describe-topic-records
again, Verify RECORDS increased between runs - Execute
console replay start
to start the replayer - Run
tail -f /shared-logs-output/traffic-replayer-default/*/tuples/tuples.log | jq '.targetResponses[]."Status-Code"'
to confirm that the Kafka requests were sent to the the target and that it responded as expected... If responses don't appear- check that the migration-console can access the target cluster by running
./catIndices.sh
, which should show indices on the source and target. - confirm that messages are still being recorded to Kafka.
- check for errors in the replayer logs ("/migration/STAGE/default/traffic-replayer-default") via CloudWatch
- check that the migration-console can access the target cluster by running
- (Reset) Update Traffic Capture Proxy service desired count back to original value in ECS
Troubleshooting
Health checks response with 401/403 status code
If the source cluster is configured to require authentication the capture proxy will not be able to verify beyond receiving 401/403 status code for ALB healthchecks
Traffic does not reach the source cluster
Verify the Source Cluster allows traffic ingress from Capture Proxy Security Group.
Look for failing tasks by navigating to Traffic Capture Proxy ECS Tasks. Change "Filter desired status" to "Any desired status" in order to see all tasks and navigate to logs for stopped tasks.