akash-network / awesome-akash

Awesome List of Akash Deployment Examples
Apache License 2.0
308 stars 223 forks source link

SDL for testing persistent storage subsystem of an Akash provider #512

Open shimpa1 opened 6 months ago

Dimokus88 commented 5 months ago

Hello @shimpa1 ! I'm not sure that fio needs so many installations of additional components. Using ssh is also unnecessary for such a test. Unless, of course, we are talking only about testing the persistent storage of providers. Although I may be wrong, let me know what you think about it.

UPD. Add info in root README.md about this template.

Perhaps this solution will also solve the same tasks:

---
version: "2.0"

services:
  app:
    image: ubuntu:22.04
    expose:
      - port: 80
        to:
          - global: true
    command:
      - "bash"
      - "-c"
    args:
      - 'apt-get update ; apt-get upgrade -y ; apt-get install -y fio ; date ;
      fio --filename=/root/fio/fio_random_rw_iops_1 --size=90GB --direct=1 --rw=randrw --bs=4k --ioengine=libaio --iodepth=256 --runtime=120 --numjobs=4 --time_based --group_reporting --name=iops-test-job --eta-newline=1 ;
      echo Test complited! ; sleep infinity '
    params:
      storage:
        fio-test:
          mount: /root/fio
          readOnly: false
profiles:
  compute:
    app:
      resources:
        cpu:
          units: 1.0
        memory:
          size: 1Gi
        storage:
          - size: 10Gi
          - name: fio-test
            size: 100Gi
            attributes:
              persistent: true
              class: beta3
  placement:
    akash:
      attributes:
      pricing:
        app:
          denom: uakt
          amount: 10000
deployment:
  app:
    akash:
      profile: app
      count: 1
shimpa1 commented 2 weeks ago

hey Dimokus!

Of course, please do any changes you deem neccessary!

Dimokus88 commented 2 weeks ago

Hey @shimpa1 ! Add info in root README.md (awesome-akash repo) about this template.