stress.cfg 1.61 KB
Newer Older
Julien Muchembled's avatar
Julien Muchembled committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79
[buildout]
extends =
  ../../../component/vm-img/debian.cfg
parts =
  stress

[stress]
<= vm-run-base
smp = 8
# NEO processes take ~2G with default settings,
# the rest is mainly for the DB (which is in tmpfs)
mem = 4096
duration = 3600
stress-args =
run-args = -L .24 -r 0
mount.slapos = ${:_profile_base_location_}/../../..
command =
  mkdir log software
  cd software
  cat <<EOF >buildout.cfg
  [buildout]
  extends =
    /mnt/slapos/software/neoppod/software.cfg
    /mnt/slapos/software/neoppod/sqlite-mixin.cfg
  parts =
    neoppod-develop
    neoppod
  develop = /mnt/slapos
  extensions -= slapos.rebootstrap
  [slapos-cookbook-develop]
  recipe =
  setup =
  [neoppod-repository]
  repository = /mnt/neoppod
  shared = true
  [neoppod]
  eggs +=
    NetfilterQueue
    gevent
  interpreter = py
  [versions]
  slapos.cookbook =
  NetfilterQueue = 0.8.1
  # use the following components from the OS
  # and don't build dependencies for nothing
  [git]
  recipe =
  location = /usr
  environment =
  configure-options =
  [openssl]
  recipe =
  location = /usr
  configure-options =
  make-options =
  make-targets =
  environment =
  [perl]
  recipe =
  location = /usr
  configure-command =
  environment =
  [pkgconfig]
  recipe =
  location = /usr
  environment =
  [python2.7]
  recipe =
  location = /usr
  environment =
  [xz-utils]
  recipe =
  location = /usr
  EOF
  python -S /mnt/buildout/bin/buildout bootstrap
  MAKEFLAGS=-j${:smp} bin/buildout
  df ~ /tmp >&2
  screen -L -Logfile $PARTDIR/stdout -D -m sudo /mnt/slapos/software/neoppod/stress-testing/stress $PARTDIR ${:duration} ${:stress-args} -- ${:run-args}
  df ~ /tmp >&2