# Copyright 2024 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

apiVersion: v1
kind: ConfigMap
metadata:
  name: fio-config-gcs
data:
  fio.conf: |
    [global]
    name=random_files_test
    directory=/data
    filename_format=random_file.${POD_NAME}.$filenum
    ioengine=libaio
    direct=1
    group_reporting=1
    fadvise_hint=0
    runtime=300
    time_based=1
    unlink=1

    [job1]
    rw=rw
    rwmixread=50
    blocksize=16k
    openfiles=1000
    nrfiles=1000
    filesize=10k-30m
    thread=1

    [cleanup]
    stonewall
    rw=trim
