-
Notifications
You must be signed in to change notification settings - Fork 96
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
[ISSUE-112] Add total_shards_per_node setting to allocate in ILM #120
Conversation
Since this is a community submitted pull request, a Jenkins build has not been kicked off automatically. Can an Elastic organization member please verify the contents of this patch and then kick off a build manually? |
jenkins test this |
jenkins test this |
@RobsonSutton the CI test suite is run against a range of ES versions (you can see the pipeline definition here). I think we'll want to only define this property in the acceptance tests when they're being run against a supported ES version. |
@tobio - Apologies for the delay! Yeah I didn't have time the other day to figure this one out but hopefully I should get some time later today to try figure out the best way to skip these for specific versions within the tests 👍 |
jenkins test this |
1 similar comment
jenkins test this |
Hello, did you need some help on this ? |
@othmane399 definitely happy to get some help to get this one across the line. Bit of a brain dump below, but totally happy if you wanted to take another approach. I was trying to have the provider only specify I was going to instead validate the ES version the provider was running against and error out if the property is not supported and not the default. |
@tobio - Apologies, have been a bit MIA recently with this one, i'll take another look at this but it may be a bit out of my comfort zone since I'm still picking up the basics currently! |
Hello @tobio, after thinking a bit on this, I think IMO testing pipelines should only run tests files that are version compatible with. |
31edfe2
to
c76f845
Compare
…resent in the API response
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.
LGTM 💥
var ilmActionSettingOptions = map[string]struct { | ||
skipEmptyCheck bool | ||
def interface{} | ||
minVersion *version.Version | ||
}{ | ||
"number_of_replicas": {skipEmptyCheck: true}, | ||
"total_shards_per_node": {skipEmptyCheck: true, def: -1, minVersion: version.Must(version.NewVersion("7.16.0"))}, | ||
"priority": {skipEmptyCheck: true}, | ||
} |
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.
👍
total_shards_per_node
isn't supported by theallocate
action ofelasticstack_elasticsearch_index_lifecycle
#112)Fixes #112