Drupal Code: Fetch Link, Title, Category names, tag names from every article
See the code below: The output will be 4 columns separated by comma. You can…
September 06, 2019
This post is about hosting ElasticSearch cluster on dockerised environment. We are also running Kibana configured on running ElasticSearch cluster.
version: '2.2'
services:
es01:
image: docker.elastic.co/elasticsearch/elasticsearch:7.3.1
container_name: es01
environment:
- node.name=es01
- discovery.seed_hosts=es02
- cluster.initial_master_nodes=es01,es02
- cluster.name=docker-cluster
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- esdata01:/usr/share/elasticsearch/data
ports:
- 9200:9200
networks:
- esnet
es02:
image: docker.elastic.co/elasticsearch/elasticsearch:7.3.1
container_name: es02
environment:
- node.name=es02
- discovery.seed_hosts=es01
- cluster.initial_master_nodes=es01,es02
- cluster.name=docker-cluster
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- esdata02:/usr/share/elasticsearch/data
networks:
- esnet
kibana:
image: docker.elastic.co/kibana/kibana:7.3.1
container_name: kibana
environment:
SERVER_NAME: kibana.local
ELASTICSEARCH_HOSTS: http://es01:9200
ports:
- 5601:5601
networks:
- esnet
volumes:
esdata01:
driver: local
esdata02:
driver: local
networks:
esnet:
docker-compose up -d
<host>:5601
For first few seconds, you might see message: Kibana is not ready yet Try refreshing after some time. It will open up Kibana for you.
You might need to do following configuration, if your container died after few seconds (see the logs of your container):
In file: /etc/sysctl.conf
Append in end:
vm.max_map_count=262144
For ElasticSearch:
curl http://127.0.0.1:9200/_cat/health
Output will be look like:
1567757045 08:04:05 docker-cluster green 2 2 10 5 0 0 0 0 - 100.0%
For Kibana:
Either open in browser:
<hostname>:5601/status
Or, via api:
curl http://127.0.0.1:5601/api/status
See the code below: The output will be 4 columns separated by comma. You can…
Assuming you have a java project and is using Visual Studio Code as IDE. All of…
Code that I have is: It was: I changed it to: So, I needed to change button type…
Introduction VS code is an excellent free IDE for maany types of programming…
Introduction to Problem I have some data related to users. For example: which…
Static websites have several advantages over dyanamic websites. If you are…
Introduction In this post we will see following: How to schedule a job on cron…
Introduction There are some cases, where I need another git repository while…
Introduction In this post, we will see how to fetch multiple credentials and…
Introduction I have an automation script, that I want to run on different…
Introduction I had to write a CICD system for one of our project. I had to…
Introduction Java log4j has many ways to initialize and append the desired…