-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enhanced host monitoring plugin ver.2 (#764)
- Loading branch information
1 parent
077a4a4
commit 29ef106
Showing
31 changed files
with
1,786 additions
and
481 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,55 @@ | ||
name: Run Aurora Mysql Advanced Performance Tests | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
aurora-mysql-performance-tests: | ||
concurrency: AdvancedPerformanceTests-Aurora | ||
name: 'Run Aurora MySQL container advanced performance tests' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: 'Clone repository' | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 50 | ||
- name: 'Set up JDK 8' | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: 'corretto' | ||
java-version: 8 | ||
- name: 'Configure AWS credentials' | ||
uses: aws-actions/configure-aws-credentials@v4 | ||
with: | ||
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
aws-region: ${{ secrets.AWS_DEFAULT_REGION }} | ||
- name: 'Set up temp AWS credentials' | ||
run: | | ||
creds=($(aws sts get-session-token \ | ||
--duration-seconds 21600 \ | ||
--query 'Credentials.[AccessKeyId, SecretAccessKey, SessionToken]' \ | ||
--output text \ | ||
| xargs)); | ||
echo "::add-mask::${creds[0]}" | ||
echo "::add-mask::${creds[1]}" | ||
echo "::add-mask::${creds[2]}" | ||
echo "TEMP_AWS_ACCESS_KEY_ID=${creds[0]}" >> $GITHUB_ENV | ||
echo "TEMP_AWS_SECRET_ACCESS_KEY=${creds[1]}" >> $GITHUB_ENV | ||
echo "TEMP_AWS_SESSION_TOKEN=${creds[2]}" >> $GITHUB_ENV | ||
- name: 'Run performance tests (OpenJDK)' | ||
run: | | ||
./gradlew --no-parallel --no-daemon test-aurora-mysql-advanced-performance | ||
env: | ||
AURORA_CLUSTER_DOMAIN: ${{ secrets.DB_CONN_SUFFIX }} | ||
AURORA_DB_REGION: ${{ secrets.AWS_DEFAULT_REGION }} | ||
AWS_ACCESS_KEY_ID: ${{ env.TEMP_AWS_ACCESS_KEY_ID }} | ||
AWS_SECRET_ACCESS_KEY: ${{ env.TEMP_AWS_SECRET_ACCESS_KEY }} | ||
AWS_SESSION_TOKEN: ${{ env.TEMP_AWS_SESSION_TOKEN }} | ||
- name: 'Archive Performance Results' | ||
if: always() | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: 'performance-results' | ||
path: ./wrapper/build/reports/tests/ | ||
retention-days: 5 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
name: Run Aurora Postgres Advanced Performance Tests | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
aurora-postgres-performance-tests: | ||
concurrency: AdvancedPerformanceTests-Aurora | ||
name: 'Run Aurora Postgres container advanced performance tests' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: 'Clone repository' | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 50 | ||
- name: 'Set up JDK 8' | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: 'corretto' | ||
java-version: 8 | ||
- name: 'Configure AWS credentials' | ||
uses: aws-actions/configure-aws-credentials@v4 | ||
with: | ||
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
aws-region: ${{ secrets.AWS_DEFAULT_REGION }} | ||
- name: 'Set up temp AWS credentials' | ||
run: | | ||
creds=($(aws sts get-session-token \ | ||
--duration-seconds 21600 \ | ||
--query 'Credentials.[AccessKeyId, SecretAccessKey, SessionToken]' \ | ||
--output text \ | ||
| xargs)); | ||
echo "::add-mask::${creds[0]}" | ||
echo "::add-mask::${creds[1]}" | ||
echo "::add-mask::${creds[2]}" | ||
echo "TEMP_AWS_ACCESS_KEY_ID=${creds[0]}" >> $GITHUB_ENV | ||
echo "TEMP_AWS_SECRET_ACCESS_KEY=${creds[1]}" >> $GITHUB_ENV | ||
echo "TEMP_AWS_SESSION_TOKEN=${creds[2]}" >> $GITHUB_ENV | ||
- name: 'Run performance tests (OpenJDK)' | ||
run: | | ||
./gradlew --no-parallel --no-daemon test-aurora-pg-advanced-performance | ||
env: | ||
AURORA_CLUSTER_DOMAIN: ${{ secrets.DB_CONN_SUFFIX }} | ||
AURORA_DB_REGION: ${{ secrets.AWS_DEFAULT_REGION }} | ||
AWS_ACCESS_KEY_ID: ${{ env.TEMP_AWS_ACCESS_KEY_ID }} | ||
AWS_SECRET_ACCESS_KEY: ${{ env.TEMP_AWS_SECRET_ACCESS_KEY }} | ||
AWS_SESSION_TOKEN: ${{ env.TEMP_AWS_SESSION_TOKEN }} | ||
- name: 'Archive Performance Results' | ||
if: always() | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: 'performance-results' | ||
path: ./wrapper/build/reports/tests/ | ||
retention-days: 5 |
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
Oops, something went wrong.