Skip to content
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

mediawiki needs 6.8.23 and I needed to change this #1219

Open
hboetes opened this issue Mar 8, 2024 · 0 comments
Open

mediawiki needs 6.8.23 and I needed to change this #1219

hboetes opened this issue Mar 8, 2024 · 0 comments

Comments

@hboetes
Copy link

hboetes commented Mar 8, 2024

For the mediawiki version we are using elasticsearch 6.8.23 is needed https://github.com/voxpupuli/puppet-elasticsearch/blob/master/REFERENCE.md#version

So I installed like this:

  class { 'elasticsearch':
    version           => '6.8.23',
    manage_repo       => false,
    autoupgrade       => true,
    restart_on_change => true
  }

Then had to update the service file to make it work:

#  diff -u /lib/systemd/system/elasticsearch.service /etc/systemd/system/elasticsearch.service
--- /lib/systemd/system/elasticsearch.service	2024-03-08 13:14:01.696493107 +0100
+++ /etc/systemd/system/elasticsearch.service	2024-03-08 13:01:10.995586422 +0100
@@ -10,6 +10,7 @@
 Environment=DATA_DIR=/var/lib/elasticsearch
 Environment=LOG_DIR=/var/log/elasticsearch
 Environment=PID_DIR=/var/run/elasticsearch
+Environment=ES_PATH_CONF=/etc/elasticsearch
 EnvironmentFile=-/etc/default/elasticsearch
 
 WorkingDirectory=/usr/share/elasticsearch
@@ -19,12 +20,7 @@
 
 ExecStartPre=/usr/share/elasticsearch/bin/elasticsearch-systemd-pre-exec
 
-ExecStart=/usr/share/elasticsearch/bin/elasticsearch \
-                                                -p ${PID_DIR}/elasticsearch.pid \
-                                                --quiet \
-                                                -Edefault.path.logs=${LOG_DIR} \
-                                                -Edefault.path.data=${DATA_DIR} \
-                                                -Edefault.path.conf=${CONF_DIR}
+ExecStart=/usr/share/elasticsearch/bin/elasticsearch -p ${PID_DIR}/elasticsearch.pid
 
 # StandardOutput is configured to redirect to journalctl since
 # some error messages may be logged in standard output before
@@ -39,7 +35,7 @@
 LimitNOFILE=65536
 
 # Specifies the maximum number of processes
-LimitNPROC=2048
+LimitNPROC=4096
 
 # Specifies the maximum size of virtual memory
 LimitAS=infinity

I noticed the service file in /lib wasn't managed by puppet, so perhaps it may be interesting to add that to the config.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant