-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Add scylladb #8002
base: main
Are you sure you want to change the base?
Add scylladb #8002
Conversation
ca6c8ff
to
ff3b42c
Compare
ff3b42c
to
86ed2cb
Compare
Thanks @mkorolyov , interested in this as well |
I wish there was a way NOT to provide your own scylla.yaml, but merge your defaults with the default scylla.yaml - the end result is that you might be missing some new defaults if you bring your own scylla.yaml. |
fix typos in docs Co-authored-by: Yaniv Kaul <[email protected]>
This looks like a separate feature for merging config files. Usually what I used to see in a majority of the applications is that you are using the default config file and overriding it with ENVs or flags or providing your own config file. Providing own config file which will still be merged with some default looks like implicit behavior which in my opinion will confuse users. WDYT? |
Any updates on merging this? |
Yes, my ask is exactly this - let's use the default Scylla YAML that comes with Scylla, and allow overriding values in it. |
this.enableJmxReporting = false; | ||
|
||
withEnv("CASSANDRA_SNITCH", "GossipingPropertyFileSnitch"); | ||
withEnv("JVM_OPTS", "-Dcassandra.skip_wait_for_gossip_to_settle=0 -Dcassandra.initial_token=0"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
those are not relevant to scylla, you need commandline option for skip_wait_for_gossip_to_settle
addExposedPort(CQL_PORT); | ||
this.enableJmxReporting = false; | ||
|
||
withEnv("CASSANDRA_SNITCH", "GossipingPropertyFileSnitch"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this needs to be checked, scylla docker doesn't use this variable
Hello folks. Any updates on this one ? ;) |
Hi, I'll review the PR once the other comments have been addressed. It is great seeing Scylla team reviewing the PR. |
hopefully it won't be dragged like it's counterpart: |
@fruch LMK once this is ready to review and will do it as soon as possible. I still see some comments that hasn't been resolved. So, that's the reason why I haven't reviewed yet. |
Hi, I know this is still in progress because I see some comments unresolved. But, JFTR it would be nice to add an integration test enabling ssl and add it to the docs. |
I'm updating the PR based on testcontainers/testcontainers-go#2919 |
Hi @mykaul, I've looked into implementing your suggestion, and it seems there are a few challenges with achieving this functionality:
While this method works, it feels like a bit of a hack to me, and I’m not entirely comfortable with introducing such a workaround into the workflow.
Given these constraints, do you have other suggestions for achieving this functionality? Specifically, how can we ensure the availability of an up-to-date configuration file while maintaining simplicity and compatibility with the existing workflow? Looking forward to your thoughts! |
@eddumelendez Hey, thanks for stepping in and polishing PR. Just asking, why you removed custom config file related changes? |
@mkorolyov - thanks for looking into this. I think your point no. 1 makes a convincing argument - it's trivial to just pass a yaml file, it's quite standard, so anyone using the Scylla testcontainer can do it. Let's just document it. |
@mykaul Hey, added possibility to easily replace config file for test container and documented it. @eddumelendez Hey, added ssl integration test and documented it. Could you pls take a look so we could proceed with it? Appreciate your help and time! |
} | ||
|
||
@Test | ||
public void testSslConfiguration() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mkorolyov this test fails. Lacking ssl configuration? default image doesn't provide those env vars
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it was committed by mistake. cleaned that up, thanks!
} | ||
|
||
@Test | ||
public void testSimpleSsl() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for adding this! I think cql cli command would not work unless is configured properly. We should configure it properly when ssl is enabled https://opensource.docs.scylladb.com/stable/operating-scylla/security/gen-cqlsh-file.html
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@eddumelendez yes, if ssl enabled on the server for client connections in order to cqlsh to work we need to configure ssl for it too, but it is not used here, in test containers, right? I didn't get your point, could you pls clarify what else you would like to see in this PR? thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Users can execute commands using via execInContainer method provided by Testcontainers API. Testcontainers should provide a proper configuration for the container to run properly. In this case, external clients will connect properly because the sdk client is configured but not inside the container. I think we should fix that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've added a test example how to make cqlsh work with same ssl setup.
ScyllaDB is an open-source distributed NoSQL wide-column data store. It gains wide popularity as a drop-in replacement for Cassandra but a significantly faster one.
This PR adds the ScyllaDB module.