<commit_before>## Elasticsearch Dockerfile


This repository contains a ElasticSearch instance that can be used in a Consul and Registrator environment.

### Usage

``` bash
docker run --rm \
    --name elasticsearch-<i> \
    --env SERVICE_NAME=<cluster-name> \
    --env SERVICE_9200_TAGS=http \
    --env SERVICE_9300_ID=<cluster-name>-<i> \
    --env SERVICE_9300_TAGS=es-transport \
    -P \
    --dns $(ifconfig docker0 | grep 'inet ' | awk '{print $2}') \
    --dns-search=service.consul \
    -v <data-dir>:/data \
    cargonauts/consul-elasticsearch
```
<commit_msg>TOTAL_NR_OF_SERVERS added to startup example<commit_after>## Elasticsearch Dockerfile


This repository contains a ElasticSearch instance that can be used in a Consul and Registrator environment.

### Usage

``` bash
docker run --rm \
    --name elasticsearch-<i> \
    --env SERVICE_NAME=<cluster-name> \
    --env SERVICE_9200_TAGS=http \
    --env SERVICE_9300_ID=<cluster-name>-<i> \
    --env SERVICE_9300_TAGS=es-transport \
    --env TOTAL_NR_OF_SERVERS=<number-of-instances-in-cluster> \
    -P \
    --dns $(ifconfig docker0 | grep 'inet ' | awk '{print $2}') \
    --dns-search=service.consul \
    -v <data-dir>:/data \
    cargonauts/consul-elasticsearch
```

{'fraction_non_alphanumeric': 0.13964686998394862, 'fraction_numerical': 0.02247191011235955, 'mean_word_length': 2.984025559105431, 'pattern_counts': {'":': 0, '<': 14, '<?xml version=': 0, '>': 14, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2509575', 'n_tokens_mistral': 472, 'n_tokens_neox': 439, 'n_words': 100}