Skip to content

Updated to Elasticsearch 8.18; Created a second ES service using version #77

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: develop
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .cursorignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.bak
Binary file added .data/divvy.jsonl.gz
Binary file not shown.
Binary file added .data/wikipedia.jsonl.gz
Binary file not shown.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,4 @@ www/transform/.gradle
logstash/.gradle
logstash/build
theme.css
*.jsonl
12 changes: 12 additions & 0 deletions data-extraction-report.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
Data Extraction Report
====================

Successfully extracted:
total 792864
-rw-r--r--@ 1 rmdemp staff 349M May 14 15:28 divvy.jsonl
-rw-r--r--@ 1 rmdemp staff 34M May 14 15:28 divvy.jsonl.gz
-rw-r--r--@ 1 rmdemp staff 145K May 14 15:29 wikipedia.jsonl
-rw-r--r--@ 1 rmdemp staff 38K May 14 15:29 wikipedia.jsonl.gz

Freebase index status:
The freebase index could not be loaded because it requires a synonyms file at /usr/share/elasticsearch/config/analysis/first_name.synonyms.txt which is missing in our container setup.
File renamed without changes.
129 changes: 53 additions & 76 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,84 +1,61 @@
version: '2'
version: '3'
services:
elastic1:
extends:
file: docker-compose-elasticsearch.yml
service: elasticsearch
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:8.18.0
container_name: elasticsearch
environment:
ES_NODENAME: elastic1
ports:
- "9200:9200"
- "9300:9300"
elastic2:
extends:
file: docker-compose-elasticsearch.yml
service: elasticsearch
environment:
ES_NODENAME: elastic2
ports:
- "9201:9200"
- "9301:9300"
depends_on:
- elastic1
elastic3:
extends:
file: docker-compose-elasticsearch.yml
service: elasticsearch
environment:
ES_NODENAME: elastic3
ports:
- "9202:9200"
- "9302:9300"
depends_on:
- elastic1
inquisitor:
image: spantree/elasticsearch-inquisitor
environment:
ELASTICSEARCH_URL: "http://elastic1:9200"
ports:
- "9400:80"
exercises:
image: nginx:1.11-alpine
- discovery.type=single-node
- xpack.security.enabled=false
- "ES_JAVA_OPTS=-Xms4g -Xmx4g"
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- "./exercises:/usr/share/nginx/html"
- "./exercises/nginx:/etc/nginx"
ports:
- "9500:80"
logstash:
image: logstash:2.4
- elasticsearch-data:/usr/share/elasticsearch/data
ports:
- 9200:9200
- 9300:9300
networks:
- elastic

elasticsearch-2:
image: elasticsearch:2.4.5
platform: linux/amd64
container_name: elasticsearch-2
environment:
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms1g -Xmx1g"
- ES_NODENAME=elasticsearch-2
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- "./logstash:/config-dir"
- "./data:/usr/local/share/data"
command: ["logstash", "-f", "/config-dir/logstash.conf"]
ports:
- "3333:3333"
- "5044:5044"
- "9600:9600"
depends_on:
- elastic1
- elastic2
- elastic3
- elasticsearch-2-data:/usr/share/elasticsearch/data
- ./es2-config/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml
ports:
- 9201:9200
- 9301:9300
networks:
- elastic

kibana:
build: kibana
image: docker.elastic.co/kibana/kibana:8.18.0
container_name: kibana
ports:
- "5601:5601"
- 5601:5601
environment:
ELASTICSEARCH_URL: "http://elastic1:9200"
volumes:
- "./kibana/config:/opt/kibana/config"
- ELASTICSEARCH_HOSTS=http://elasticsearch:9200
depends_on:
- elastic1
- elastic2
- elastic3
slides:
build: slides
ports:
- "9000:9000"
- "35729:35729" # to enable live reloading
environment:
ELASTICSEARCH_URL: http://localhost:9200
KIBANA_URL: http://localhost:5601
INQUISITOR_URL: http://localhost:9400
EXERCISES_URL: http://localhost:9500
volumes:
- ./slides/slides:/usr/src/slides/slides
- elasticsearch
networks:
- elastic

volumes:
elasticsearch-data:
elasticsearch-2-data:

networks:
elastic:
driver: bridge
92 changes: 92 additions & 0 deletions docker-compose.yml.bak
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
version: '2'
services:
elastic1:
platform: linux/amd64
extends:
file: docker-compose-elasticsearch.yml
service: elasticsearch
environment:
ES_NODENAME: elastic1
ports:
- "9200:9200"
- "9300:9300"
elastic2:
platform: linux/amd64
extends:
file: docker-compose-elasticsearch.yml
service: elasticsearch
environment:
ES_NODENAME: elastic2
ports:
- "9201:9200"
- "9301:9300"
depends_on:
- elastic1
elastic3:
platform: linux/amd64
extends:
file: docker-compose-elasticsearch.yml
service: elasticsearch
environment:
ES_NODENAME: elastic3
ports:
- "9202:9200"
- "9302:9300"
depends_on:
- elastic1
inquisitor:
platform: linux/amd64
image: spantree/elasticsearch-inquisitor
environment:
ELASTICSEARCH_URL: "http://elastic1:9200"
ports:
- "9400:80"
exercises:
platform: linux/amd64
image: nginx:1.11-alpine
volumes:
- "./exercises:/usr/share/nginx/html"
- "./exercises/nginx:/etc/nginx"
ports:
- "9500:80"
logstash:
platform: linux/amd64
image: logstash:2.4
volumes:
- "./logstash:/config-dir"
- "./data:/usr/local/share/data"
command: [ "logstash", "-f", "/config-dir/logstash.conf" ]
ports:
- "3333:3333"
- "5044:5044"
- "9600:9600"
depends_on:
- elastic1
- elastic2
- elastic3
kibana:
platform: linux/amd64
build: kibana
ports:
- "5601:5601"
environment:
ELASTICSEARCH_URL: "http://elastic1:9200"
volumes:
- "./kibana/config:/opt/kibana/config"
depends_on:
- elastic1
- elastic2
- elastic3
slides:
platform: linux/amd64
build: slides
ports:
- "9000:9000"
- "35729:35729" # to enable live reloading
environment:
ELASTICSEARCH_URL: http://localhost:9200
KIBANA_URL: http://localhost:5601
INQUISITOR_URL: http://localhost:9400
EXERCISES_URL: http://localhost:9500
volumes:
- ./slides/slides:/usr/src/slides/slides
40 changes: 40 additions & 0 deletions es2-config/elasticsearch.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
network:
host: 0.0.0.0
node:
name: ${ES_NODENAME}
index:
number_of_replicas: 0
http:
max_content_length: 500mb
bootstrap:
mlockall: true
indices:
fielddata:
cache:
size: 25%
discovery:
zen:
ping:
unicast:
hosts: ["localhost"]
multicast:
enabled: false
minimum_master_nodes: 1
repositories:
url:
allowed_urls: ["https://elasticsearch-sample-data.s3.amazonaws.com/*"]
script:
engine:
groovy:
inline:
aggs: true
mapping: true
search: true
update: true
plugin: true
indexed:
aggs: true
mapping: true
search: true
update: true
plugin: true
Loading