Skip to content

Instantly share code, notes, and snippets.

@tahmmee
Last active April 20, 2017 15:49
Show Gist options
  • Save tahmmee/33d27816fc1663c0687c60289a0c6265 to your computer and use it in GitHub Desktop.
Save tahmmee/33d27816fc1663c0687c60289a0c6265 to your computer and use it in GitHub Desktop.
create delete with gideon
# start gideon loader (let it run in background)
-
image: sequoiatools/gideon
command: "kv --ops 1000 --create 100 --hosts {{.Orchestrator}} --bucket {{.Bucket}}"
alias: GideonContainer
# monitor item count
-
template: wait_for_items
args: "{{.Bucket}}, 100000"
wait: true
# stop gideon data loading
-
client:
op: rm
container: GideonContainer
# run delete queries for 5 mins
-
template: attack_query
args: "0, 10, {{$.QueryNodePort}},
delete from default where rating > 0 limit 100"
duration: 300
# repeat?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment