Skip to content

Instantly share code, notes, and snippets.

View jinnabaalu's full-sized avatar

Jinna Baalu jinnabaalu

View GitHub Profile
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
@jinnabaalu
jinnabaalu / stack.yml
Created August 30, 2019 07:04
Kafka Confluence Docker Compose
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
@jinnabaalu
jinnabaalu / Jenkins-Supported-Time-Zones.md
Last active June 6, 2023 13:40
Jenkins supported time zones depend on the Java runtime

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
@jinnabaalu
jinnabaalu / nginx-docker-swarm.yaml
Created March 19, 2019 07:31
NGINX Docker swam service with SSL and and conf
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
@jinnabaalu
jinnabaalu / elasticsearch-simple-compose.yaml
Created February 26, 2019 03:12
elasticsearch 6.6* simple compose
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'
@jinnabaalu
jinnabaalu / elasticsearch-6.6.*-simple-compose-volume.yaml
Created February 26, 2019 03:10
elasticsearch 6.6.* simple compose with volume
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
@jinnabaalu
jinnabaalu / 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
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
@jinnabaalu
jinnabaalu / postgres-adminer.yml
Created February 24, 2019 19:51
Postgres with adminer UI
version: '3.1'
services:
postgres:
image: postgres
container_name: postgres
restart: always
environment:
- POSTGRES_USER=test
- POSTGRES_PASSWORD=test