I ran a smaller scale test to check if skew affects the system. Test parameters:
- 10 "nodes"
- 300 "queries"
- 5 "metrics
- 300 hours
Totaling 15,000 time series, 4,500,000 data points total.
#create a test index with shingle mapping | |
curl -XPUT localhost:9200/test -d '{ | |
"settings":{ | |
"index":{ | |
"analysis":{ | |
"analyzer":{ | |
"analyzer_shingle":{ | |
"tokenizer":"standard", | |
"filter":["standard", "lowercase", "filter_stop", "filter_shingle"] | |
} |
#Create the index with no mapping | |
curl -XPUT localhost:9200/startswith/ | |
#add some data | |
curl -XPOST localhost:9200/startswith/test/ -d '{"title":"river dog"}' | |
curl -XPOST localhost:9200/startswith/test/ -d '{"title":"data"}' | |
curl -XPOST localhost:9200/startswith/test/ -d '{"title":"drive"}' | |
curl -XPOST localhost:9200/startswith/test/ -d '{"title":"drunk"}' | |
curl -XPOST localhost:9200/startswith/test/ -d '{"title":"dzone"}' |
var alter = require('../lib/alter.js'); | |
var _ = require('lodash'); | |
var Chainable = require('../lib/classes/chainable'); | |
module.exports = new Chainable('movingstd', { | |
args: [ | |
{ | |
name: 'inputSeries', | |
types: ['seriesList'] | |
}, | |
{ |
I hereby claim:
To claim this, I am signing this object:
curl -XPUT "http://localhost:9200/test" -d' | |
{ | |
"mappings": { | |
"test" : { | |
"properties": { | |
"arrayfield" : { | |
"type": "string" | |
} | |
} | |
} |
./bin/run-all.sh "/usr/share/elasticsearch/bin/elasticsearch -Des.path.conf=/etc/elasticsearch/" | |
Starting Elasticsearch... | |
Warming the JVM... | |
....................done! | |
------------------------------ Transient Tests ------------------------------ | |
elasticsearch tests |
<?php | |
/** | |
* Equivalent to performRequest in curlMultiHandleConnection | |
*/ | |
public function performRequest($method, $uri, $params = null, $body = null) | |
{ | |
$uri = $this->getURI($uri, $params); | |
$request = $this->buildGuzzleRequest($method, $uri, $body); |
public function assertThrowsException($exception, $code) | |
{ | |
$raisedException = null; | |
try { | |
$code(); | |
} catch (\Exception $raisedException) { | |
// No more code, we only want to catch the exception in $raisedException. | |
} | |
$this->assertInstanceOf($exception, $raisedException); |