Skip to content

Git designed for AI agents.

5.6 KB
Raw Blame
---
project: "gitaly-benchmark-0150d6cf"
benchmark_region: "us-central1"
benchmark_zone: "us-central1-a"

# Enable to use regional persistent disk https://cloud.google.com/compute/docs/disks/regional-persistent-disk
# Regional PD is supported on only E2, N1, N2, and N2D machine type VMs.
use_regional_disk: false
# One of these zones must be the zone for benchmark_zone
regional_disk_replica_zones: ["us-central1-a", "us-central1-b"]

# The image to use for the client node and all Gitaly nodes.
os_image: "ubuntu-os-cloud/ubuntu-2204-lts"

# Configuration parameters for the sole client instance.
client:
  machine_type: "n2d-standard-4"
  boot_disk_size: 20
  boot_disk_type: "pd-balanced"
  # The client clones Gitaly in order to consume the protobuf definitions.
  # This revision should be set to the latest of the gitaly_revision values
  # specified for the gitaly_instances below.
  gitaly_revision: HEAD

# Configuration parameters for a collection of N Gitaly nodes. Benchmarks will execute for each Gitaly
# node.
gitaly_instances:
  # Try to use a short name, otherwise we'll exceed the GCP resource name length of 63 characters
  - name: "large"
    machine_type: "n2d-standard-16"
    boot_disk_type: "pd-balanced"
    boot_disk_size: 20
    gitaly_revision: HEAD
    disk_size: 100
    disk_type: "pd-balanced"
    # ==== Standard Filesystem settings  ====
    # Btrfs setup
    # filesystem: "btrfs"  # Options: ext4, xfs, btrfs
    # fs_mount_opts: "noatime,compress=zstd,space_cache=v2,ssd,discard=async"
    # fs_format_opts: "-f -n 16k"
    # XFS setup
    # filesystem: "xfs"  # Options: ext4, xfs, btrfs
    # fs_mount_opts: "defaults,discard"
    # fs_format_opts: "-f"
    # ext4 setup
    filesystem: "ext4" # Options: ext4, xfs, btrfs
    fs_mount_opts: "defaults,discard"
    fs_format_opts: ""

    # These are manually templated and don't translate directly to config.toml entries.
    config:
      # Whether transactions should be enabled.
      transactions: true
    environment:
      # Arbitrary environment variables. Note that SNAPSHOT_DRIVER doesn't actually do anything; it
      # just serves as an example.
      SNAPSHOT_DRIVER: deepclone
      # Enabling all feature flags, will enable housekeeping via the 'housekeeping_middleware'
      # featureflag.
      GITALY_TESTING_ENABLE_ALL_FEATURE_FLAGS: true

# A list of repositories to be cloned onto the repositories disk, along with test inputs to be used
# for RPC calls. This section of the configuration is re-serialised into JSON and provided to the
# K6 script.
#
# NOTE: you may wish to delete some of these entries, otherwise benchmarking setup may take a while
# to clone each repo.
repositories:
  - name: git
    # Whether this repository should be tested. This toggle is read by the K6 script.
    include_in_test: true
    # Which reference backend to use. This defines how the repository will be cloned.
    reference_backend: files
    remote: "https://gitlab.com/gitlab-org/git.git"
    revision: "2462961280690837670d997bde64bd4ebf8ae66d"
    additional_refs: 200000
    # Test data to be used as RPC inputs. The K6 script will randomly choose out of these available
    # inputs.
    testdata:
      commits:
        - "fea9d18c534a445ef6e488d8ee711fa92fa0e6bd"
        - "0a15bb634cf005a0266ee1108ac31aa75649a61c"
        - "217e4a23d76fe95a0f6ab0f6159de2460db6fcd9"
      refs:
        - "refs/heads/master"
        - "refs/heads/next"
        - "refs/tags/v2.50.0"
      files:
        - "README.md"
        - "t/lib-diff.sh"
        - "packfile.c"
      directories:
        - "t"
        - "Documentation"
        - "git-gui"
  - name: git-reftable
    include_in_test: true
    reference_backend: reftable
    remote: "https://gitlab.com/gitlab-org/git.git"
    revision: "2462961280690837670d997bde64bd4ebf8ae66d"
    additional_refs: 200000
    testdata:
      commits:
        - "fea9d18c534a445ef6e488d8ee711fa92fa0e6bd"
        - "0a15bb634cf005a0266ee1108ac31aa75649a61c"
        - "217e4a23d76fe95a0f6ab0f6159de2460db6fcd9"
      refs:
        - "refs/heads/master"
        - "refs/heads/next"
        - "refs/tags/v2.50.0"
      files:
        - "README.md"
        - "t/lib-diff.sh"
        - "packfile.c"
      directories:
        - "t"
        - "Documentation"
        - "git-gui"
  - name: gitlab
    include_in_test: true
    reference_backend: files
    remote: "https://gitlab.com/gitlab-org/gitlab.git"
    revision: "8f3978675aa4df643cff5a01a8e1896ae754685a"
    additional_refs: 1000000
    testdata:
      commits:
        - "875ffb690e25eb8c98797b5641c6c16c71454b73"
        - "3074e43761003e2566ea604053fe4988774d2896"
        - "9ace97496c56335c5739c226853b468afd962830"
      refs:
        - "refs/heads/master"
        - "refs/tags/v18.1.5-ee"
        - "refs/tags/v17.11.6-ee"
      files:
        - "README.md"
        - "lib/gitaly/server.rb"
        - "ee/app/graphql/resolvers/epics_resolver.rb"
      directories:
        - "app"
        - "rubocop"
        - "qa"
  - name: gitaly
    include_in_test: true
    reference_backend: files
    remote: "https://gitlab.com/gitlab-org/gitaly.git"
    revision: "4d78df8cb5c6b3abfef5530830dba6c67d9d4c53"
    additional_refs: 500000
    testdata:
      commits:
        - "765d81272feb53bcc0c50199183b4514c5ef7a73"
        - "25965387d1a0a91d226912649180f38c04d89a36"
        - "552d12d94dd24ad8dff93856e77a08b6a96f1d3e"
      refs:
        - "refs/heads/master"
        - "refs/tags/v18.1.5"
        - "refs/tags/v17.11.7"
      files:
        - "README.md"
        - "internal/gitaly/rangediff/range_diff_test.go"
        - "proto/go/gitalypb/blob.pb.go"
      directories:
        - "internal"
        - "proto"