mastouille.fr est l'un des nombreux serveurs Mastodon indépendants que vous pouvez utiliser pour participer au fédiverse.
Mastouille est une instance Mastodon durable, ouverte, et hébergée en France.

Administré par :

Statistiques du serveur :

664
comptes actifs

#elasticsearch

3 messages2 participants0 message aujourd’hui

Voilà, #Mastodon Blabla Linux est bien passée en version 4.3.7 👍 Elle disposait déjà de la traduction avec #DeepL, et… se voit maintenant dotée de sa propre indexation et de la recherche de données grâce à #Elasticsearch 😎

Image 1 : indexation et déploiement de la recherche ;
Image 2 : infos containers #Dockers instance Mastodon ;
Image 3 : container LXC Mastodon sur #Proxmox VE ;
Image 4 : mémoire à la hausse après le déploiement d'Elasticsearch ;
...

A répondu dans un fil de discussion

• Set ES_HOST=https://localhost in .env.production
• Set ES_CA_FILE=/path/to/selfsigned/cert

(b) I had to carefully set the maximum Java heap size, even though I thought I had plenty of RAM.

This last point confused me for sometime. I am running ES on the same VPS as my mastodon instance, which has 8GB RAM. So I I initial set -Xmx3g, but ES kept failing with exit code 137 (excessive memory consumption). I successively increased -Xmx to 4g, 5g, 6g, but with no luck.

After checking the logs, the heap size was not growing and the cap was being enforced properly.

Suite du fil

For those interested, setting up #ElasticSearch was fairly straightforward. I mostly followed the official instructions at docs.joinmastodon.org/admin/el, with two minor modifications:

1. I installed OpenJDK 21 (latest version in the Ubuntu repository)
2. I installed ElasticSearch 8.

Two things tripped me up:

(a) ES v8 requires TLS by default, even when binding only to localhost. This means that:
• When using curl, you have to use --cacert to specify the path to the self-signed certificate generated by ES & prepend localhost with https://

docs.joinmastodon.orgConfiguring full-text search - Mastodon documentationSetting up Elasticsearch to search for statuses (authored, favourited, or mentioned), public indexable status, and accounts

Avant-hier, ou avant avant-hier (😜), j'ai installé et testé #Elasticsearch sur l'instance #Mastodon Blabla Linux. Bien. Mais je comprends pourquoi ce n'est pas activé par défaut. Et je comprends aussi pourquoi c'est mentionné, "pour ceux qui en ont besoin et l'utilité" ! Je l'ai donc désinstallé. Pas besoin, et pas l'utilité. Par contre, après les fêtes, je pense installer #LibreTranslate, qui lui sera bien plus utile 😎 J'aurais même dû l'installer dès le départ.