Merge "switch drools pdp image to new one"
[integration.git] / test / mocks / mass-pnf-sim / README.md
1 ### Mass PNF simulator
2 The purpose of this simulator is to mimic the PNF for benchmark purposes.
3 This variant is based on the PNF simulator and use several components.
4 The modification are focusing on the following areas:
5     -add a script configuring and governing multiple instances of PNF simualtor
6     -removing parts which are not required for benchmark purposes.
7     -add functionality which creates and maintains the ROP files
8     -add functionality to query the actual ROP files and construct VES events based on them
9
10
11
12 ###Pre-configuration
13 The ipstart should align to a /28 Ip address range start (e.g. 10.11.0.16, 10.11.0.32)
14
15 For debug purposes, you can use your own IP address as VES collector, use "ip" command to determine it.
16
17 Example:
18 ./mass-pnf-sim.py  --bootstrap 2 --urlves http://10.148.95.??:10000/eventListener/v7 --ipfileserver 10.148.95.??? --ipstart 10.11.0.16
19
20 Note that the file creator is started at a time of the bootstrapping.
21 Stop/start will not re-launch it.
22
23 ###Replacing VES for test purposes
24 `sudo nc -vv -l -k -p 10000`
25
26 ###Start
27 Define the amount of simulators to be launched
28 ./mass-pnf-sim.py  --start 2
29
30 ###Trigger
31 ./mass-pnf-sim.py  --trigger 2
32
33 ###Stop and clean
34 ./mass-pnf-sim.py  --stop 2
35 ./mass-pnf-sim.py  --clean
36
37 ###Verbose printout from Python
38 python3 -m trace --trace --count -C . ./mass-pnf-sim.py .....
39
40 ###Cleaning and recovery after incorrect configuration
41 docker stop $(docker ps -aq); docker rm $(docker ps -aq)