scripts: Scripts to replay and generate samba traffic
authorGary Lockyer <gary@catalyst.net.nz>
Wed, 28 Jun 2017 23:08:37 +0000 (11:08 +1200)
committerDouglas Bagnall <dbagnall@samba.org>
Thu, 17 Aug 2017 02:06:06 +0000 (04:06 +0200)
commit7057abcfcde4a7059448719e9abe08d18c9ec149
treeaabb270557bfae7ea8c5b185b31259ecd3649d0a
parent74ebcf6dfc84b6aab6838fa99e12808eb6b913d9
scripts: Scripts to replay and generate samba traffic

Scripts to generate representative network traffic and replay this to a
samba instance.  For load testing, performance profiling and capacity
planning.

traffic_learner  process a file generated by traffic_summary and
                 generate a model that can be used by traffic_replay to
                 generate samba network traffic.

traffic_replay   Replay a summary file generated by traffic_summary, or
                 use a model created by traffic_learner to generate
                 network traffic.

Signed-off-by: Gary Lockyer <gary@catalyst.net.nz>
Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Garming Sam <garming@catalyst.net.nz>
Pair-programmed-with: Garming Sam <garming@catalyst.net.nz>
Pair-programmed-with: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
Pair-Programmed-With: Tim Beale <timbeale@catalyst.net.nz>
21 files changed:
docs-xml/manpages/traffic_learner.7.xml [new file with mode: 0644]
docs-xml/manpages/traffic_replay.7.xml [new file with mode: 0644]
docs-xml/wscript_build
python/samba/emulate/__init__.py [new file with mode: 0644]
python/samba/emulate/traffic.py [new file with mode: 0644]
python/samba/emulate/traffic_packets.py [new file with mode: 0644]
python/samba/tests/blackbox/testdata/traffic-sample-very-short.model [new file with mode: 0644]
python/samba/tests/blackbox/testdata/traffic-sample-very-short.txt [new file with mode: 0644]
python/samba/tests/blackbox/testdata/traffic_learner.expected [new file with mode: 0644]
python/samba/tests/blackbox/testdata/traffic_replay.expected [new file with mode: 0644]
python/samba/tests/blackbox/traffic_learner.py [new file with mode: 0644]
python/samba/tests/blackbox/traffic_replay.py [new file with mode: 0644]
python/samba/tests/emulate/__init__.py [new file with mode: 0644]
python/samba/tests/emulate/traffic.py [new file with mode: 0644]
python/samba/tests/emulate/traffic_packet.py [new file with mode: 0644]
script/traffic_learner [new file with mode: 0755]
script/traffic_replay [new file with mode: 0755]
selftest/tests.py
source4/selftest/tests.py
testdata/traffic-sample-very-short.model [new file with mode: 0644]
testdata/traffic-sample-very-short.txt [new file with mode: 0644]