Skip to content

Commit

Permalink
Add Azure-hosted benchmarking workflows for Linux and Windows.
Browse files Browse the repository at this point in the history
This patch leverages the new benchmarking features added in cri-tools
in [this PR](kubernetes-sigs/cri-tools#894) to
add GitHub workflows for automatically running the benchmarks on
Azure-based VMs for both Linux and Windows, as well as adding a Python
script which generates plot graphs for the results.

Signed-off-by: Nashwan Azhari <nazhari@cloudbasesolutions.com>
  • Loading branch information
aznashwan committed Oct 26, 2022
1 parent d878d7d commit cbaa2b6
Show file tree
Hide file tree
Showing 5 changed files with 1,402 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/linux-benchmarks-trigger.yml
@@ -0,0 +1,34 @@
# Workflow intended to periodically run the Linux Benchmarks workflow.

name: Linux Benchmarks Trigger

on:
workflow_dispatch:
schedule:
# NOTE: benchmarks should run twice a month:
- cron: "0 0 1 * *"
- cron: "0 0 15 * *"

jobs:

triggerWinIntegration:
if: github.repository == 'containerd/containerd'
# NOTE(aznashwan, 6/6/2022): GitHub actions do not currently support referencing
# or evaluating any kind of variables in the `uses` clause, but this will
# ideally be added in the future in which case the hardcoded reference to the
# upstream containerd repository should be replaced with the following to
# potentially allow contributors to enable periodic benchmarks on forks as well:
# uses: "${{ github.repository }}/.github/workflows/linux-benchmarks.yml@${{ github.ref_name }}"
uses: containerd/containerd/.github/workflows/linux-benchmarks.yml@main
with:
containersNumber: 500
containersNumberParallel: 1
imagesNumber: 500
imagesNumberParallel: 1
podsNumber: 500
podsNumberParallel: 1
secrets:
AZURE_SUB_ID: "${{ secrets.AZURE_SUB_ID }}"
AZURE_CREDS: "${{ secrets.AZURE_CREDS }}"
GCP_SERVICE_ACCOUNT: "${{ secrets.GCP_SERVICE_ACCOUNT }}"
GCP_WORKLOAD_IDENTITY_PROVIDER: "${{ secrets.GCP_WORKLOAD_IDENTITY_PROVIDER }}"

0 comments on commit cbaa2b6

Please sign in to comment.