Skip to content

InterSyntheseSlaveSimulator

albanmartel edited this page May 6, 2014 · 4 revisions

InterSyntheseSlaveSimulator

We have developped small scripts to simulate slaves to load an inter_synthese master (see 10-Storage-.

They are in the repository trunk/utils :

  • /utils/slave_simu.py is a pyhton script to simulate one slave
  • /utils/simu_multi_slaves.sh is a bash script used to launch as much slave simulators as user wants

Examples

Launch one slave simulator for slave_id 26177447711998147 with call to update_service on master every 2 seconds

python slave_simu.py localhost:8080 26177447711998147 2

Launch 10 slave simulators in the same time

./simu_multi_slaves.sh 26177447711998152 26177447711998153 26177447711998154 261774477119981525 26177447711998156 26177447711998157 26177447711998158 26177447711998159 26177447711998160 26177447711998161
Clone this wiki locally