Mise en place d’un cluster ElasticSearch sous Debian 10

modifié le : 13 septembre 2022,
par Guillaume Chéramy
 

[fusion_builder_container hundred_percent="no" hundred_percent_height="no" hundred_percent_height_scroll="no" hundred_percent_height_center_content="yes" equal_height_columns="no" menu_anchor="" hide_on_mobile="small-visibility,medium-visibility,large-visibility" status="published" publish_date="" class="" id="" background_color="" background_image="" background_position="center center" background_repeat="no-repeat" fade="no" background_parallax="none" enable_mobile="no" parallax_speed="0.3" video_mp4="" video_webm="" video_ogv="" video_url="" video_aspect_ratio="16:9" video_loop="yes" video_mute="yes" video_preview_image="" border_size="" border_color="" border_style="solid" admin_label="Introduction" admin_toggled="yes"][fusion_builder_row][fusion_builder_column type="1_2" layout="1_2" spacing="" center_content="no" link="" target="_self" min_height="" hide_on_mobile="small-visibility,medium-visibility,large-visibility" class="" id="" background_color="" background_image="" background_image_id="" background_position="left top" background_repeat="no-repeat" hover_type="none" border_size="0" border_color="" border_style="solid" border_position="all" border_radius="" box_shadow="no" dimension_box_shadow="" box_shadow_blur="0" box_shadow_spread="0" box_shadow_color="" box_shadow_style="" padding_top="" padding_right="" padding_bottom="" padding_left="" margin_top="" margin_bottom="" animation_type="" animation_direction="left" animation_speed="0.3" animation_offset="" last="no"][fusion_text columns="" column_min_width="" column_spacing="" rule_style="default" rule_size="" rule_color="" hide_on_mobile="small-visibility,medium-visibility,large-visibility" class="" id=""]

L'objectif de cet article est de présenter la mise en place d'un cluster ElasticSearch et comme nous sommes en période de test de la dernière Debian, la Debian 10 ou Buster, l'installation du cluster se ferra sur 3 serveurs en Debian 10.

L'architecture sera la suivante :
* un nœud master
* 2 nœuds data

Ce qui donne l'architecture ci-dessous :

 

[/fusion_text][/fusion_builder_column][fusion_builder_column type="1_2" layout="1_2" spacing="" center_content="no" link="" target="_self" min_height="" hide_on_mobile="small-visibility,medium-visibility,large-visibility" class="" id="" background_color="" background_image="" background_image_id="" background_position="left top" background_repeat="no-repeat" hover_type="none" border_size="0" border_color="" border_style="solid" border_position="all" border_radius="" box_shadow="no" dimension_box_shadow="" box_shadow_blur="0" box_shadow_spread="0" box_shadow_color="" box_shadow_style="" padding_top="" padding_right="" padding_bottom="" padding_left="" margin_top="" margin_bottom="" animation_type="" animation_direction="left" animation_speed="0.3" animation_offset="" last="no"][fusion_content_boxes layout="icon-with-title" columns="1" title_size="" heading_size="2" title_color="" body_color="#4f4f4f" backgroundcolor="#ff9800" icon="" iconflip="" iconrotate="" iconspin="no" iconcolor="" icon_circle="" icon_circle_radius="" circlecolor="" circlebordersize="" circlebordercolor="" outercirclebordersize="" outercirclebordercolor="" icon_size="" icon_hover_type="" hover_accent_color="" image="" image_id="" image_max_width="" link_type="" button_span="" link_area="" link_target="" icon_align="left" animation_type="" animation_delay="" animation_offset="" animation_direction="left" animation_speed="0.3" margin_top="" margin_bottom="" hide_on_mobile="small-visibility,medium-visibility,large-visibility" class="" id=""][fusion_content_box title="ElasticSearch" backgroundcolor="#ffbf00" icon="" iconflip="" iconrotate="" iconspin="no" iconcolor="" circlecolor="" circlebordersize="" circlebordercolor="" outercirclebordersize="" outercirclebordercolor="" image="" image_id="" image_max_width="" link="" linktext="Read More" link_target="" animation_type="" animation_direction="left" animation_speed="0.3" animation_offset=""]

ElasticSearch est une solution serveur d'indexation et de recherche de données très populaire, utilisé par exemple dans des solutions de centralisation de logs comme la stack ELK, mais aussi dans plein d'autres solutions pour indexer des données de différents types.

Définition Wikipedia

Site officiel

[/fusion_content_box][/fusion_content_boxes][/fusion_builder_column][/fusion_builder_row][/fusion_builder_container][fusion_builder_container hundred_percent="no" hundred_percent_height="no" hundred_percent_height_scroll="no" hundred_percent_height_center_content="yes" equal_height_columns="no" menu_anchor="" hide_on_mobile="small-visibility,medium-visibility,large-visibility" status="published" publish_date="" class="" id="" background_color="" background_image="" background_position="center center" background_repeat="no-repeat" fade="no" background_parallax="none" enable_mobile="no" parallax_speed="0.3" video_mp4="" video_webm="" video_ogv="" video_url="" video_aspect_ratio="16:9" video_loop="yes" video_mute="yes" video_preview_image="" border_size="" border_color="" border_style="solid" margin_top="" margin_bottom="" padding_top="" padding_right="" padding_bottom="" padding_left="" admin_label="Installation" admin_toggled="yes"][fusion_builder_row][fusion_builder_column type="1_1" layout="1_1" spacing="" center_content="no" link="" target="_self" min_height="" hide_on_mobile="small-visibility,medium-visibility,large-visibility" class="" id="" background_color="" background_image="" background_image_id="" background_position="left top" background_repeat="no-repeat" hover_type="none" border_size="0" border_color="" border_style="solid" border_position="all" border_radius="" box_shadow="no" dimension_box_shadow="" box_shadow_blur="0" box_shadow_spread="0" box_shadow_color="" box_shadow_style="" padding_top="" padding_right="" padding_bottom="" padding_left="" margin_top="" margin_bottom="" animation_type="" animation_direction="left" animation_speed="0.3" animation_offset="" last="no"][fusion_text columns="" column_min_width="" column_spacing="" rule_style="default" rule_size="" rule_color="" hide_on_mobile="small-visibility,medium-visibility,large-visibility" class="" id=""]

Installation

Installation des pré-requis

Sur chaque machine :

[/fusion_text][fusion_syntax_highlighter theme="" language="x-sh" line_numbers="" line_wrapping="" copy_to_clipboard="" copy_to_clipboard_text="Copy to Clipboard" hide_on_mobile="small-visibility,medium-visibility,large-visibility" class="" id="" font_size="" border_size="" border_color="" border_style="" background_color="" line_number_background_color="" line_number_text_color="" margin_top="" margin_left="" margin_bottom="" margin_right=""]YXB0IGluc3RhbGwgYXB0LXRyYW5zcG9ydC1odHRwcyBvcGVuamRrLTExLWpkayBjdXJs[/fusion_syntax_highlighter][fusion_text columns="" column_min_width="" column_spacing="" rule_style="default" rule_size="" rule_color="" hide_on_mobile="small-visibility,medium-visibility,large-visibility" class="" id=""]

 

On rajoute le dépôt officiel ElasticSearch

Sur chaque machine :

[/fusion_text][fusion_syntax_highlighter theme="" language="x-sh" line_numbers="" line_wrapping="" copy_to_clipboard="" copy_to_clipboard_text="Copy to Clipboard" hide_on_mobile="small-visibility,medium-visibility,large-visibility" class="" id="" font_size="" border_size="" border_color="" border_style="" background_color="" line_number_background_color="" line_number_text_color="" margin_top="" margin_left="" margin_bottom="" margin_right=""]d2dldCAtcU8gLSBodHRwczovL2FydGlmYWN0cy5lbGFzdGljLmNvL0dQRy1LRVktZWxhc3RpY3NlYXJjaCB8IGFwdC1rZXkgYWRkIC0KZWNobyAiZGViIGh0dHBzOi8vYXJ0aWZhY3RzLmVsYXN0aWMuY28vcGFja2FnZXMvNy54L2FwdCBzdGFibGUgbWFpbiIgPiAvZXRjL2FwdC9zb3VyY2VzLmxpc3QuZC9lbGFzdGljLTcueC5saXN0CmFwdCB1cGRhdGU=[/fusion_syntax_highlighter][fusion_text columns="" column_min_width="" column_spacing="" rule_style="default" rule_size="" rule_color="" hide_on_mobile="small-visibility,medium-visibility,large-visibility" class="" id=""]

 

NB : sous Debian 10 j'ai eu le cas ou gnupg était pas installé pour la gestion des clé gpg. Dans ce cas :

[/fusion_text][fusion_syntax_highlighter theme="" language="x-sh" line_numbers="" line_wrapping="" copy_to_clipboard="" copy_to_clipboard_text="Copy to Clipboard" hide_on_mobile="small-visibility,medium-visibility,large-visibility" class="" id="" font_size="" border_size="" border_color="" border_style="" background_color="" line_number_background_color="" line_number_text_color="" margin_top="" margin_left="" margin_bottom="" margin_right=""]YXB0IGluc3RhbGwgZ251cGcy[/fusion_syntax_highlighter][fusion_text columns="" column_min_width="" column_spacing="" rule_style="default" rule_size="" rule_color="" hide_on_mobile="small-visibility,medium-visibility,large-visibility" class="" id=""]

 

Installation ElasticSearch

Sur chaque machine :

[/fusion_text][fusion_syntax_highlighter theme="" language="x-sh" line_numbers="" line_wrapping="" copy_to_clipboard="" copy_to_clipboard_text="Copy to Clipboard" hide_on_mobile="small-visibility,medium-visibility,large-visibility" class="" id="" font_size="" border_size="" border_color="" border_style="" background_color="" line_number_background_color="" line_number_text_color="" margin_top="" margin_left="" margin_bottom="" margin_right=""]YXB0IGluc3RhbGwgZWxhc3RpY3NlYXJjaApzeXN0ZW1jdGwgZGFlbW9uLXJlbG9hZA==[/fusion_syntax_highlighter][fusion_text columns="" column_min_width="" column_spacing="" rule_style="default" rule_size="" rule_color="" hide_on_mobile="small-visibility,medium-visibility,large-visibility" class="" id=""]

 

/!\ ATTENTION
Ne pas démarrer elasticsearch maintenant

 

[/fusion_text][/fusion_builder_column][/fusion_builder_row][/fusion_builder_container][fusion_builder_container hundred_percent="no" hundred_percent_height="no" hundred_percent_height_scroll="no" hundred_percent_height_center_content="yes" equal_height_columns="no" menu_anchor="" hide_on_mobile="small-visibility,medium-visibility,large-visibility" status="published" publish_date="" class="" id="" background_color="" background_image="" background_position="center center" background_repeat="no-repeat" fade="no" background_parallax="none" enable_mobile="no" parallax_speed="0.3" video_mp4="" video_webm="" video_ogv="" video_url="" video_aspect_ratio="16:9" video_loop="yes" video_mute="yes" video_preview_image="" border_size="" border_color="" border_style="solid" margin_top="" margin_bottom="" padding_top="" padding_right="" padding_bottom="" padding_left="" admin_label="Fichiers de configuration" admin_toggled="yes"][fusion_builder_row][fusion_builder_column type="1_1" layout="1_1" spacing="" center_content="no" link="" target="_self" min_height="" hide_on_mobile="small-visibility,medium-visibility,large-visibility" class="" id="" background_color="" background_image="" background_image_id="" background_position="left top" background_repeat="no-repeat" hover_type="none" border_size="0" border_color="" border_style="solid" border_position="all" border_radius="" box_shadow="no" dimension_box_shadow="" box_shadow_blur="0" box_shadow_spread="0" box_shadow_color="" box_shadow_style="" padding_top="" padding_right="" padding_bottom="" padding_left="" margin_top="" margin_bottom="" animation_type="" animation_direction="left" animation_speed="0.3" animation_offset="" last="no"][fusion_text columns="" column_min_width="" column_spacing="" rule_style="default" rule_size="" rule_color="" hide_on_mobile="small-visibility,medium-visibility,large-visibility" class="" id=""]

Fichiers de configuration

Les fichiers de configuration se trouvent dans /etc/elasticsearch/

jvm.options

Ce fichier permet notement sur un environnement de test de diminuer la mémoire utilisée :

[/fusion_text][fusion_syntax_highlighter theme="" language="x-sh" line_numbers="" line_wrapping="" copy_to_clipboard="" copy_to_clipboard_text="Copy to Clipboard" hide_on_mobile="small-visibility,medium-visibility,large-visibility" class="" id="" font_size="" border_size="" border_color="" border_style="" background_color="" line_number_background_color="" line_number_text_color="" margin_top="" margin_left="" margin_bottom="" margin_right=""]IyBYbXMgcmVwcmVzZW50cyB0aGUgaW5pdGlhbCBzaXplIG9mIHRvdGFsIGhlYXAgc3BhY2UKIyBYbXggcmVwcmVzZW50cyB0aGUgbWF4aW11bSBzaXplIG9mIHRvdGFsIGhlYXAgc3BhY2UKCi1YbXMxZwotWG14MWc=[/fusion_syntax_highlighter][fusion_text columns="" column_min_width="" column_spacing="" rule_style="default" rule_size="" rule_color="" hide_on_mobile="small-visibility,medium-visibility,large-visibility" class="" id=""]

log4j2.properties

Ce fichier permet si besoins d'adapter la configuration pour les logs.

elasticsearch.yml

Fichier principal de configuration.

A adapter suivant le type de noeud :

  • cluster.name : identique pour tout le monde pour définir le nom du cluster
  • node.name : à définir pour chaque noeud un nom unique
  • node.data : par défaut à true pour les noeuds data et mettre false pour le noeud master
  • node.master : par défaut à true, mettre à false sur les noeuds data

Si besoins à changer les paths par défaut :

  • path.data : répertoire contenant les données, répertoire qui potentiellement suivant la quantité de données, peut prendre de la place
  • path.logs : répertoire de logs

Définir la ou les adresses IPs d'écoute du service :

network.hosts : par exemple _enp0s3_, _local_ qui permet de définir sur quelle(s) interfaces va écouter le service (de préférence sur un réseau local)

Sur les serveurs data :

discovery.seed_hosts: ["192.168.1.21"] pour préciser le ou les serveurs master à écouter

[/fusion_text][/fusion_builder_column][/fusion_builder_row][/fusion_builder_container][fusion_builder_container hundred_percent="no" hundred_percent_height="no" hundred_percent_height_scroll="no" hundred_percent_height_center_content="yes" equal_height_columns="no" menu_anchor="" hide_on_mobile="small-visibility,medium-visibility,large-visibility" status="published" publish_date="" class="" id="" background_color="" background_image="" background_position="center center" background_repeat="no-repeat" fade="no" background_parallax="none" enable_mobile="no" parallax_speed="0.3" video_mp4="" video_webm="" video_ogv="" video_url="" video_aspect_ratio="16:9" video_loop="yes" video_mute="yes" video_preview_image="" border_size="" border_color="" border_style="solid" margin_top="" margin_bottom="" padding_top="" padding_right="" padding_bottom="" padding_left="" admin_label="Master" admin_toggled="yes"][fusion_builder_row][fusion_builder_column type="1_1" layout="1_1" spacing="" center_content="no" link="" target="_self" min_height="" hide_on_mobile="small-visibility,medium-visibility,large-visibility" class="" id="" background_color="" background_image="" background_image_id="" background_position="left top" background_repeat="no-repeat" hover_type="none" border_size="0" border_color="" border_style="solid" border_position="all" border_radius="" box_shadow="no" dimension_box_shadow="" box_shadow_blur="0" box_shadow_spread="0" box_shadow_color="" box_shadow_style="" padding_top="" padding_right="" padding_bottom="" padding_left="" margin_top="" margin_bottom="" animation_type="" animation_direction="left" animation_speed="0.3" animation_offset="" last="no"][fusion_text columns="" column_min_width="" column_spacing="" rule_style="default" rule_size="" rule_color="" hide_on_mobile="small-visibility,medium-visibility,large-visibility" class="" id=""]

Configuration du master

Voici comme configurer un master, dans notre architecture il y en a qu'un, mais sur une architecture en prod il faudrait en prévoir un second pour assurer la disponibilité de l'ensemble du cluster.

[/fusion_text][fusion_syntax_highlighter theme="" language="x-sh" line_numbers="" line_wrapping="" copy_to_clipboard="" copy_to_clipboard_text="Copy to Clipboard" hide_on_mobile="small-visibility,medium-visibility,large-visibility" class="" id="" font_size="" border_size="" border_color="" border_style="" background_color="" line_number_background_color="" line_number_text_color="" margin_top="" margin_left="" margin_bottom="" margin_right=""]Y2x1c3Rlci5uYW1lOiBjbHVzdGVyLWF1a2Zvb2QKbm9kZS5uYW1lOiBtYXN0ZXItMQpub2RlLm1hc3RlcjogdHJ1ZQpub2RlLmRhdGE6IGZhbHNlCnBhdGguZGF0YTogL3Zhci9saWIvZWxhc3RpY3NlYXJjaApwYXRoLmxvZ3M6IC92YXIvbG9nL2VsYXN0aWNzZWFyY2gKbmV0d29yay5ob3N0OiBfZW5wMHMzXywgX2xvY2FsXwpjbHVzdGVyLmluaXRpYWxfbWFzdGVyX25vZGVzOiBbIm1hc3Rlci0xIl0=[/fusion_syntax_highlighter][fusion_text columns="" column_min_width="" column_spacing="" rule_style="default" rule_size="" rule_color="" hide_on_mobile="small-visibility,medium-visibility,large-visibility" class="" id=""]

 

Démarrer le master

[/fusion_text][fusion_syntax_highlighter theme="" language="x-sh" line_numbers="" line_wrapping="" copy_to_clipboard="" copy_to_clipboard_text="Copy to Clipboard" hide_on_mobile="small-visibility,medium-visibility,large-visibility" class="" id="" font_size="" border_size="" border_color="" border_style="" background_color="" line_number_background_color="" line_number_text_color="" margin_top="" margin_left="" margin_bottom="" margin_right=""]c3lzdGVtY3RsIGVuYWJsZSBlbGFzdGljc2VhcmNoCnN5c3RlbWN0bCBzdGFydCBlbGFzdGljc2VhcmNo[/fusion_syntax_highlighter][fusion_text columns="" column_min_width="" column_spacing="" rule_style="default" rule_size="" rule_color="" hide_on_mobile="small-visibility,medium-visibility,large-visibility" class="" id=""]

 

Vérifier les logs dans /var/log/elasticsearch/cluster-aukfood.log (les fichiers de logs portent le nom du cluster) :

[/fusion_text][fusion_syntax_highlighter theme="" language="x-sh" line_numbers="" line_wrapping="" copy_to_clipboard="" copy_to_clipboard_text="Copy to Clipboard" hide_on_mobile="small-visibility,medium-visibility,large-visibility" class="" id="" font_size="" border_size="" border_color="" border_style="" background_color="" line_number_background_color="" line_number_text_color="" margin_top="" margin_left="" margin_bottom="" margin_right=""]WzIwMTktMDgtMTJUMDk6MTM6NTksMzE4XVtJTkZPIF1bby5lLmMucy5NYXN0ZXJTZXJ2aWNlICAgIF0gW21hc3Rlci0xXSBlbGVjdGVkLWFzLW1hc3RlciAoWzFdIG5vZGVzIGpvaW5lZClbe21hc3Rlci0xfXsteThXMHc0MFR5MkJwZllmcmppTGt3fXtucTI5MUIxN1FrR3o3U28xQmRmZ1hRfXsxOTIuMTY4LjEuMzF9ezE5Mi4xNjguMS4zMTo5MzAwfXtpbX17bWwubWFjaGluZV9tZW1vcnk9MTUyNjE4NTk4NCwgeHBhY2suaW5zdGFsbGVkPXRydWUsIG1sLm1heF9vcGVuX2pvYnM9MjB9IGVsZWN0IGxlYWRlciwgX0JFQ09NRV9NQVNURVJfVEFTS18sIF9GSU5JU0hfRUxFQ1RJT05fXSwgdGVybTogMSwgdmVyc2lvbjogMSwgcmVhc29uOiBtYXN0ZXIgbm9kZSBjaGFuZ2VkIHtwcmV2aW91cyBbXSwgY3VycmVudCBbe21hc3Rlci0xfXsteThXMHc0MFR5MkJwZllmcmppTGt3fXtucTI5MUIxN1FrR3o3U28xQmRmZ1hRfXsxOTIuMTY4LjEuMzF9ezE5Mi4xNjguMS4zMTo5MzAwfXtpbX17bWwubWFjaGluZV9tZW1vcnk9MTUyNjE4NTk4NCwgeHBhY2suaW5zdGFsbGVkPXRydWUsIG1sLm1heF9vcGVuX2pvYnM9MjB9XX0=[/fusion_syntax_highlighter][fusion_text columns="" column_min_width="" column_spacing="" rule_style="default" rule_size="" rule_color="" hide_on_mobile="small-visibility,medium-visibility,large-visibility" class="" id=""]

 

L'information qui nous intéresse : [master-1] elected-as-master

[/fusion_text][/fusion_builder_column][/fusion_builder_row][/fusion_builder_container][fusion_builder_container hundred_percent="no" hundred_percent_height="no" hundred_percent_height_scroll="no" hundred_percent_height_center_content="yes" equal_height_columns="no" menu_anchor="" hide_on_mobile="small-visibility,medium-visibility,large-visibility" status="published" publish_date="" class="" id="" background_color="" background_image="" background_position="center center" background_repeat="no-repeat" fade="no" background_parallax="none" enable_mobile="no" parallax_speed="0.3" video_mp4="" video_webm="" video_ogv="" video_url="" video_aspect_ratio="16:9" video_loop="yes" video_mute="yes" video_preview_image="" border_size="" border_color="" border_style="solid" margin_top="" margin_bottom="" padding_top="" padding_right="" padding_bottom="" padding_left="" admin_label="Data" admin_toggled="no"][fusion_builder_row][fusion_builder_column type="1_1" layout="1_1" spacing="" center_content="no" link="" target="_self" min_height="" hide_on_mobile="small-visibility,medium-visibility,large-visibility" class="" id="" background_color="" background_image="" background_image_id="" background_position="left top" background_repeat="no-repeat" hover_type="none" border_size="0" border_color="" border_style="solid" border_position="all" border_radius="" box_shadow="no" dimension_box_shadow="" box_shadow_blur="0" box_shadow_spread="0" box_shadow_color="" box_shadow_style="" padding_top="" padding_right="" padding_bottom="" padding_left="" margin_top="" margin_bottom="" animation_type="" animation_direction="left" animation_speed="0.3" animation_offset="" last="no"][fusion_text columns="" column_min_width="" column_spacing="" rule_style="default" rule_size="" rule_color="" hide_on_mobile="small-visibility,medium-visibility,large-visibility" class="" id=""]

Configuration d'un serveur data

Ce sont les serveurs sur lesquels se trouveront les données que va traiter ElasticSearch. Attention donc à la taille des répertoires de stockage.

[/fusion_text][fusion_syntax_highlighter theme="" language="conf" line_numbers="" line_wrapping="" copy_to_clipboard="" copy_to_clipboard_text="Copy to Clipboard" hide_on_mobile="small-visibility,medium-visibility,large-visibility" class="" id="" font_size="" border_size="" border_color="" border_style="" background_color="" line_number_background_color="" line_number_text_color="" margin_top="" margin_left="" margin_bottom="" margin_right=""]Y2x1c3Rlci5uYW1lOiBjbHVzdGVyLWF1a2Zvb2QKbm9kZS5uYW1lOiBkYXRhLTEKbm9kZS5tYXN0ZXI6IGZhbHNlCm5vZGUuZGF0YTogdHJ1ZQpwYXRoLmRhdGE6IC92YXIvbGliL2VsYXN0aWNzZWFyY2gKcGF0aC5sb2dzOiAvdmFyL2xvZy9lbGFzdGljc2VhcmNoCm5ldHdvcmsuaG9zdDogX2VucDBzM18sIF9sb2NhbF8KZGlzY292ZXJ5LnNlZWRfaG9zdHM6IFsiMTkyLjE2OC4xLjIxIl0=[/fusion_syntax_highlighter][fusion_text columns="" column_min_width="" column_spacing="" rule_style="default" rule_size="" rule_color="" hide_on_mobile="small-visibility,medium-visibility,large-visibility" class="" id=""]

 

Démarrage d'un serveur de data

[/fusion_text][fusion_syntax_highlighter theme="" language="x-sh" line_numbers="" line_wrapping="" copy_to_clipboard="" copy_to_clipboard_text="Copy to Clipboard" hide_on_mobile="small-visibility,medium-visibility,large-visibility" class="" id="" font_size="" border_size="" border_color="" border_style="" background_color="" line_number_background_color="" line_number_text_color="" margin_top="" margin_left="" margin_bottom="" margin_right=""]c3lzdGVtY3RsIGVuYWJsZSBlbGFzdGljc2VhcmNoCnN5c3RlbWN0bCBzdGFydCBlbGFzdGljc2VhcmNo[/fusion_syntax_highlighter][fusion_text columns="" column_min_width="" column_spacing="" rule_style="default" rule_size="" rule_color="" hide_on_mobile="small-visibility,medium-visibility,large-visibility" class="" id=""]

 

Bien vérifier les logs pour vérifier que le nœud de data joint bien le cluster :

[/fusion_text][fusion_syntax_highlighter theme="" language="x-sh" line_numbers="" line_wrapping="" copy_to_clipboard="" copy_to_clipboard_text="Copy to Clipboard" hide_on_mobile="small-visibility,medium-visibility,large-visibility" class="" id="" font_size="" border_size="" border_color="" border_style="" background_color="" line_number_background_color="" line_number_text_color="" margin_top="" margin_left="" margin_bottom="" margin_right=""]WzIwMTktMDgtMDdUMTA6NTc6MTUsMzk2XVtJTkZPIF1bby5lLmMucy5NYXN0ZXJTZXJ2aWNlICAgIF0gW21hc3Rlci0xXSBub2RlLWpvaW5be2RhdGEtMX17YWJrQVNQZHdUWGF2UUFPakZ6QnlCd317VzEzMWdWOHZRNTJqaGR1X1E0OVNYUX17MTkyLjE2OC4xLjIyfXsxOTIuMTY4LjEuMjI6OTMwMH17ZGl9e21sLm1hY2hpbmVfbWVtb3J5PTc4MDQ1NTkzNiwgbWwubWF4X29wZW5fam9icz0yMCwgeHBhY2suaW5zdGFsbGVkPXRydWV9IGpvaW4gZXhpc3RpbmcgbGVhZGVyXSwgdGVybTogMywgdmVyc2lvbjogMjIsIHJlYXNvbjogYWRkZWQge3tkYXRhLTF9e2Fia0FTUGR3VFhhdlFBT2pGekJ5Qnd9e1cxMzFnVjh2UTUyamhkdV9RNDlTWFF9ezE5Mi4xNjguMS4yMn17MTkyLjE2OC4xLjIyOjkzMDB9e2RpfXttbC5tYWNoaW5lX21lbW9yeT03ODA0NTU5MzYsIG1sLm1heF9vcGVuX2pvYnM9MjAsIHhwYWNrLmluc3RhbGxlZD10cnVlfSx9[/fusion_syntax_highlighter][fusion_text columns="" column_min_width="" column_spacing="" rule_style="default" rule_size="" rule_color="" hide_on_mobile="small-visibility,medium-visibility,large-visibility" class="" id=""]

 

Cet exemple est tiré des logs sur le master.

Faire de même sur tout les serveurs de data

[/fusion_text][/fusion_builder_column][/fusion_builder_row][/fusion_builder_container][fusion_builder_container hundred_percent="no" hundred_percent_height="no" hundred_percent_height_scroll="no" hundred_percent_height_center_content="yes" equal_height_columns="no" menu_anchor="" hide_on_mobile="small-visibility,medium-visibility,large-visibility" status="published" publish_date="" class="" id="" background_color="" background_image="" background_position="center center" background_repeat="no-repeat" fade="no" background_parallax="none" enable_mobile="no" parallax_speed="0.3" video_mp4="" video_webm="" video_ogv="" video_url="" video_aspect_ratio="16:9" video_loop="yes" video_mute="yes" video_preview_image="" border_size="" border_color="" border_style="solid" margin_top="" margin_bottom="" padding_top="" padding_right="" padding_bottom="" padding_left="" admin_label="Fin"][fusion_builder_row][fusion_builder_column type="1_1" layout="1_1" spacing="" center_content="no" link="" target="_self" min_height="" hide_on_mobile="small-visibility,medium-visibility,large-visibility" class="" id="" background_color="" background_image="" background_image_id="" background_position="left top" background_repeat="no-repeat" hover_type="none" border_size="0" border_color="" border_style="solid" border_position="all" border_radius="" box_shadow="no" dimension_box_shadow="" box_shadow_blur="0" box_shadow_spread="0" box_shadow_color="" box_shadow_style="" padding_top="" padding_right="" padding_bottom="" padding_left="" margin_top="" margin_bottom="" animation_type="" animation_direction="left" animation_speed="0.3" animation_offset="" last="no"][fusion_text columns="" column_min_width="" column_spacing="" rule_style="default" rule_size="" rule_color="" hide_on_mobile="small-visibility,medium-visibility,large-visibility" class="" id=""]

Obtenir le status du cluster

[/fusion_text][fusion_syntax_highlighter theme="" language="x-sh" line_numbers="" line_wrapping="" copy_to_clipboard="" copy_to_clipboard_text="Copy to Clipboard" hide_on_mobile="small-visibility,medium-visibility,large-visibility" class="" id="" font_size="" border_size="" border_color="" border_style="" background_color="" line_number_background_color="" line_number_text_color="" margin_top="" margin_left="" margin_bottom="" margin_right=""]Y3VybCBsb2NhbGhvc3Q6OTIwMC9fY2x1c3Rlci9oZWFsdGg/cHJldHR5PXRydWUKewogICJjbHVzdGVyX25hbWUiIDogImNsdXN0ZXItYXVrZm9vZCIsCiAgInN0YXR1cyIgOiAiZ3JlZW4iLAogICJ0aW1lZF9vdXQiIDogZmFsc2UsCiAgIm51bWJlcl9vZl9ub2RlcyIgOiAzLAogICJudW1iZXJfb2ZfZGF0YV9ub2RlcyIgOiAyLAogICJhY3RpdmVfcHJpbWFyeV9zaGFyZHMiIDogMCwKICAiYWN0aXZlX3NoYXJkcyIgOiAwLAogICJyZWxvY2F0aW5nX3NoYXJkcyIgOiAwLAogICJpbml0aWFsaXppbmdfc2hhcmRzIiA6IDAsCiAgInVuYXNzaWduZWRfc2hhcmRzIiA6IDAsCiAgImRlbGF5ZWRfdW5hc3NpZ25lZF9zaGFyZHMiIDogMCwKICAibnVtYmVyX29mX3BlbmRpbmdfdGFza3MiIDogMCwKICAibnVtYmVyX29mX2luX2ZsaWdodF9mZXRjaCIgOiAwLAogICJ0YXNrX21heF93YWl0aW5nX2luX3F1ZXVlX21pbGxpcyIgOiAwLAogICJhY3RpdmVfc2hhcmRzX3BlcmNlbnRfYXNfbnVtYmVyIiA6IDEwMC4wCn0=[/fusion_syntax_highlighter][fusion_text columns="" column_min_width="" column_spacing="" rule_style="default" rule_size="" rule_color="" hide_on_mobile="small-visibility,medium-visibility,large-visibility" class="" id=""]

 

Notre cluster ElasticSearch est prêt à être utilisé. Ce que nous verrons un peu plus tard.

[/fusion_text][/fusion_builder_column][/fusion_builder_row][/fusion_builder_container]