% bin/elasticsearch \
-Des.cluster.name=drewr1 \
-Des.network.host=127.0.0.1 \
-Des.discovery.zen.ping.unicast.hosts=127.0.0.1 \
{ | |
"twitter": { | |
"mappings": { | |
"status": { | |
"_all": { | |
"enabled": false | |
}, | |
"_size": { | |
"enabled": true, | |
"store": true |
#!/bin/sh | |
ulimit -l unlimited | |
ulimit -n unlimited | |
CLUSTER=amex | |
NODE=node01 | |
export ES_HEAP_SIZE=24g |
#!/bin/sh | |
curl -XDELETE localhost:9200/foo >/dev/null | |
curl -XPUT localhost:9200/foo/t/1\?routing=one -d'{"fizzle":[1,2]}'; echo | |
curl -XPUT localhost:9200/foo/t/2\?routing=two -d'{"fazzle":[3223,23]}'; echo | |
curl -XPOST localhost:9200/foo/_refresh; echo | |
curl localhost:9200/foo/_search -d' |
Run will take 10 seconds | |
0 :ok 208 ▌ | |
1 :ok 224 ▌ | |
2 :ok 108 ▎ | |
3 :ok 98 ▎ | |
4 :ok 96 ▎ | |
5 :ok 62 ▏ | |
6 :ok 62 ▏ | |
7 :ok 45 ▏ | |
8 :ok 45 ▏ |
while true; do | |
curl https://play.google.com/store/devices -L -s --compressed \ | |
| fgrep -q -o "Nexus 5" && say -v Fred Nexus 5 launched\! | |
sleep 60 | |
done |
#!/bin/sh | |
index=$1 | |
find . -name \*.bulk.gz | while read i; do | |
gzip -cd $i | curl -XPOST localhost:9200/${index}/_bulk -d@- >/dev/null | |
done | |
#!/bin/sh | |
curl -XDELETE localhost:9200/foo >/dev/null | |
curl -XPOST localhost:9200/foo/t -d' | |
{ | |
"clicks": 10, | |
"impressions": 1000, | |
"when": "2013-10-01" | |
} |
#!/bin/sh | |
curl -XDELETE localhost:9200/foo >/dev/null | |
curl -XPUT localhost:9200/foo/t/1 -d'{"field":"value"}'; echo | |
curl -XPOST localhost:9200/foo/_refresh; echo | |
curl -v -H X-Opaque-Id:FOOOOOOO localhost:9200/foo/_search; echo |
#!/bin/bash | |
curl -XDELETE localhost:9200/test >/dev/null | |
curl -XPUT localhost:9200/test -d' | |
{ | |
"number_of_replicas": 0, | |
"number_of_shards": 1 | |
} |