forked from opensearch-project/opensearch-migrations
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/main' into user-agent-console
Signed-off-by: Tanner Lewis <[email protected]>
- Loading branch information
Showing
49 changed files
with
1,073 additions
and
688 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
name: Jenkins | ||
|
||
on: | ||
push: | ||
branches-ignore: | ||
- 'backport/**' | ||
- 'dependabot/**' | ||
pull_request_target: | ||
types: [opened, synchronize, reopened] | ||
|
||
env: | ||
python-version: '3.11' | ||
|
||
permissions: | ||
contents: read # to fetch code (actions/checkout) | ||
|
||
jobs: | ||
rfs-e2e-aws-test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Determine Github repository and branch | ||
id: determine-repo-vars | ||
run: | | ||
if [[ "${GITHUB_EVENT_NAME}" == "pull_request_target" ]]; then | ||
branch_name="${{ github.event.pull_request.head.ref }}" | ||
pr_repo_url="https://github.com/${{ github.event.pull_request.head.repo.full_name }}.git" | ||
else | ||
branch_name="${{ github.ref_name }}" | ||
pr_repo_url="https://github.com/${{ github.repository }}.git" | ||
fi | ||
echo "Running jenkins test on repo: $pr_repo_url and branch: $branch_name" | ||
echo "branch_name=$branch_name" >> $GITHUB_OUTPUT | ||
echo "pr_repo_url=$pr_repo_url" >> $GITHUB_OUTPUT | ||
- name: Jenkins Job Trigger and Monitor | ||
uses: lewijacn/[email protected] | ||
with: | ||
jenkins_url: "https://migrations.ci.opensearch.org" | ||
job_name: "rfs-default-e2e-test" | ||
api_token: "${{ secrets.JENKINS_MIGRATIONS_GENERIC_WEBHOOK_TOKEN }}" | ||
job_params: "GIT_REPO_URL=${{ steps.determine-repo-vars.outputs.pr_repo_url }},GIT_BRANCH=${{ steps.determine-repo-vars.outputs.branch_name }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
TrafficCapture/dockerSolution/src/main/docker/otelCollector/README.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
## Monitoring Progress via Instrumentation | ||
|
||
The replayer and capture proxy (if started with the `--otelCollectorEndpoint` argument) emit metrics through an | ||
otel-collector endpoint, which is deployed within Migrations Assistant tasks as a sidecar container. The | ||
otel-collectors will publish metrics and traces to Amazon CloudWatch and AWS X-Ray. | ||
|
||
Some of these metrics will show simple progress, such as bytes or records transmitted. Other records can show higher | ||
level information, such the number of responses with status codes that match vs those that don't. To observe those, | ||
search for `statusCodesMatch` in the CloudWatch Console. That's emitted as an attribute along with the method and | ||
the source/target status code (rounded down to the last hundred; i.e. a status code of 201 has a 200 attribute). | ||
|
||
Other metrics will show latencies, the number of requests, unique connections at a time and more. Low-level and | ||
high-level metrics are being improved and added. For the latest information, see the | ||
[README.md](../../../../../../coreUtilities/README.md). | ||
|
||
Along with metrics, traces are emitted by the replayer and the proxy (when proxy is run with metrics enabled, e.g. by | ||
launching with --otelCollectorEndpoint set to the otel-collector sidecar). Traces will include very granular data for | ||
each connection, including how long the TCP connections are open, how long the source and target clusters took to send | ||
a response, as well as other internal details that can explain the progress of each request. | ||
|
||
Notice that traces for the replayer will show connections and Kafka records open, in some cases, much longer than their | ||
representative HTTP transactions. This is because records are considered 'active' to the replayer until they are | ||
committed and records are only committed once _all_ previous records have also been committed. Details such as that | ||
are defensive for when further diagnosis is necessary. |
6 changes: 4 additions & 2 deletions
6
...ensearch/migrations/trafficcapture/proxyserver/testcontainers/HttpdContainerTestBase.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 3 additions & 4 deletions
7
...ensearch/migrations/trafficcapture/proxyserver/testcontainers/KafkaContainerTestBase.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.