Skip to content

Commit

Permalink
Update opensearch-multi.md
Browse files Browse the repository at this point in the history
  • Loading branch information
mounierdS committed Mar 11, 2024
1 parent 7e0a09c commit 64d9423
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions docs/src/compositions/opensearch-multi.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,33 @@
# OpenSearch multi-nœud

Composition à faire.

Pour lancer plusieurs même noeud à partir d'un code on utilise la commande :

```nxc start -r nom_du_noeud=nombre_de_noeud -f vm ```

Par exemple :

Avec le code du noeud data :

```
data = { pkgs, config, lib, ... }: {
boot.kernel.sysctl."vm.max_map_count" = 262144;
environment.noXlibs = false;
environment.systemPackages = with pkgs; [ opensearch-fixed ];
systemd.services.opensearch.serviceConfig.ExecStartPre =
populate-hosts-script;
services.opensearch = service-config {
settings."node.name" = config.networking.hostName;
settings."node.roles" = [ "data" ];
};
};
};
```

On peut lancer la commande suivante pour avoir 2 noeuds data identique : ``` nxc start -r data=2 -f vm ```


0 comments on commit 64d9423

Please sign in to comment.