Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

select * from collection limit 1; is taking a long time to return #364

Closed
FGRibreau opened this issue Mar 26, 2014 · 13 comments
Closed

select * from collection limit 1; is taking a long time to return #364

FGRibreau opened this issue Mar 26, 2014 · 13 comments
Milestone

Comments

@FGRibreau
Copy link

We are still testing InfluxDB v0.5 intensively. We are now storing 75973 points.

redsmin> select count(key) from monitoring
┌───────────────┬───────┐
│ time          │ count │
├───────────────┼───────┤
│ 1395780644966 │ 75973 │
└───────────────┴───────┘
Query took  1162 ms

redsmin> select * from monitoring limit 1
┌───────────────┬─────────────────┬───────────────────┬──────────────────┬───────────────────────────┬─────────────────┬────────────────┬─────────────────────────┬─────────────────────────┬────────────────────────┬─────────────────────────────────┬───────────────────┬──────────────────┬───────────────────────────┬─────────────────────┬────────────────────┬─────────────────────────────┬──────────────────┬─────────────────┬──────────────────────────┬──────────────────┬─────────────────┬──────────────────────────┬───────────────────────┬──────────────────────┬───────────────────────────────┬───────────────────┬──────────────────┬───────────────────────────┬───────────────────┬──────────────────┬───────────────────────────┬───────────────────┬──────────────────┬───────────────────────────┬──────────────────┬─────────────────┬──────────────────────────┬─────────────────┬────────────────┬─────────────────────────┬────────────────┬───────────────┬────────────────────────┬────────────────────┬───────────────────┬────────────────────────────┬─────────────────┬────────────────┬─────────────────────────┬─────────────────┬────────────────┬─────────────────────────┬─────────────────┬────────────────┬─────────────────────────┬────────────────────┬───────────────────┬────────────────────────────┬─────────────────┬────────────────┬─────────────────────────┬───────────────────┬──────────────────┬───────────────────────────┬───────────────────┬──────────────────┬───────────────────────────┬─────────────────────┬────────────────────┬─────────────────────────────┬─────────────────────┬────────────────────┬─────────────────────────────┬────────────────────┬───────────────────┬────────────────────────────┬────────────────┬───────────────┬────────────────────────┬───────────────────┬──────────────────┬───────────────────────────┬─────────────────────┬────────────────────┬─────────────────────────────┬───────────────────┬──────────────────┬───────────────────────────┬─────────────────┬────────────────┬─────────────────────────┬────────────────────┬───────────────────┬────────────────────────────┬─────────────────┬────────────────┬─────────────────────────┬────────────────────┬───────────────────┬────────────────────────────┬────────────────────┬───────────────────┬────────────────────────────┬──────────────────┬─────────────────┬──────────────────────────┬─────────────────┬────────────────┬─────────────────────────┬──────────────────┬─────────────────┬──────────────────────────┬──────────────────┬─────────────────┬──────────────────────────┬──────────────────┬─────────────────┬──────────────────────────┬─────────────────┬────────────────┬─────────────────────────┬───────────────────┬──────────────────┬───────────────────────────┬──────────────────┬─────────────────┬──────────────────────────┬─────────────────┬────────────────┬─────────────────────────┬───────────────────┬──────────────────┬───────────────────────────┬─────────────────┬────────────────┬─────────────────────────┬─────────────────┬────────────────┬─────────────────────────┬─────────────────────┬────────────────────┬─────────────────────────────┬───────────────────┬──────────────────┬───────────────────────────┬─────────────────┬────────────────┬─────────────────────────┬─────────────────┬────────────────┬─────────────────────────┬──────────────────┬─────────────────┬──────────────────────────┬───────────────────┬──────────────────┬───────────────────────────┬─────────────────┬────────────────┬─────────────────────────┬─────────────────┬────────────────┬─────────────────────────┬──────────────────┬─────────────────┬──────────────────────────┬─────────────────┬────────────────┬─────────────────────────┬────────────────────┬───────────────────┬────────────────────────────┬─────────────────┬────────────────┬─────────────────────────┬──────────────────┬─────────────────┬──────────────────────────┬───────────────────┬──────────────────┬───────────────────────────┬────────────────────┬───────────────────┬────────────────────────────┬────────────────────┬───────────────────┬────────────────────────────┬──────────────────────┬─────────────────────┬──────────────────────────────┬─────────────────┬────────────────┬─────────────────────────┬───────────────────┬──────────────────┬───────────────────────────┬───────────────────────┬──────────────────────┬───────────────────────────────┬──────────────────┬─────────────────┬──────────────────────────┬─────────────────┬────────────────┬─────────────────────────┬────────────────────┬───────────────────┬────────────────────────────┬───────────────────┬──────────────────┬───────────────────────────┬──────────────────────┬─────────────────────┬──────────────────────────────┬───────────────────┬──────────────────┬───────────────────────────┬─────────────────────┬────────────────────┬─────────────────────────────┬────────────────────┬───────────────────┬────────────────────────────┬─────────────────┬────────────────┬─────────────────────────┬──────────────────────┬─────────────────────┬──────────────────────────────┬──────────────────┬─────────────────┬──────────────────────────┬─────────────────┬────────────────┬─────────────────────────┬─────────────────┬────────────────┬─────────────────────────┬─────────────────┬────────────────┬─────────────────────────┬──────────────────┬─────────────────┬──────────────────────────┬───────────────────┬──────────────────┬───────────────────────────┬──────────────────┬─────────────────┬──────────────────────────┬───────────────────────┬──────────────────────┬───────────────────────────────┬───────────────────┬──────────────────┬───────────────────────────┬────────────────┬───────────────┬────────────────────────┬───────────────────┬──────────────────┬───────────────────────────┬──────────────────┬─────────────────┬──────────────────────────┬──────────────────┬─────────────────┬──────────────────────────┬───────────────────┬──────────────────┬───────────────────────────┬────────────────────────┬───────────────────────┬────────────────────────────────┬──────────────────────┬─────────────────────┬──────────────────────────────┬────────────────────┬───────────────────┬────────────────────────────┬────────────────────┬───────────────────┬────────────────────────────┬─────────────────────┬────────────────────┬─────────────────────────────┬──────────────────┬─────────────────┬──────────────────────────┬─────────────────┬────────────────┬─────────────────────────┬─────────────────┬────────────────┬─────────────────────────┬────────────────────────┬───────────────────────┬────────────────────────────────┬─────────────────┬────────────────┬─────────────────────────┬──────────────────┬─────────────────┬──────────────────────────┬───────────────────┬──────────────────┬───────────────────────────┬──────────────────────┬─────────────────────┬──────────────────────────────┬───────────────────┬──────────────────┬───────────────────────────┬────────────────────────┬───────────────────────┬────────────────────────────────┬─────────────────┬────────────────┬─────────────────────────┬─────────────────┬────────────────┬─────────────────────────┬────────────────┬───────────────┬────────────────────────┬─────────────────┬────────────────┬─────────────────────────┬────────────────────────┬───────────────────────┬────────────────────────────────┬────────────────────┬───────────────────┬────────────────────────────┬──────────────────┬─────────────────┬──────────────────────────┬─────────────────┬────────────────┬─────────────────────────┬──────────────────┬─────────────────┬──────────────────────────┬───────────────────┬──────────────────┬───────────────────────────┬────────────────────┬───────────────────┬────────────────────────────┬────────────────────────┬───────────────────────┬────────────────────────────────┬───────────────────┬──────────────────┬───────────────────────────┬──────────────────────────┬─────────────────────────┬──────────────────────────────────┬──────────────────┬─────────────────┬──────────────────────────┬─────────────────┬────────────────┬─────────────────────────┬────────────────────────────┬───────────────────────────┬────────────────────────────────────┬─────────────────────────────┬────────────────────────────┬─────────────────────────────────────┬──────────────────────┬─────────────────────┬──────────────────────────────┬─────────────────────────────┬────────────────────────────┬─────────────────────────────────────┬─────────────────────┬────────────────────┬─────────────────────────────┬──────────────────┬─────────────────┬──────────────────────────┬───────────────────┬──────────────────┬───────────────────────────┬────────────────────────┬───────────────────────┬────────────────────────────────┬───────────────┬────────────┬───────────────┬────────────┬────────────────┬─────────────┬────────────────┬─────────────┬────────────────┬─────────────┬────────────────┬─────────────┬────────────────┬─────────────┬────────────────┬─────────────┬───────────────┬────────────┬───────────────┬────────────┬───────────────┬────────────┬───────────────┬────────────┬───────────────┬────────────┬───────────────┬────────────┬───────────────┬────────────┬───────────────┬────────────┬───────────────────────────────────┬────────────────────────────────┬──────────────────────────────┬────────────────────────────┬──────────────────────┬───────────────────────────────┬─────────────────────────────────┬────────────────────────┬───────────────────────┬───────────────────┬───────────────────┬────────────────────────────────┬────────────────────┬──────────────────────┬───────────────────────┬──────────────────────────────┬──────────────────────┬──────────────────────┬──────────────────────────────────┬──────────────────────────────────┬───────────────────────────────┬─────────────────────────┬───────────────────────────┬───────────────────────────────┬─────────────────────────────────┬────────────────────────┬───────────────────┬────────────────────┬──────────────────┬──────────────────────┬───────────────────────┬──────────────────────┬──────────────────────────┐
│ time          │ sequence_number │ cmds.append.calls │ cmds.append.usec │ cmds.append.usec_per_call │ cmds.auth.calls │ cmds.auth.usec │ cmds.auth.usec_per_call │ cmds.bgrewriteaof.calls │ cmds.bgrewriteaof.usec │ cmds.bgrewriteaof.usec_per_call │ cmds.bgsave.calls │ cmds.bgsave.usec │ cmds.bgsave.usec_per_call │ cmds.bitcount.calls │ cmds.bitcount.usec │ cmds.bitcount.usec_per_call │ cmds.blpop.calls │ cmds.blpop.usec │ cmds.blpop.usec_per_call │ cmds.brpop.calls │ cmds.brpop.usec │ cmds.brpop.usec_per_call │ cmds.brpoplpush.calls │ cmds.brpoplpush.usec │ cmds.brpoplpush.usec_per_call │ cmds.client.calls │ cmds.client.usec │ cmds.client.usec_per_call │ cmds.config.calls │ cmds.config.usec │ cmds.config.usec_per_call │ cmds.dbsize.calls │ cmds.dbsize.usec │ cmds.dbsize.usec_per_call │ cmds.debug.calls │ cmds.debug.usec │ cmds.debug.usec_per_call │ cmds.decr.calls │ cmds.decr.usec │ cmds.decr.usec_per_call │ cmds.del.calls │ cmds.del.usec │ cmds.del.usec_per_call │ cmds.discard.calls │ cmds.discard.usec │ cmds.discard.usec_per_call │ cmds.dump.calls │ cmds.dump.usec │ cmds.dump.usec_per_call │ cmds.echo.calls │ cmds.echo.usec │ cmds.echo.usec_per_call │ cmds.eval.calls │ cmds.eval.usec │ cmds.eval.usec_per_call │ cmds.evalsha.calls │ cmds.evalsha.usec │ cmds.evalsha.usec_per_call │ cmds.exec.calls │ cmds.exec.usec │ cmds.exec.usec_per_call │ cmds.exists.calls │ cmds.exists.usec │ cmds.exists.usec_per_call │ cmds.expire.calls │ cmds.expire.usec │ cmds.expire.usec_per_call │ cmds.expireat.calls │ cmds.expireat.usec │ cmds.expireat.usec_per_call │ cmds.flushall.calls │ cmds.flushall.usec │ cmds.flushall.usec_per_call │ cmds.flushdb.calls │ cmds.flushdb.usec │ cmds.flushdb.usec_per_call │ cmds.get.calls │ cmds.get.usec │ cmds.get.usec_per_call │ cmds.getbit.calls │ cmds.getbit.usec │ cmds.getbit.usec_per_call │ cmds.getrange.calls │ cmds.getrange.usec │ cmds.getrange.usec_per_call │ cmds.getset.calls │ cmds.getset.usec │ cmds.getset.usec_per_call │ cmds.hdel.calls │ cmds.hdel.usec │ cmds.hdel.usec_per_call │ cmds.hexists.calls │ cmds.hexists.usec │ cmds.hexists.usec_per_call │ cmds.hget.calls │ cmds.hget.usec │ cmds.hget.usec_per_call │ cmds.hgetall.calls │ cmds.hgetall.usec │ cmds.hgetall.usec_per_call │ cmds.hincrby.calls │ cmds.hincrby.usec │ cmds.hincrby.usec_per_call │ cmds.hkeys.calls │ cmds.hkeys.usec │ cmds.hkeys.usec_per_call │ cmds.hlen.calls │ cmds.hlen.usec │ cmds.hlen.usec_per_call │ cmds.hmget.calls │ cmds.hmget.usec │ cmds.hmget.usec_per_call │ cmds.hmset.calls │ cmds.hmset.usec │ cmds.hmset.usec_per_call │ cmds.hscan.calls │ cmds.hscan.usec │ cmds.hscan.usec_per_call │ cmds.hset.calls │ cmds.hset.usec │ cmds.hset.usec_per_call │ cmds.hsetnx.calls │ cmds.hsetnx.usec │ cmds.hsetnx.usec_per_call │ cmds.hvals.calls │ cmds.hvals.usec │ cmds.hvals.usec_per_call │ cmds.incr.calls │ cmds.incr.usec │ cmds.incr.usec_per_call │ cmds.incrby.calls │ cmds.incrby.usec │ cmds.incrby.usec_per_call │ cmds.info.calls │ cmds.info.usec │ cmds.info.usec_per_call │ cmds.keys.calls │ cmds.keys.usec │ cmds.keys.usec_per_call │ cmds.lastsave.calls │ cmds.lastsave.usec │ cmds.lastsave.usec_per_call │ cmds.lindex.calls │ cmds.lindex.usec │ cmds.lindex.usec_per_call │ cmds.llen.calls │ cmds.llen.usec │ cmds.llen.usec_per_call │ cmds.lpop.calls │ cmds.lpop.usec │ cmds.lpop.usec_per_call │ cmds.lpush.calls │ cmds.lpush.usec │ cmds.lpush.usec_per_call │ cmds.lrange.calls │ cmds.lrange.usec │ cmds.lrange.usec_per_call │ cmds.lrem.calls │ cmds.lrem.usec │ cmds.lrem.usec_per_call │ cmds.lset.calls │ cmds.lset.usec │ cmds.lset.usec_per_call │ cmds.ltrim.calls │ cmds.ltrim.usec │ cmds.ltrim.usec_per_call │ cmds.mget.calls │ cmds.mget.usec │ cmds.mget.usec_per_call │ cmds.monitor.calls │ cmds.monitor.usec │ cmds.monitor.usec_per_call │ cmds.mset.calls │ cmds.mset.usec │ cmds.mset.usec_per_call │ cmds.multi.calls │ cmds.multi.usec │ cmds.multi.usec_per_call │ cmds.object.calls │ cmds.object.usec │ cmds.object.usec_per_call │ cmds.persist.calls │ cmds.persist.usec │ cmds.persist.usec_per_call │ cmds.pexpire.calls │ cmds.pexpire.usec │ cmds.pexpire.usec_per_call │ cmds.pexpireat.calls │ cmds.pexpireat.usec │ cmds.pexpireat.usec_per_call │ cmds.ping.calls │ cmds.ping.usec │ cmds.ping.usec_per_call │ cmds.psetex.calls │ cmds.psetex.usec │ cmds.psetex.usec_per_call │ cmds.psubscribe.calls │ cmds.psubscribe.usec │ cmds.psubscribe.usec_per_call │ cmds.psync.calls │ cmds.psync.usec │ cmds.psync.usec_per_call │ cmds.pttl.calls │ cmds.pttl.usec │ cmds.pttl.usec_per_call │ cmds.publish.calls │ cmds.publish.usec │ cmds.publish.usec_per_call │ cmds.pubsub.calls │ cmds.pubsub.usec │ cmds.pubsub.usec_per_call │ cmds.randomkey.calls │ cmds.randomkey.usec │ cmds.randomkey.usec_per_call │ cmds.rename.calls │ cmds.rename.usec │ cmds.rename.usec_per_call │ cmds.replconf.calls │ cmds.replconf.usec │ cmds.replconf.usec_per_call │ cmds.restore.calls │ cmds.restore.usec │ cmds.restore.usec_per_call │ cmds.rpop.calls │ cmds.rpop.usec │ cmds.rpop.usec_per_call │ cmds.rpoplpush.calls │ cmds.rpoplpush.usec │ cmds.rpoplpush.usec_per_call │ cmds.rpush.calls │ cmds.rpush.usec │ cmds.rpush.usec_per_call │ cmds.sadd.calls │ cmds.sadd.usec │ cmds.sadd.usec_per_call │ cmds.save.calls │ cmds.save.usec │ cmds.save.usec_per_call │ cmds.scan.calls │ cmds.scan.usec │ cmds.scan.usec_per_call │ cmds.scard.calls │ cmds.scard.usec │ cmds.scard.usec_per_call │ cmds.script.calls │ cmds.script.usec │ cmds.script.usec_per_call │ cmds.sdiff.calls │ cmds.sdiff.usec │ cmds.sdiff.usec_per_call │ cmds.sdiffstore.calls │ cmds.sdiffstore.usec │ cmds.sdiffstore.usec_per_call │ cmds.select.calls │ cmds.select.usec │ cmds.select.usec_per_call │ cmds.set.calls │ cmds.set.usec │ cmds.set.usec_per_call │ cmds.setbit.calls │ cmds.setbit.usec │ cmds.setbit.usec_per_call │ cmds.setex.calls │ cmds.setex.usec │ cmds.setex.usec_per_call │ cmds.setnx.calls │ cmds.setnx.usec │ cmds.setnx.usec_per_call │ cmds.sinter.calls │ cmds.sinter.usec │ cmds.sinter.usec_per_call │ cmds.sinterstore.calls │ cmds.sinterstore.usec │ cmds.sinterstore.usec_per_call │ cmds.sismember.calls │ cmds.sismember.usec │ cmds.sismember.usec_per_call │ cmds.slaveof.calls │ cmds.slaveof.usec │ cmds.slaveof.usec_per_call │ cmds.slowlog.calls │ cmds.slowlog.usec │ cmds.slowlog.usec_per_call │ cmds.smembers.calls │ cmds.smembers.usec │ cmds.smembers.usec_per_call │ cmds.smove.calls │ cmds.smove.usec │ cmds.smove.usec_per_call │ cmds.sort.calls │ cmds.sort.usec │ cmds.sort.usec_per_call │ cmds.spop.calls │ cmds.spop.usec │ cmds.spop.usec_per_call │ cmds.srandmember.calls │ cmds.srandmember.usec │ cmds.srandmember.usec_per_call │ cmds.srem.calls │ cmds.srem.usec │ cmds.srem.usec_per_call │ cmds.sscan.calls │ cmds.sscan.usec │ cmds.sscan.usec_per_call │ cmds.strlen.calls │ cmds.strlen.usec │ cmds.strlen.usec_per_call │ cmds.subscribe.calls │ cmds.subscribe.usec │ cmds.subscribe.usec_per_call │ cmds.sunion.calls │ cmds.sunion.usec │ cmds.sunion.usec_per_call │ cmds.sunionstore.calls │ cmds.sunionstore.usec │ cmds.sunionstore.usec_per_call │ cmds.sync.calls │ cmds.sync.usec │ cmds.sync.usec_per_call │ cmds.time.calls │ cmds.time.usec │ cmds.time.usec_per_call │ cmds.ttl.calls │ cmds.ttl.usec │ cmds.ttl.usec_per_call │ cmds.type.calls │ cmds.type.usec │ cmds.type.usec_per_call │ cmds.unsubscribe.calls │ cmds.unsubscribe.usec │ cmds.unsubscribe.usec_per_call │ cmds.unwatch.calls │ cmds.unwatch.usec │ cmds.unwatch.usec_per_call │ cmds.watch.calls │ cmds.watch.usec │ cmds.watch.usec_per_call │ cmds.zadd.calls │ cmds.zadd.usec │ cmds.zadd.usec_per_call │ cmds.zcard.calls │ cmds.zcard.usec │ cmds.zcard.usec_per_call │ cmds.zcount.calls │ cmds.zcount.usec │ cmds.zcount.usec_per_call │ cmds.zincrby.calls │ cmds.zincrby.usec │ cmds.zincrby.usec_per_call │ cmds.zinterstore.calls │ cmds.zinterstore.usec │ cmds.zinterstore.usec_per_call │ cmds.zrange.calls │ cmds.zrange.usec │ cmds.zrange.usec_per_call │ cmds.zrangebyscore.calls │ cmds.zrangebyscore.usec │ cmds.zrangebyscore.usec_per_call │ cmds.zrank.calls │ cmds.zrank.usec │ cmds.zrank.usec_per_call │ cmds.zrem.calls │ cmds.zrem.usec │ cmds.zrem.usec_per_call │ cmds.zremrangebyrank.calls │ cmds.zremrangebyrank.usec │ cmds.zremrangebyrank.usec_per_call │ cmds.zremrangebyscore.calls │ cmds.zremrangebyscore.usec │ cmds.zremrangebyscore.usec_per_call │ cmds.zrevrange.calls │ cmds.zrevrange.usec │ cmds.zrevrange.usec_per_call │ cmds.zrevrangebyscore.calls │ cmds.zrevrangebyscore.usec │ cmds.zrevrangebyscore.usec_per_call │ cmds.zrevrank.calls │ cmds.zrevrank.usec │ cmds.zrevrank.usec_per_call │ cmds.zscan.calls │ cmds.zscan.usec │ cmds.zscan.usec_per_call │ cmds.zscore.calls │ cmds.zscore.usec │ cmds.zscore.usec_per_call │ cmds.zunionstore.calls │ cmds.zunionstore.usec │ cmds.zunionstore.usec_per_call │ dbs.0.expires │ dbs.0.keys │ dbs.1.expires │ dbs.1.keys │ dbs.10.expires │ dbs.10.keys │ dbs.11.expires │ dbs.11.keys │ dbs.12.expires │ dbs.12.keys │ dbs.13.expires │ dbs.13.keys │ dbs.14.expires │ dbs.14.keys │ dbs.15.expires │ dbs.15.keys │ dbs.2.expires │ dbs.2.keys │ dbs.3.expires │ dbs.3.keys │ dbs.4.expires │ dbs.4.keys │ dbs.5.expires │ dbs.5.keys │ dbs.6.expires │ dbs.6.keys │ dbs.7.expires │ dbs.7.keys │ dbs.8.expires │ dbs.8.keys │ dbs.9.expires │ dbs.9.keys │ info.aof_current_rewrite_time_sec │ info.aof_last_rewrite_time_sec │ info.aof_rewrite_in_progress │ info.aof_rewrite_scheduled │ info.blocked_clients │ info.client_biggest_input_buf │ info.client_longest_output_list │ info.connected_clients │ info.connected_slaves │ info.evicted_keys │ info.expired_keys │ info.instantaneous_ops_per_sec │ info.keyspace_hits │ info.keyspace_misses │ info.latest_fork_usec │ info.mem_fragmentation_ratio │ info.pubsub_channels │ info.pubsub_patterns │ info.rdb_changes_since_last_save │ info.rdb_current_bgsave_time_sec │ info.rdb_last_bgsave_time_sec │ info.rdb_last_save_time │ info.rejected_connections │ info.total_commands_processed │ info.total_connections_received │ info.uptime_in_seconds │ info.used_cpu_sys │ info.used_cpu_user │ info.used_memory │ info.used_memory_lua │ info.used_memory_peak │ info.used_memory_rss │ key                      │
│ 1395841866932 │ 759730001       │                   │                  │                           │                 │                │                         │                         │                        │                                 │                   │                  │                           │                     │                    │                             │                  │                 │                          │                  │                 │                          │                       │                      │                               │                   │                  │                           │ 258356            │ 2092539          │ 8.1                       │                   │                  │                           │                  │                 │                          │                 │                │                         │                │               │                        │                    │                   │                            │                 │                │                         │                 │                │                         │                 │                │                         │                    │                   │                            │                 │                │                         │                   │                  │                           │                   │                  │                           │                     │                    │                             │                     │                    │                             │                    │                   │                            │ 1              │ 6             │ 6                      │                   │                  │                           │                     │                    │                             │                   │                  │                           │                 │                │                         │                    │                   │                            │                 │                │                         │ 2                  │ 34                │ 17                         │                    │                   │                            │                  │                 │                          │                 │                │                         │                  │                 │                          │                  │                 │                          │                  │                 │                          │ 2               │ 39             │ 19.5                    │                   │                  │                           │                  │                 │                          │                 │                │                         │                   │                  │                           │                 │                │                         │ 9               │ 162            │ 18                      │                     │                    │                             │                   │                  │                           │                 │                │                         │                 │                │                         │                  │                 │                          │                   │                  │                           │                 │                │                         │                 │                │                         │                  │                 │                          │                 │                │                         │                    │                   │                            │                 │                │                         │                  │                 │                          │                   │                  │                           │                    │                   │                            │                    │                   │                            │                      │                     │                              │ 254883          │ 840812         │ 3.3                     │                   │                  │                           │                       │                      │                               │                  │                 │                          │                 │                │                         │                    │                   │                            │                   │                  │                           │                      │                     │                              │                   │                  │                           │                     │                    │                             │                    │                   │                            │                 │                │                         │                      │                     │                              │                  │                 │                          │ 13              │ 113            │ 8.69                    │                 │                │                         │                 │                │                         │ 18               │ 132             │ 7.33                     │                   │                  │                           │ 1                │ 44              │ 44                       │                       │                      │                               │ 1                 │ 17               │ 17                        │ 4              │ 26            │ 6.5                    │                   │                  │                           │                  │                 │                          │                  │                 │                          │ 1                 │ 17               │ 17                        │ 2                      │ 31                    │ 15.5                           │                      │                     │                              │                    │                   │                            │                    │                   │                            │                     │                    │                             │                  │                 │                          │                 │                │                         │                 │                │                         │ 8                      │ 156                   │ 19.5                           │ 3               │ 66             │ 22                      │                  │                 │                          │ 1                 │ 25               │ 25                        │                      │                     │                              │                   │                  │                           │                        │                       │                                │                 │                │                         │                 │                │                         │ 21             │ 90            │ 4.29                   │ 21              │ 128            │ 6.1                     │                        │                       │                                │                    │                   │                            │                  │                 │                          │ 2               │ 81             │ 40.5                    │ 3                │ 26              │ 8.67                     │                   │                  │                           │                    │                   │                            │                        │                       │                                │ 3                 │ 52               │ 17.33                     │                          │                         │                                  │                  │                 │                          │                 │                │                         │                            │                           │                                    │                             │                            │                                     │ 1                    │ 33                  │ 33                           │                             │                            │                                     │                     │                    │                             │                  │                 │                          │                   │                  │                           │                        │                       │                                │ 0             │ 9          │               │            │                │             │                │             │                │             │                │             │                │             │                │             │               │            │               │            │               │            │               │            │               │            │               │            │               │            │               │            │ -1                                │ -1                             │ 0                            │ 0                          │ 0                    │ 0                             │ 0                               │ 1                      │ 0                     │ 0                 │ 0                 │ 2                              │ 98                 │ 8                    │ 0                     │ 1                            │ 0                    │ 0                    │ 32                               │ -1                               │ 0                             │ 1395411517              │ 0                         │ 4324                          │ 9                               │ 516709                 │ 0                 │ 0                  │ 3141272          │ 33792                │ 3141272               │ 3141272              │ 532af0000000000024d │
Query took  4059 ms

4 seconds (http request <-> http response) to retrieve the last written point seems way too long. Should we consider this a normal behavior?

I thought that one of InfluxDB goal was to answer queries in less than 1 seconds but I can't find this information on the website anymore... Maybe it was just a dream after all ^^ !

@jvshahid
Copy link
Contributor

hi @FGRibreau, it's probably something stupid that we're doing. This cannot be accepted as the normal behavior. Can you share the data set with us or does it have sensitive information ? Either way, optimizing the code is on our todo list. we'll take a look and work on optimizing the code starting with your use case.

@FGRibreau
Copy link
Author

Great! I sent an email to @pauldix on that matter (unfortunately I did not had yours). Thanks!

@jvshahid
Copy link
Contributor

Can you forward the email to support at influxdb dot com or the mailing list

@FGRibreau
Copy link
Author

Done !

@jvshahid
Copy link
Contributor

Documenting the progress on this story. Currently we don't check the limits at the shard level, which we should do, I opened an issue to track this change #370. Doing a quick hack to test whether this will improve performance, I found out that even with the limit the cpu usage is quite high and the query time didn't improve that much. So we'll have to do some profiling and find the bottle neck.

@jvshahid jvshahid modified the milestones: 0.5.3, 0.5.2 Mar 28, 2014
@FGRibreau
Copy link
Author

OK thanks !

Note: below another datapoint from today

> select count(key) from monitoring;
┌───────────────┬────────┐
│ time          │ count  │
├───────────────┼────────┤
│ 1395780644966 │ 351321 │
└───────────────┴────────┘
Query took  **13950** ms

It now takes 384MB of memory and 16s to retrieve the last point with select * from monitoring limit 1;

@jvshahid
Copy link
Contributor

We did some profiling and it turns out that the default config is not ideal for your use case. You need to bump the following config option up a little bit, may be to 500 (which I tested locally):

[leveldb]

# Maximum mmap open files, this will affect the virtual memory used by
# the process
max-open-files = 500

You have 450 columns in your time series, which are stored as different logical time series in leveldb. Reading all columns with the current default limit of 40 max open files, cause leveldb to continuously open, decompress and close the leveldb files. Bumping this number will cause leveldb to cache some information in memory.

That said, we still need to propagate limits to the shards so they don't read more points than are actually needed, but making this change to the config will boost performance considerably.

@jvshahid
Copy link
Contributor

@FGRibreau can you verify the performance after changing this configuration and close the issue if the performance improves and meets your expectations. There's another issue that tracks checking limits at the shard level #370

@jvshahid jvshahid self-assigned this Mar 31, 2014
@jvshahid
Copy link
Contributor

@FGRibreau I'm gonne go ahead and close this issue since we're getting ready to release InfluxDB 0.5.3. Please feel free to reopen the issue if you the previous suggested changes to the config file don't work for you.

@FGRibreau
Copy link
Author

Hello @jvshahid,

Here is what I got with InfluxDB 0.5.3:

redsmin> select count(key) from monitoring;
┌───────────────┬────────┐
│ time          │ count  │
├───────────────┼────────┤
│ 1395780644966 │ 692365 │
└───────────────┴────────┘
Query took  14026 ms

Then, I stopped influxdb, changed the configuration, restarted it.

redsmin> select count(key) from monitoring;
┌───────────────┬────────┐
│ time          │ count  │
├───────────────┼────────┤
│ 1395780644966 │ 692365 │
└───────────────┴────────┘
Query took  11701 ms

At idle state influxdb took 7MB of memory, then once the query completed it took 113MB or memory which is quite reasonable. However the response time is better compared to v0.5 (since the number of points was two times higher)

[UPDATE]

I can't request:

select count(key) from monitoring

Influxdb memory consumption grew to high, I had to kill it.

@FGRibreau
Copy link
Author

@jvshahid could you please reopen this issue ? Ths bug is still not fixed

@jvshahid
Copy link
Contributor

jvshahid commented Apr 4, 2014

@FGRibreau what version did you use ? You should be using v0.5.4 which has a fix for Issue #341 merged in.

@FGRibreau
Copy link
Author

I installed 0.5.5 and that way much better, thanks !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants