$ /usr/share/elasticsearch/bin/elasticsearch --help
Usage: /usr/share/elasticsearch/bin/elasticsearch [-vdh] [-p pidfile] [-D prop] [-X prop]
Start elasticsearch.
-d daemonize (run in background)
-p pidfile write PID to <pidfile>
-h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
syntax = "proto3"; | |
package fastchain; | |
//Interface exposed by pbft committee nodes | |
service FastChain { | |
//RPC service that responds whether the node is the leader | |
rpc CheckLeader (CheckLeaderReq) returns (CheckLeaderResp) {} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version": 0, | |
"dependencies": [ | |
{ | |
"importpath": "cloud.google.com/go/bigquery", | |
"repository": "https://code.googlesource.com/gocloud", | |
"vcs": "git", | |
"revision": "5dc73f060f3844a0da646dd93286dc86ab4f00f6", | |
"branch": "master", | |
"path": "bigquery", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"timed_out" : false, | |
"took" : 1, | |
"_shards" : { | |
"failed" : 0, | |
"successful" : 10, | |
"skipped" : 0, | |
"total" : 10 | |
}, | |
"hits" : { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ npm run build | |
> [email protected] build /home/arcolife/workspace/grafana | |
> grunt build | |
Version 5.0.0-pre1 | |
Running "clean:release" (clean) task | |
>> 0 paths cleaned. | |
Running "clean:build" (clean) task |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from elasticsearch import helpers | |
from elasticsearch import Elasticsearch | |
hosts = [dict(host='0.0.0.0', port=9200),] | |
es = Elasticsearch(hosts) | |
d = [{'_op_type': 'create', '_index': 'sarjitsu.sar-20160224', '_type': 'sar', '_id': '744f14216b8bfd2ce701de37f7cfd434', '_source': {'timestamp': {'date': '2016-02-24', 'time': '02:46:18', 'utc': 1, 'interval': 29778}, 'cpu-load-all': [{'usr': 0.0, 'nice': 0.0, 'sys': 0.0, 'iowait': 0.0, 'steal': 0.0, 'irq': 0.0, 'soft': 0.0, 'guest': 0.0, 'gnice': 0.0, 'idle': 0.0, 'cpu': 'all'}, {'usr': 11.9, 'nice': 0.13, 'sys': 1.64, 'iowait': 0.36, 'steal': 0.0, 'irq': 0.0, 'soft': 0.0, 'guest': 0.0, 'gnice': 0.0, 'idle': 85.97, 'cpu': 0}, {'usr': 0.0, 'nice': 0.0, 'sys': 0.0, 'iowait': 0.0, 'steal': 0.0, 'irq': 0.0, 'soft': 0.0, 'guest': 0.0, 'gnice': 0.0, 'idle': 0.0, 'cpu': 1}, {'usr': 0.0, 'nice': 0.0, 'sys': 0.0, 'iowait': 0.0, 'steal': 0.0, 'irq': 0.0, 'soft': 0.0, 'guest': 0.0, 'gnice': 0.0, 'idle': 0.0, 'cpu': 2}, {'usr': 0.0, 'nice': 0.0, 'sys': 0.0, 'iowait': 0.0, 'st |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
```ipy | |
# summary | |
In [11]: %history | |
from redis import Redis | |
con = Redis(host='0.0.0.0', port=6379) | |
con.get('saDir') | |
con.keys('*') | |
con.keys('file_metadata*') | |
con.hmget('file_metadata:36f61983-ea5d-4cfb-bfd8-57a9ae706cb8:sa15_f19', "sadf_type_det") | |
con.hgetall('file_metadata:79b9895a-ceb9-43c0-a5b9-0d9cc7ee3da0:sa24_arco') |
Script: https://github.com/arcolife/cfme-tune/blob/master/scripts/count_msg_state_in_range.sh
... -t
=> defaults to message delivered state type: Error
... -b <> -e <>
=> defaults to last one hour's worth of data.
Datetime format is of type $ date +'%Y-%m-%dT%H:%M:%S'
... - c --
=> optional argument