Conversation
There was a problem hiding this comment.
-
change from
:memory:tofile::memory:?mode=memory&cache=shared, because:memory:will open a new snapshot of the database for any new sqlite connection. The only reason you didn't notice a problem is that theorchestratorcode forces a single connection in the pool; that's because I've ran into deadlocks in the past that I couldn't solve. Ideally these can be solved sometime in the future, but thenfile::memory:?mode=memory&cache=sharedmust be used or ese everything breaks. -
Do you still need help with
CGOand Docker? I can look into that.
Removed CLI mode from orchestrator main. Now, the only mode is http. So, that argument is now unnecessary.
(iterating inline comment) CLI is used in integration tests; a but like vitess' endtoend tests run command line vtctl. In that sense it's useful to keep. Unless you convert all integrated tests to run orchestrator-client, which is some undertaking.
Disabled hostname resolutions: This was not working inside kubernetes. Again, the vitess topo provides authoritative info for hostnames alreay.
Is it possible, though, that when you SHOW PROCESSLIST or SHOW SLAVE STATUS on some user's MySQL server, the hostname from the master/replicas does not match the way Vitess thinks it should show? If that happens, then orchestrator will not build the topology view correctly. I'm concerned that we are unable to verify that, because who knows what setups different users may have.
I'd suggest restoring hostname resolutions to be on the safe side.
Makefile
Outdated
docker/lite/Dockerfile.alpine
Outdated
docker/lite/Dockerfile.alpine
Outdated
examples/local/orc_test.sh
Outdated
There was a problem hiding this comment.
| # Copyright 2019 The Vitess Authors. | |
| # Copyright 2020 The Vitess Authors. |
There was a problem hiding this comment.
oh wow 🤞 hope this works 😅
There was a problem hiding this comment.
ah, nice! I like the Undo!
sougou
left a comment
There was a problem hiding this comment.
I'll answer the main comments separately.
go/cmd/orchestrator/main.go
Outdated
There was a problem hiding this comment.
We will have to convert. I'll explain in the main answer.
go/vt/orchestrator/app/cli.go
Outdated
There was a problem hiding this comment.
These were removed because they conflict with the new durability plugin. Even you set it here, the plugin will undo the change if it notices that the setting doesn't agree with its expectations.
There was a problem hiding this comment.
The comment applies to the error check and nil return. It says that we should not ignore this error. LMK if there is a better way to phrase it.
Done
CGO works now.
I had to remove the CLI because there was no easy way to change the operator framework to add
I wasn't too sure about this, which is why the core code is still there and we can resurrect it if we run into issues. But enabling hostname resolution doesn't work in kubernetes. Those pod names masquerading as hostnames was causing confusion. I'm hoping we won't have to do this because Vitess has some cloud-friendly way of resolving hostnames. So, blindly trusting the ones provided by vitess should just work. 🤞 |
The issue is not that; I'm happy to trust the name resolving provided by vitess, that's fine. But, do we absolutely know for sure that if I |
Signed-off-by: Sugu Sougoumarane <ssougou@gmail.com>
Signed-off-by: Sugu Sougoumarane <ssougou@gmail.com>
Signed-off-by: Sugu Sougoumarane <ssougou@gmail.com>
Signed-off-by: Sugu Sougoumarane <ssougou@gmail.com>
Signed-off-by: Sugu Sougoumarane <ssougou@gmail.com>
Signed-off-by: Sugu Sougoumarane <ssougou@gmail.com>
Signed-off-by: Sugu Sougoumarane <ssougou@gmail.com>
752a5de to
93d7efe
Compare
This seems to work fine. I just brought up a cluster and looked at the replica info. They show up as IP in the UI also. I think it woks fine because we also use the same IP while wiring up the replicas using |

Since we're moving iteratively, the individual commits are not necessarily holistic. So, I'm combining everything done so far into one PR:
vitess/litecontainer.