Skip to content

Instantly share code, notes, and snippets.

View limhs25's full-sized avatar

grover limhs25

  • smilegate.co.ltd
  • seoul
View GitHub Profile
public class Pager {
private long page;
private long count;
private String sortby;
private boolean desc;
private int limit;
private String name;
private String lastKey;
@limhs25
limhs25 / 20130416-todo.md
Created March 29, 2018 14:43 — forked from mrflip/20130416-todo.md
Elasticsearch Tuning Plan

Next Steps

  • Measure time spend on index, flush, refresh, merge, query, etc. (TD - done)
  • Take hot threads snapshots under read+write, read-only, write-only (TD - done)
  • Adjust refresh time to 10s (from 1s) and see how load changes (TD)
  • Measure time of a rolling restart doing disable_flush and disable_recovery (TD)
  • Specify routing on query -- make it choose same node for each shard each time (MD)
  • GC new generation size (TD)
  • Warmers
  • measure before/after of client query time with and without warmers (MD)
@limhs25
limhs25 / elk_stack_install.md
Created October 13, 2015 04:39 — forked from squarism/elk_stack_install.md
Quick Elasticsearch / Kibana / Logstash (ELK stack) Install (for your local mac dev box)

Elasticsearch / Kibana / Logstash Quick Install

Instructions for getting an ELK stack set up quick on Mac. Paths are opinionated. You'll have to infer and change. Sorry mate. 🍰

Install Homebrew if not already. You probably have. If not, you should.

brew install elasticsearch nginx

do yourself a favor and get a better services command than launchctl

#!/bin/sh
# Start fresh
curl -q -XDELETE 'localhost:19200/emails?pretty' 2>1 1>/dev/null
# Create index 'emails' with a mapping for type 'user', and settings for
# custom email analyzers
echo "Create Index"
curl -XPUT 'localhost:19200/emails?pretty' -d '{
"settings": {
curl -XDELETE 'http://localhost:9200/test-idx'
echo
curl -XPUT 'http://localhost:9200/test-idx'
echo
echo
echo "**** Standard analyzer ****"
curl 'http://localhost:9200/test-idx/_analyze?pretty=true' -d 'This is a test of vamsikrishna@gmail.com'
echo
curl -XDELETE 'http://localhost:9200/test-idx'
echo