Shopify / Shopify/toxiproxy

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

Open
#557 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Go
Stars
12.4k
Forks
510
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No source files or tests are named. Start by comparing the direct Redis-cluster connection with the HAProxy-to-ToxiProxy path and reviewing the ToxiProxy logs around the “Source terminated” error; done means determining whether the proxy configuration supports the upstream cluster or documenting the specific forwarding limitation.

Written by the indexing model from the issue text.

Assessment

Tech stack
postgresql, redis
Domain
databases
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.