0

Simply put using Nginx I am trying to mirror all the traffic hitting one of our apps, app A to a newly deployed test app. I know that there is the mirror module but I was wondering if there is any other way to implement this? Even if it's not thru Nginx.

Cheers,

Omera
  • 15
  • 4
  • there is a directive called post_action, but I am not sure if it will stop any response from the test app. – Omera Mar 29 '23 at 05:50
  • 1
    Does this answer your question? [Mirroring Traffic with Nginx](https://serverfault.com/questions/513859/mirroring-traffic-with-nginx) – Gerald Schneider Mar 29 '23 at 06:57

2 Answers2

0

You could use your physical hardware or maybe even the cloud service.

You could also do it with your linux server ( see example here ).

I'm guessing running it on the cloud will cost money, while running it on the VM will demand some CPU - but I never tried to do that.

Netan
  • 111
  • 2
0

I ended up upgrading nginx as the post_action directive didn't work for me.

Omera
  • 15
  • 4