-
Notifications
You must be signed in to change notification settings - Fork 344
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
Set shards and replicas based on redundancy policy #229
Set shards and replicas based on redundancy policy #229
Conversation
Codecov Report
@@ Coverage Diff @@
## master #229 +/- ##
==========================================
+ Coverage 90.35% 90.48% +0.12%
==========================================
Files 59 59
Lines 2645 2680 +35
==========================================
+ Hits 2390 2425 +35
Misses 164 164
Partials 91 91
Continue to review full report at Codecov.
|
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.
Reviewed 2 of 2 files at r1.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @pavolloffay)
pkg/storage/elasticsearch.go, line 55 at r1 (raw file):
"--es.token-file="+k8sTokenFile, "--es.tls.ca="+caPath) if !containsPrefix("--es.num-shards", p.Containers[0].Args) {
Could you add a test ensuring that the user's value always has precedence?
I have added more tests and slightly changed ES CR. If node count is higher than 3 (N) it creates CR with 3 master nodes and N-3 client,data nodes. It's not recommended to deploy more than 3 master nodes in general and ESO even does not allow it:
|
At the moment there is a bug in ES operator, it does not create deployment correctly for 3 master and N other nodes https://jira.coreos.com/browse/LOG-340 |
@jpkrohling could you please re-review and/or merge? |
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.
, just fix the one typo and it's good to be merged. Bonus points if you could add the link to the bug preventing more than 3 masters.
Reviewed 2 of 2 files at r2.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @pavolloffay)
pkg/storage/elasticsearch.go, line 133 at r2 (raw file):
func getNodes(es v1alpha1.ElasticsearchSpec) []esv1alpha1.ElasticsearchNode { if es.NodeCount <= 3 {
Could you add a reference to the bug? Is there a public place where the bug can be seen? I tried opening the JIRA, but I don't seem to have access to it O_o
pkg/storage/elasticsearch_test.go, line 39 at r2 (raw file):
RedundancyPolicy: esv1alpha1.FullRedundancy, Storage: esv1alpha1.ElasticsearchStorageSpec{ StorageClassName: "floppydisk",
How do you even know this exists :D
pkg/storage/elasticsearch_test.go, line 99 at r2 (raw file):
tests := []struct { pod *v1.PodSpec extected *v1.PodSpec
s/extected/expected
?
I heard old dudes talking about it... I thought that I will give it a try on k8s!
It's private jira, once it's fixed we don't have to change anything as it is the correct topology. I have just added a comment here to let people know. |
Signed-off-by: Pavol Loffay <[email protected]>
Signed-off-by: Pavol Loffay <[email protected]>
Signed-off-by: Pavol Loffay <[email protected]>
c857013
to
98fa19d
Compare
https://issues.jboss.org/browse/TRACING-386
Signed-off-by: Pavol Loffay [email protected]