// fetching data
[ 'READ' 'metric.1.1' { } '2015-01-01T00:00:00' '2016-01-01T00:00:00' ] FETCH
// down sampling and interpolation
[ SWAP bucketizer.mean 0 0 10 ] BUCKETIZE INTERPOLATE
// scaling
[ SWAP 10.0 mapper.mul 0 0 0 ] MAP
// sort ascending
SORT
egress.hbase.data.blockcache.gts.threshold = XXX
Set this parameter to a value > 1 to ensure that the block cache is populated if you are fetching data for less than XXX series. Successive reads should then be faster as the blocks will already be in the block cache and the region server will not need to fetch data from HDFS.
Is your HDFS setup on bare metal machines or on VMs? I/Os on VMs are known to impact HDFS performance.
For fetching multiple series you can enable parallel scans:
// Number of threads to use for scheduling parallel scanners. Use 0 to disable parallel scanners
egress.hbase.parallelscanners.poolsize = 16
// Maximum number of parallel scanners per fetch request. Use 0 to disable parallel scanners.
egress.hbase.parallelscanners.maxinflightperrequest = 4
// Minimum number of GTS to assign to a parallel scanner. If the number of GTS to fetch is below this limit, no
// parallel scanners will be spawned. Defaults to 4.
egress.hbase.parallelscanners.min.gts.perscanner = 1
// Maximum number of parallel scanners to use when fetching datapoints for a batch of GTS (see EGRESS_FETCH_BATCHSIZE).
egress.hbase.parallelscanners.max.parallel.scanners = 4
With parallel scanning enabled we can saturate a 1Gbps uplink of a region server.
egress.hbase.data.blockcache.gts.threshold = 1024
egress.hbase.parallelscanners.poolsize = 16
egress.hbase.parallelscanners.maxinflightperrequest = 8
egress.hbase.parallelscanners.min.gts.perscanner = 1
egress.hbase.parallelscanners.max.parallel.scanners = 16
[
'READ'
'~agent.8.[1,2,6]'
{}
//NOW -10
'2014-01-01T00:00:00'
'2017-01-01T00:00:00'
] FETCH
SIZE
warpscript.repository.directory=/opt/warp/macros
// Number of ms between rescan of the macro repository
warpscript.repository.refresh=60000
Then under the repository directory, create a 'gts' directory and put the pack and unapck mc2 files in it.
The macros will then be available via
@gts/pack and @gts/unpack
Mathias.