Project

General

Profile

Actions

Feature #7032

closed

teuthology: thrash cache pool (add cache; wait; drain cache; disable; repeat)

Added by Sage Weil over 10 years ago. Updated over 9 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
-
Target version:
% Done:

0%

Source:
Development
Tags:
Backport:
Reviewed:
Affected Versions:

Description

we want to do this to start:

ceph osd pool create base 123
ceph osd pool create cache 123
ceph osd tier add base cache
ceph osd pool set cache target_max_objects 1000 # or something

in one thread, run a workload against the base pool.

in parallel, in a loop:

ceph osd tier cache-mode cache writeback
ceph osd tier set-overlay base cache
sleep 120
ceph osd tier cache-mode cache forward
rados -p cache cache-try-flush-evict-all
rados -p cache cache-flush-evict-all
ceph osd tier unset-overlay base
sleep 30

the trick is that the loop should terminate when the workload finishes. either need a generic teuthology task to run a parallel job and kill it when it's sibling finishes, or need to make a simple teuthology task to start the above loop in a background thread and stop it in the finally: section.

the workload itself can be something like the below, which specifically targest the base pool (and, implicitly, the cache pool, when it gets enabled):

- rados:
    clients: [client.0]
    pools: [base]
    ops: 4000
    objects: 500
    op_weights:
      read: 100
      write: 100
      delete: 50
      copy_from: 50
      flush: 50
      try_flush: 50
      evict: 50
      snap_create: 50
      snap_remove: 50
      rollback: 50
Actions #1

Updated by Sage Weil over 10 years ago

  • Target version changed from v0.75 to v0.76a
Actions #2

Updated by Samuel Just over 10 years ago

  • Target version deleted (v0.76a)
Actions #3

Updated by Ian Colle about 10 years ago

  • Target version set to v0.77
Actions #4

Updated by Ian Colle about 10 years ago

  • Assignee set to Sage Weil
Actions #5

Updated by Sage Weil about 10 years ago

  • Description updated (diff)
  • Status changed from New to 12
  • Assignee deleted (Sage Weil)
  • Source changed from other to Development
Actions #6

Updated by Sage Weil about 10 years ago

  • Description updated (diff)
Actions #7

Updated by Sage Weil about 10 years ago

  • Target version changed from v0.77 to 0.78
Actions #8

Updated by Sage Weil about 10 years ago

  • Target version changed from 0.78 to 0.79
Actions #9

Updated by Sage Weil about 10 years ago

  • Project changed from Ceph to teuthology
  • Target version deleted (0.79)
Actions #10

Updated by Sage Weil about 10 years ago

  • Target version set to sprint3
Actions #11

Updated by Ian Colle about 10 years ago

  • Target version changed from sprint3 to sprint4
Actions #12

Updated by Sage Weil about 10 years ago

  • Assignee set to Sage Weil
Actions #13

Updated by Ian Colle about 10 years ago

  • Target version changed from sprint4 to sprint5
Actions #14

Updated by Ian Colle almost 10 years ago

  • Target version changed from sprint5 to sprint6
Actions #15

Updated by Ian Colle almost 10 years ago

  • Target version changed from sprint6 to sprint7
Actions #16

Updated by Sage Weil almost 10 years ago

  • Target version changed from sprint7 to sprint8
Actions #17

Updated by Ian Colle almost 10 years ago

  • Status changed from 12 to In Progress
Actions #18

Updated by Sage Weil almost 10 years ago

  • Target version changed from sprint8 to sprint9
Actions #19

Updated by Sage Weil almost 10 years ago

  • Status changed from In Progress to Pending Backport
Actions #20

Updated by Zack Cerza almost 10 years ago

  • Target version changed from sprint9 to sprint10
Actions #21

Updated by Ian Colle over 9 years ago

  • Target version changed from sprint10 to sprint12
Actions #22

Updated by Sage Weil over 9 years ago

  • Status changed from Pending Backport to Resolved
Actions

Also available in: Atom PDF