-
Notifications
You must be signed in to change notification settings - Fork 41
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
Changes required to install Elasticsearch 6 on staging #6421
Conversation
src/commcare_cloud/ansible/roles/elasticsearch/tasks/misc_v6.yml
Outdated
Show resolved
Hide resolved
src/commcare_cloud/ansible/roles/elasticsearch/templates/systemd/elasticsearch.service.j2
Show resolved
Hide resolved
src/commcare_cloud/ansible/roles/elasticsearch/templates/config/elasticsearch.yml.j2
Outdated
Show resolved
Hide resolved
If I may chime in on this change, I would suggest also fixing this:
Regarding the fixes: I did not submit my local fix) of simply commenting the line out, because on many systems the default Clearly then this is an ES bug: rather than make deployers redirect the JVM tmpdir, they should do their JNA execution in some directory of their own, for instance simply Regardless of whether you stick to the directory called The second change in my diff above seemed obvious to me by just looking at it. |
es website give sha512 for the zip, updated it to use sha256
148c315
to
98c2f9d
Compare
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.
One small comment but otherwise looks good
@@ -69,13 +63,6 @@ network.host: "{{ lookup('dig', inventory_hostname, wantlist=True)[0] }}" | |||
indices.fielddata.cache.size: {{ elasticsearch_fielddata_cache_size }} | |||
{% endif %} | |||
|
|||
{% if elasticsearch_enable_inline_groovy_scripts %} | |||
{% if elasticsearch_version is version('5.6.16', '<=') %} |
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 going off of this, these settings seemed to also apply to ES5 and therefore aren't strictly an ES2 setting? Are they still safe to remove?
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.
Yes this is safe to remove and is intentionally removed. This was there to in ES 5 to support if someone was using groovy scripts which are deprecated.
If someone installs commcare now they will not need es5 with groovy scripts so it is safe to remove for ES5 as well.
https://dimagi.atlassian.net/browse/SAAS-16062
Changes required to install Elasticsearch 6 on staging
Environments Affected
Staging