Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Traffic Mirroring between environments #316

Open
kapyaar opened this issue Jan 21, 2024 · 0 comments
Open

Traffic Mirroring between environments #316

kapyaar opened this issue Jan 21, 2024 · 0 comments
Labels

Comments

@kapyaar
Copy link

kapyaar commented Jan 21, 2024

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request.
  • Please do not leave "+1" or "me too" comments. They generate extra noise for issue followers and do not help prioritize the request.

Tell us about your request
What do you want us to build?
Requesting a feature where I can mirror traffic from a production environment, to a test environment in the same application, or different application, with the same ease as a blue green deployment.

Or atleast, can you write a blog article where you have two environments in an application, and how to do the mirroring via VPC? so that if we submit a post data form to one env, the second env also gets the request, as well as the post data?

This will help tremendously. Currently, there is pretty much no examples if you search for "Traffic mirroring between eB environments".

**Is this request specific to an Elastic Beanstalk [platform]

NO

**What outcome are you trying to achieve, ultimately? What is the impact of not having this problem solved?

Ideally, the outcome would be to have somethng like the blue green deployment. Select source, destination, and set some filters, percentage of traffic to be mirrored, etc. I think all these things are currently available under the VPC traffic mirroring. If you can make it in an easy to use package within the EB, dream come true :)

Being able to mirror traffic into a test environment will help tremendously in testing updates to code/ platform/ etc without affecting production. This is important because, while the new code/ changes may work on its own, but exposing it to real traffic can briing out issues that can otherwise only be found once deployed, causing issues downtime etc.

**why is it hard/impossible to do right now?
Elastic Beanstalk is an easy platform for someone like me who is not a PRO. It does all the hardwork, we just need to deploy the code, and go from there. And the blue green deployment is more awesome. However, the one drawback is, there is no real way (AFAIK) to test something with real traffic. I did some extensive reading on VPC based mirroring, and watched tutorials, followed them, but they all talk about EC2 instances. I tried using the EC2 info for my env, and I even created a network load balancer, target group, etc and used that as the target, but I could not see the traffic coming through. Now, this is not to say it is not working. Most likely, I am missing something. I find it hard to get it working, and I would be surprised if it is just me.

Are you currently working around this issue?
Unfortunately, we do some fake traffic testing, and take a leap of faith, deploy the code. There are many times, we have to immediately revert back due to some issues that we did not find earlier, but could have been caught if they were exposed to real full traffic.

EDIT:
The method described in the following blog works. I think for you team, this should be ab easy integration into production?

https://aws.amazon.com/blogs/networking-and-content-delivery/mirror-production-traffic-to-test-environment-with-vpc-traffic-mirroring/

Additional context
Anything else we should know?
Nah. I think this is straightforward.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant