community-libs / vaurien

TCP hazard proxy
https://vaurien.readthedocs.io
Other
379 stars 39 forks source link

Not able to configure the Vaurien behaviour #56

Open kapilkumar04 opened 7 years ago

kapilkumar04 commented 7 years ago

Hi, I tried to install vaurien on my application maching and tried to add delay in backend request. I am not able to observe the delay in back end application. Please suggest.

Steps : 1) Install vaurien on application machine.: pip install vaurien 2) run the command to add delay : vaurien --protocol http --proxy localhost:8000 --backend systemtestingteam-b-back.sqa.mykronos.internal:80 --behavior 100:delay --behavior-delay-sleep 100 3) result :

"2017-03-31 09:24:48 [14926] [INFO] Starting the Chaos TCP Server 2017-03-31 09:24:48 [14926] [INFO] Options: 2017-03-31 09:24:48 [14926] [INFO] proxies from localhost:8000 to systemtesting-b-back.int.sqa.mykronos.com:80 2017-03-31 09:24:48 [14926] [INFO] timeout: 30 2017-03-31 09:24:48 [14926] [INFO] stay_connected: 0 2017-03-31 09:24:48 [14926] [INFO] pool_max_size: 100 2017-03-31 09:24:48 [14926] [INFO] pool_timeout: 30 2017-03-31 09:24:48 [14926] [INFO] async_mode: 1"

4) when access the back end application , not observe any type of delay to access the application

Note : "systemtesting-b-back.int.sqa.mykronos.com:80" is my backend application and running the vaurien on my front end application.