-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
docker-compose example is broken #6521
Comments
Thanks @deepthi - creating this was on my to-do list just hadn't gotten around to it. |
@jamisonhyatt hi 👋 ! I'd like to understand better what it is you're trying to achieve -- we haven't been looking into Docker compose for a while and have been looking at alternate paths. I'd like to understand whether those other paths can work out for whatever it is you're doing. |
Short version: I was using the docker-compose to run the complete Vitess stack (for lack of a better term) for local development/testing and CI integration testing. To be fair, nothing is stopping me from completely rolling my own. As someone completely new to Vitess I will say examples/compose probably saved me hours, if not days, of time figuring out all the different layers which needed to be wired up to get it running locally. I had to make my own modifications to the resulting compose & included bash scripts, but it was working great (before it broke.) Longer version: I was working on a feature to add a DB to an existing service. Production was going to run against Vitess, so having it running locally was really helpful in making sure I wasn't using things that work in mysql, but do not work in Vitess. I'm also a strong believer in being able to develop locally without a reliance on the network (e.g., I shouldn't have to be VPN'd to get the things done) and pristine CI test environments. Spinning up Vitess as an integration test dependency on every CI run via compose was a good way to maintain high confidence that everything was working as expected. IE you can run your service on your laptop with a vitess sharded keyspace and be confident that you haven't developed something that will fall down at deploy time (or worse.) |
@jamisonhyatt sorry to have dropped this. We recently published a docker build/image called
All in a single docker image, no I wonder if that's something that might satisfy your needs. Please let me know either way. I'll meanwhile also look into what broke in our |
#6584 fixes |
I don't think I really mind whether it's one container or many via compose, but let me be a little naive - It's my understanding that some queries against an unsharded schema are supported which are not allowed against a sharded schema. So, if someone testing their application which has no vschema, then they'd be fine with this container. However, if they need to test against a sharded vschema, they would need utilize compose. Is that true, or have I misunderstood? |
@jamisonhyatt I believe you're right, but I'll defer to @deepthi on this. (noting that the issue was auto-closed by merging #6584, but let's keep the discussion running) |
Even with a single shard, you can define a sharded vschema and that will immediately start affecting how queries are handled. |
@jamisonhyatt the example still uses the (old) discoverygateway. are you still using that or have you switched to tabletgateway? |
Feel free, I am currently pointing to a MySQL instance in dev/test and have an issue to switch back to the local container, but with a sharded vschema since it appears that will satisfy our needs. Thanks! |
Overview of the Issue
docker-compose example doesn't work.
Reported by @jamisonhyatt on 7.0 (docker tag v7.0.0), I have confirmed on master.
Reproduction Steps
Follow the steps in https://github.com/vitessio/vitess/blob/master/examples/compose/README.md
Run any query against vtgate.
Binary version
vitess/base:latest
Operating system and Environment details
Log Fragments
https://gist.github.com/deepthi/c2dc42858d47c92895f2536615b8ef6e
The text was updated successfully, but these errors were encountered: