Open hboetes opened 4 months ago
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.
/lib
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:
Then had to update the service file to make it work:
I noticed the service file in
/lib
wasn't managed by puppet, so perhaps it may be interesting to add that to the config.