Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Jinna Balu JinnaBalu

🏠
Working from home
View GitHub Profile
View kafka.yml
version: '3.7'
services:
zookeeper:
image: confluentinc/cp-zookeeper:5.3.1
container_name: zookeeper
environment:
ZOOKEEPER_CLIENT_PORT: 2181
ZOOKEEPER_TICK_TIME: 2000
kafka:
image: confluentinc/cp-kafka:5.3.1
@JinnaBalu
JinnaBalu / stack.yml
Created August 30, 2019 07:04
Kafka Confluence Docker Compose
View stack.yml
version: '2'
services:
zookeeper:
image: confluentinc/cp-zookeeper:5.3.0
environment:
ZOOKEEPER_CLIENT_PORT: 2181
ZOOKEEPER_TICK_TIME: 2000
ZOOKEEPER_SYNC_LIMIT: 2
ports:
- 2181:2181
@JinnaBalu
JinnaBalu / Jenkins-Supported-Time-Zones.md
Last active December 24, 2020 19:29
Jenkins supported time zones depend on the Java runtime
View Jenkins-Supported-Time-Zones.md

The Efficient Mappings in Elasticsearch Index

Implicit/Dynamic Mappings vs Explicit Mappings

Implicit/Dynamic Mapping: Indexing the document without defining the mappings, new fields will be added to the top level and nested. Helps to index data faster, the optimized way of indexing will help indexing perform better with the following.

  • Enable date_detection and set the dynamic_date_formats
  • Numeric Detection, "numeric_detection": true
  • Customer Analyzers need to be tested before going production using Analyzer API, standard analyzers are supported out of the box for natural languages.
  • Coerce, indexing fails if the dirty values are getting indexed. Example if you are trying to save a number with "10" it will be either saved as floating point or a string but not integer, to make it strict we use coerce at index level of field level
@JinnaBalu
JinnaBalu / nginx-docker-swarm.yaml
Created March 19, 2019 07:31
NGINX Docker swam service with SSL and and conf
View nginx-docker-swarm.yaml
version: '3'
services:
proxy:
image: nginx:latest
volumes:
- nginx-proxy-conf:/etc/nginx/
- nginx-proxy-ssl-certs:/etc/nginx/ssl
- nginx-proxy-html:/usr/share/nginx/html
ports:
- 80:80
@JinnaBalu
JinnaBalu / elasticsearch-simple-compose.yaml
Created February 26, 2019 03:12
elasticsearch 6.6* simple compose
View elasticsearch-simple-compose.yaml
version: '3.3'
services:
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:6.6.0
container_name: elasticsearch
ports:
- 9200:9200
- 9300:9300
environment:
ES_JAVA_OPTS: '-Xms256m -Xmx256m'
@JinnaBalu
JinnaBalu / elasticsearch-6.6.*-simple-compose-volume.yaml
Created February 26, 2019 03:10
elasticsearch 6.6.* simple compose with volume
View elasticsearch-6.6.*-simple-compose-volume.yaml
version: '3.3'
services:
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:6.6.0
container_name: elasticsearch
volumes:
- /var/db/data/elasticsearch:/usr/share/elasticsearch
ports:
- 9200:9200
- 9300:9300
@JinnaBalu
JinnaBalu / elasticsearch-6.6.0-cors-and-xpack-disabled-activated.yaml
Created February 26, 2019 02:03
Elasticsearch docker-compose file with CORS activated and XPack disabled
View elasticsearch-6.6.0-cors-and-xpack-disabled-activated.yaml
version: '3.3'
services:
elasticsearch1:
image: docker.elastic.co/elasticsearch/elasticsearch:6.6.0
environment:
ES_JAVA_OPTS: '-Xms256m -Xmx256m'
cluster.name: es-cluster
node.name: es1
network.bind_host: 0.0.0.0
discovery.zen.minimum_master_nodes: 1
@JinnaBalu
JinnaBalu / postgres-adminer.yml
Created February 24, 2019 19:51
Postgres with adminer UI
View postgres-adminer.yml
version: '3.1'
services:
postgres:
image: postgres
container_name: postgres
restart: always
environment:
- POSTGRES_USER=test
- POSTGRES_PASSWORD=test