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

Is Redis Cluster/ PostGresDB Connection(based on master/slave architecture) supported for ToxiProxy ? #557

Open
Anu5399 opened this issue Jan 28, 2024 · 0 comments

Comments

@Anu5399
Copy link

Anu5399 commented Jan 28, 2024

Hi All,
I tried to use toxiproxy for creating a proxy which will listen to redis cluster and toxicity can be added to the proxy. So the usecase is there is an API "A" which internally connect to the redis cluster and fetches some value and return the result as the response to the API .

Also to expose the toxiproxy port, i have used haproxy which is on same server as of toxiproxy. So whatever request is coming to 5003 port , haproxy is redirecting it to the localhost:8474 in the VM.

So proxies and toxics can be created using this.

Now proxy is applied at redis level, so in the microservice in the config , in place of redis host and port, vm host and port on which proxy is listening for redis as per the proxy created earlier.

Now when i'm making an api call then the api connects to toxiproxy and i'm able to see it in the toxiproxy logs, but after that toxiproxy is not able to forward the connection menitoned in the upstream value which is the host and port for actual redis cluster.
It throws error : Source terminated / use of closed network connection

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

No branches or pull requests

1 participant