[0.9.3-rc3] Timeouts before/after compaction every few hours
When writing batches of 5000, sorted tags, and sorted timestamps I am seeing 80-150 ms write times, which is great. Although when a flush of points happen it is causing 5-60+ second writes to happen afterwards. (note I increased timeout to not have it timeout every time) If I let the process continue it will slowly get worst over time, where 10+ minutes happens.
Was playing a bit with WAL settings attempting to change when it flushes, but unable to get the times lower.
System is a 40 core, 128gb memory, with four ssds in raid 0. When checking cpu, memory, and io bandwidth no saturation is shown. This is a single system without clustering at the moment.
Is there a way I can tune the performance to not have huge slow downs after flushing? After ~1 hour I will be timing out requests at 30 secs, unless I set the timeout higher.
[http] 2015/08/19 14:25:31 127.0.0.1 - test_db [19/Aug/2015:14:25:31 -0700] POST /write?db=test_db&precision=s HTTP/1.1 204 0 - python-requests/2.7.0 CPython/2.7.6 Linux/3.13.0-44-generic d2027bb5-46b8-11e5-86d1-000000000000 103.633885ms
[http] 2015/08/19 14:25:31 127.0.0.1 - test_db [19/Aug/2015:14:25:31 -0700] POST /write?db=test_db&precision=s HTTP/1.1 204 0 - python-requests/2.7.0 CPython/2.7.6 Linux/3.13.0-44-generic d20806b0-46b8-11e5-86d2-000000000000 94.814799ms
[http] 2015/08/19 14:25:31 127.0.0.1 - test_db [19/Aug/2015:14:25:31 -0700] POST /write?db=test_db&precision=s HTTP/1.1 204 0 - python-requests/2.7.0 CPython/2.7.6 Linux/3.13.0-44-generic d20c1abe-46b8-11e5-86d3-000000000000 96.294478ms
[http] 2015/08/19 14:25:31 127.0.0.1 - test_db [19/Aug/2015:14:25:31 -0700] POST /write?db=test_db&precision=s HTTP/1.1 204 0 - python-requests/2.7.0 CPython/2.7.6 Linux/3.13.0-44-generic d21271a3-46b8-11e5-86d4-000000000000 84.136748ms
[http] 2015/08/19 14:25:31 127.0.0.1 - test_db [19/Aug/2015:14:25:31 -0700] POST /write?db=test_db&precision=s HTTP/1.1 204 0 - python-requests/2.7.0 CPython/2.7.6 Linux/3.13.0-44-generic d21bfdb2-46b8-11e5-86d5-000000000000 78.614925ms
[http] 2015/08/19 14:25:31 127.0.0.1 - test_db [19/Aug/2015:14:25:31 -0700] POST /write?db=test_db&precision=s HTTP/1.1 204 0 - python-requests/2.7.0 CPython/2.7.6 Linux/3.13.0-44-generic d2218e43-46b8-11e5-86d6-000000000000 81.78379ms
[http] 2015/08/19 14:25:31 127.0.0.1 - test_db [19/Aug/2015:14:25:31 -0700] POST /write?db=test_db&precision=s HTTP/1.1 204 0 - python-requests/2.7.0 CPython/2.7.6 Linux/3.13.0-44-generic d223cd33-46b8-11e5-86d7-000000000000 95.386842ms
[http] 2015/08/19 14:25:31 127.0.0.1 - test_db [19/Aug/2015:14:25:31 -0700] POST /write?db=test_db&precision=s HTTP/1.1 204 0 - python-requests/2.7.0 CPython/2.7.6 Linux/3.13.0-44-generic d2245898-46b8-11e5-86d8-000000000000 137.523698ms
[http] 2015/08/19 14:25:31 127.0.0.1 - test_db [19/Aug/2015:14:25:31 -0700] POST /write?db=test_db&precision=s HTTP/1.1 204 0 - python-requests/2.7.0 CPython/2.7.6 Linux/3.13.0-44-generic d2292c76-46b8-11e5-86d9-000000000000 133.277378ms
[http] 2015/08/19 14:25:31 127.0.0.1 - test_db [19/Aug/2015:14:25:31 -0700] POST /write?db=test_db&precision=s HTTP/1.1 204 0 - python-requests/2.7.0 CPython/2.7.6 Linux/3.13.0-44-generic d232dc38-46b8-11e5-86db-000000000000 71.651486ms
[http] 2015/08/19 14:25:32 127.0.0.1 - test_db [19/Aug/2015:14:25:31 -0700] POST /write?db=test_db&precision=s HTTP/1.1 204 0 - python-requests/2.7.0 CPython/2.7.6 Linux/3.13.0-44-generic d22f6b34-46b8-11e5-86da-000000000000 131.494937ms
[http] 2015/08/19 14:25:32 127.0.0.1 - test_db [19/Aug/2015:14:25:31 -0700] POST /write?db=test_db&precision=s HTTP/1.1 204 0 - python-requests/2.7.0 CPython/2.7.6 Linux/3.13.0-44-generic d23a6e7f-46b8-11e5-86dc-000000000000 87.159591ms
[http] 2015/08/19 14:25:32 127.0.0.1 - test_db [19/Aug/2015:14:25:31 -0700] POST /write?db=test_db&precision=s HTTP/1.1 204 0 - python-requests/2.7.0 CPython/2.7.6 Linux/3.13.0-44-generic d23eb131-46b8-11e5-86dd-000000000000 91.954593ms
[http] 2015/08/19 14:25:32 127.0.0.1 - test_db [19/Aug/2015:14:25:32 -0700] POST /write?db=test_db&precision=s HTTP/1.1 204 0 - python-requests/2.7.0 CPython/2.7.6 Linux/3.13.0-44-generic d244996b-46b8-11e5-86de-000000000000 80.581726ms
[b1] 2015/08/19 14:25:40 flush 250954 points in 7.811s
[http] 2015/08/19 14:25:40 127.0.0.1 - test_db [19/Aug/2015:14:25:32 -0700] POST /write?db=test_db&precision=s HTTP/1.1 204 0 - python-requests/2.7.0 CPython/2.7.6 Linux/3.13.0-44-generic d248c8b1-46b8-11e5-86df-000000000000 8.053766986s
[http] 2015/08/19 14:25:40 127.0.0.1 - test_db [19/Aug/2015:14:25:32 -0700] POST /write?db=test_db&precision=s HTTP/1.1 204 0 - python-requests/2.7.0 CPython/2.7.6 Linux/3.13.0-44-generic d2516636-46b8-11e5-86e1-000000000000 8.053153738s
[http] 2015/08/19 14:25:40 127.0.0.1 - test_db [19/Aug/2015:14:25:32 -0700] POST /write?db=test_db&precision=s HTTP/1.1 204 0 - python-requests/2.7.0 CPython/2.7.6 Linux/3.13.0-44-generic d24ec6cd-46b8-11e5-86e0-000000000000 8.107646338s
[http] 2015/08/19 14:25:40 127.0.0.1 - test_db [19/Aug/2015:14:25:32 -0700] POST /write?db=test_db&precision=s HTTP/1.1 204 0 - python-requests/2.7.0 CPython/2.7.6 Linux/3.13.0-44-generic d27b9a29-46b8-11e5-86e2-000000000000 7.845382473s
[http] 2015/08/19 14:25:40 127.0.0.1 - test_db [19/Aug/2015:14:25:33 -0700] POST /write?db=test_db&precision=s HTTP/1.1 204 0 - python-requests/2.7.0 CPython/2.7.6 Linux/3.13.0-44-generic d2df56eb-46b8-11e5-86e3-000000000000 7.228934829s
[http] 2015/08/19 14:25:40 127.0.0.1 - test_db [19/Aug/2015:14:25:37 -0700] POST /write?db=test_db&precision=s HTTP/1.1 204 0 - python-requests/2.7.0 CPython/2.7.6 Linux/3.13.0-44-generic d55e886d-46b8-11e5-86e4-000000000000 3.068860671s
[http] 2015/08/19 14:25:40 127.0.0.1 - test_db [19/Aug/2015:14:25:40 -0700] POST /write?db=test_db&precision=s HTTP/1.1 204 0 - python-requests/2.7.0 CPython/2.7.6 Linux/3.13.0-44-generic d716f60d-46b8-11e5-86e5-000000000000 217.668397ms
[http] 2015/08/19 14:25:40 127.0.0.1 - test_db [19/Aug/2015:14:25:40 -0700] POST /write?db=test_db&precision=s HTTP/1.1 204 0 - python-requests/2.7.0 CPython/2.7.6 Linux/3.13.0-44-generic d721638f-46b8-11e5-86e6-000000000000 175.557728ms
[http] 2015/08/19 14:25:40 127.0.0.1 - test_db [19/Aug/2015:14:25:40 -0700] POST /write?db=test_db&precision=s HTTP/1.1 204 0 - python-requests/2.7.0 CPython/2.7.6 Linux/3.13.0-44-generic d7267009-46b8-11e5-86e7-000000000000 177.344821ms
@gerrickw it looks like you might still be using the old version, or possibly still on the old b1 datastore because you're using a pre-existing database. you shouldn't be seeing that flush message any longer, and the [b1] at the beginning of the log line is an indication that it's not using the latest changes. could you try starting with a fresh database?
I did an upgrade from 0.9.3 master today so most likely why it was referencing b1. I was wondering why the wal directory was not created previously. I wiped the data and started again and appears much better. Previously I had the slow downs after adding 12 hours or so of data (which I forgot to mention previously), so I'll let you know tomorrow if it comes up again.
For now I'll close the issue and reopen if I see the problem again tomorrow.
Thanks @toddboom ! Gerrick W
Running 0.9.3-rc3 and looks like this is still occurring with the bz1 engine. I ran some data over night and I see timeouts before and/or after compaction. It doesn't happen as often as previously, but still noticeable in batches of 3-10 timeouts every few hours.
Is there some suggested tuning I can do on the default config?
[http] 2015/08/25 20:36:20 127.0.0.1 - test_db [25/Aug/2015:20:36:20 -0700] POST /write?db=test_db&precision=s HTTP/1.1 204 0 - python-requests/2.7.0 CPython/2.7.6 Linux/3.13.0-44-generic 9df952fc-4ba3-11e5-80ac-000000000000 90.418318ms
[http] 2015/08/25 20:36:21 127.0.0.1 - test_db [25/Aug/2015:20:36:20 -0700] POST /write?db=test_db&precision=s HTTP/1.1 204 0 - python-requests/2.7.0 CPython/2.7.6 Linux/3.13.0-44-generic 9e081979-4ba3-11e5-80ae-000000000000 987.185863ms
[http] 2015/08/25 20:36:21 127.0.0.1 - test_db [25/Aug/2015:20:36:20 -0700] POST /write?db=test_db&precision=s HTTP/1.1 204 0 - python-requests/2.7.0 CPython/2.7.6 Linux/3.13.0-44-generic 9e076cbe-4ba3-11e5-80ad-000000000000 1.016557254s
[http] 2015/08/25 20:36:21 127.0.0.1 - test_db [25/Aug/2015:20:36:21 -0700] POST /write?db=test_db&precision=s HTTP/1.1 204 0 - python-requests/2.7.0 CPython/2.7.6 Linux/3.13.0-44-generic 9e6c655b-4ba3-11e5-80af-000000000000 366.672003ms
[wal] 2015/08/25 20:36:22 compaction of partition 3 took 8.942282235s
[http] 2015/08/25 20:36:26 127.0.0.1 - test_db [25/Aug/2015:20:36:21 -0700] POST /write?db=test_db&precision=s HTTP/1.1 500 32 - python-requests/2.7.0 CPython/2.7.6 Linux/3.13.0-44-generic 9e9fbf70-4ba3-11e5-80b0-000000000000 5.020808121s
[http] 2015/08/25 20:36:26 127.0.0.1 - test_db [25/Aug/2015:20:36:21 -0700] POST /write?db=test_db&precision=s HTTP/1.1 500 32 - python-requests/2.7.0 CPython/2.7.6 Linux/3.13.0-44-generic 9ea3bb1a-4ba3-11e5-80b1-000000000000 5.016141169s
[http] 2015/08/25 20:36:26 127.0.0.1 - test_db [25/Aug/2015:20:36:21 -0700] POST /write?db=test_db&precision=s HTTP/1.1 500 32 - python-requests/2.7.0 CPython/2.7.6 Linux/3.13.0-44-generic 9ea58964-4ba3-11e5-80b2-000000000000 5.016692126s
[http] 2015/08/25 20:36:26 127.0.0.1 - test_db [25/Aug/2015:20:36:21 -0700] POST /write?db=test_db&precision=s HTTP/1.1 500 32 - python-requests/2.7.0 CPython/2.7.6 Linux/3.13.0-44-generic 9eb6b788-4ba3-11e5-80b3-000000000000 5.014959432s
[wal] 2015/08/25 20:36:27 compaction of partition 5 took 8.404439427s
[http] 2015/08/25 20:36:27 127.0.0.1 - test_db [25/Aug/2015:20:36:22 -0700] POST /write?db=test_db&precision=s HTTP/1.1 204 0 - python-requests/2.7.0 CPython/2.7.6 Linux/3.13.0-44-generic 9f385746-4ba3-11e5-80b4-000000000000 4.694561285s
[http] 2015/08/25 20:36:27 127.0.0.1 - test_db [25/Aug/2015:20:36:26 -0700] POST /write?db=test_db&precision=s HTTP/1.1 204 0 - python-requests/2.7.0 CPython/2.7.6 Linux/3.13.0-44-generic a1a2c130-4ba3-11e5-80b9-000000000000 673.710602ms
[http] 2015/08/25 20:36:27 127.0.0.1 - test_db [25/Aug/2015:20:36:23 -0700] POST /write?db=test_db&precision=s HTTP/1.1 204 0 - python-requests/2.7.0 CPython/2.7.6 Linux/3.13.0-44-generic 9fd7b61b-4ba3-11e5-80b6-000000000000 3.683017911s
[http] 2015/08/25 20:36:27 127.0.0.1 - test_db [25/Aug/2015:20:36:26 -0700] POST /write?db=test_db&precision=s HTTP/1.1 204 0 - python-requests/2.7.0 CPython/2.7.6 Linux/3.13.0-44-generic a1b5c98f-4ba3-11e5-80bb-000000000000 551.039138ms
...
[http] 2015/08/26 07:24:29 127.0.0.1 - test_db [26/Aug/2015:07:24:29 -0700] POST /write?db=test_db&precision=s HTTP/1.1 204 0 - python-requests/2.7.0 CPython/2.7.6 Linux/3.13.0-44-generic 293add1a-4bfe-11e5-8672-000000000000 93.40702ms
[http] 2015/08/26 07:24:29 127.0.0.1 - test_db [26/Aug/2015:07:24:29 -0700] POST /write?db=test_db&precision=s HTTP/1.1 204 0 - python-requests/2.7.0 CPython/2.7.6 Linux/3.13.0-44-generic 294a76eb-4bfe-11e5-8673-000000000000 84.531123ms
[http] 2015/08/26 07:24:29 127.0.0.1 - test_db [26/Aug/2015:07:24:29 -0700] POST /write?db=test_db&precision=s HTTP/1.1 204 0 - python-requests/2.7.0 CPython/2.7.6 Linux/3.13.0-44-generic 2958bc42-4bfe-11e5-8674-000000000000 84.157116ms
[http] 2015/08/26 07:24:29 127.0.0.1 - test_db [26/Aug/2015:07:24:29 -0700] POST /write?db=test_db&precision=s HTTP/1.1 204 0 - python-requests/2.7.0 CPython/2.7.6 Linux/3.13.0-44-generic 2966f021-4bfe-11e5-8675-000000000000 95.522611ms
[http] 2015/08/26 07:24:29 127.0.0.1 - test_db [26/Aug/2015:07:24:29 -0700] POST /write?db=test_db&precision=s HTTP/1.1 204 0 - python-requests/2.7.0 CPython/2.7.6 Linux/3.13.0-44-generic 29762ccc-4bfe-11e5-8676-000000000000 60.186139ms
[wal] 2015/08/26 07:24:32 compaction of partition 2 took 13.49591726s
[wal] 2015/08/26 07:24:33 compaction of partition 4 took 7.778353032s
[wal] 2015/08/26 07:24:34 Flush due to memory. Flushing 61226 series with 20806385 bytes from partition 4. Compacting 10296 series
[http] 2015/08/26 07:24:34 127.0.0.1 - test_db [26/Aug/2015:07:24:34 -0700] POST /write?db=test_db&precision=s HTTP/1.1 204 0 - python-requests/2.7.0 CPython/2.7.6 Linux/3.13.0-44-generic 2c5a03f0-4bfe-11e5-8677-000000000000 25.012638ms
[http] 2015/08/26 07:24:35 127.0.0.1 - test_db [26/Aug/2015:07:24:34 -0700] POST /write?db=test_db&precision=s HTTP/1.1 204 0 - python-requests/2.7.0 CPython/2.7.6 Linux/3.13.0-44-generic 2cca38e1-4bfe-11e5-8678-000000000000 73.644557ms
[http] 2015/08/26 07:24:35 127.0.0.1 - test_db [26/Aug/2015:07:24:35 -0700] POST /write?db=test_db&precision=s HTTP/1.1 204 0 - python-requests/2.7.0 CPython/2.7.6 Linux/3.13.0-44-generic 2cd6e613-4bfe-11e5-8679-000000000000 71.990283ms
[http] 2015/08/26 07:24:35 127.0.0.1 - test_db [26/Aug/2015:07:24:35 -0700] POST /write?db=test_db&precision=s HTTP/1.1 204 0 - python-requests/2.7.0 CPython/2.7.6 Linux/3.13.0-44-generic 2ce342cc-4bfe-11e5-867a-000000000000 80.252329ms
[http] 2015/08/26 07:24:35 127.0.0.1 - test_db [26/Aug/2015:07:24:35 -0700] POST /write?db=test_db&precision=s HTTP/1.1 204 0 - python-requests/2.7.0 CPython/2.7.6 Linux/3.13.0-44-generic 2cea71e6-4bfe-11e5-867b-000000000000 80.01692ms
[http] 2015/08/26 07:24:35 127.0.0.1 - test_db [26/Aug/2015:07:24:35 -0700] POST /write?db=test_db&precision=s HTTP/1.1 204 0 - python-requests/2.7.0 CPython/2.7.6 Linux/3.13.0-44-generic 2cf0fb27-4bfe-11e5-867c-000000000000 78.425631ms
[http] 2015/08/26 07:24:35 127.0.0.1 - test_db [26/Aug/2015:07:24:35 -0700] POST /write?db=test_db&precision=s HTTP/1.1 204 0 - python-requests/2.7.0 CPython/2.7.6 Linux/3.13.0-44-generic 2cf8089f-4bfe-11e5-867d-000000000000 79.146417ms
[http] 2015/08/26 07:24:35 127.0.0.1 - test_db [26/Aug/2015:07:24:35 -0700] POST /write?db=test_db&precision=s HTTP/1.1 204 0 - python-requests/2.7.0 CPython/2.7.6 Linux/3.13.0-44-generic 2cfe854e-4bfe-11e5-867e-000000000000 79.894394ms
[http] 2015/08/26 07:24:35 127.0.0.1 - test_db [26/Aug/2015:07:24:35 -0700] POST /write?db=test_db&precision=s HTTP/1.1 204 0 - python-requests/2.7.0 CPython/2.7.6 Linux/3.13.0-44-generic 2d05867d-4bfe-11e5-867f-000000000000 78.934017ms
[http] 2015/08/26 07:24:35 127.0.0.1 - test_db [26/Aug/2015:07:24:35 -0700] POST /write?db=test_db&precision=s HTTP/1.1 204 0 - python-requests/2.7.0 CPython/2.7.6 Linux/3.13.0-44-generic 2d0c4604-4bfe-11e5-8680-000000000000 81.725805ms
[http] 2015/08/26 07:24:40 127.0.0.1 - test_db [26/Aug/2015:07:24:35 -0700] POST /write?db=test_db&precision=s HTTP/1.1 500 32 - python-requests/2.7.0 CPython/2.7.6 Linux/3.13.0-44-generic 2d130e60-4bfe-11e5-8681-000000000000 5.018705189s
[http] 2015/08/26 07:24:40 127.0.0.1 - test_db [26/Aug/2015:07:24:35 -0700] POST /write?db=test_db&precision=s HTTP/1.1 500 32 - python-requests/2.7.0 CPython/2.7.6 Linux/3.13.0-44-generic 2d1a3342-4bfe-11e5-8682-000000000000 5.017424231s
[http] 2015/08/26 07:24:40 127.0.0.1 - test_db [26/Aug/2015:07:24:35 -0700] POST /write?db=test_db&precision=s HTTP/1.1 500 32 - python-requests/2.7.0 CPython/2.7.6 Linux/3.13.0-44-generic 2d56995c-4bfe-11e5-8683-000000000000 5.019494317s
[http] 2015/08/26 07:24:41 127.0.0.1 - test_db [26/Aug/2015:07:24:36 -0700] POST /write?db=test_db&precision=s HTTP/1.1 500 32 - python-requests/2.7.0 CPython/2.7.6 Linux/3.13.0-44-generic 2dc9e9fd-4bfe-11e5-8684-000000000000 5.015181583s
[http] 2015/08/26 07:24:41 127.0.0.1 - test_db [26/Aug/2015:07:24:36 -0700] POST /write?db=test_db&precision=s HTTP/1.1 500 32 - python-requests/2.7.0 CPython/2.7.6 Linux/3.13.0-44-generic 2de11b05-4bfe-11e5-8685-000000000000 5.015781501s
[http] 2015/08/26 07:24:41 127.0.0.1 - test_db [26/Aug/2015:07:24:36 -0700] POST /write?db=test_db&precision=s HTTP/1.1 500 32 - python-requests/2.7.0 CPython/2.7.6 Linux/3.13.0-44-generic 2dea7596-4bfe-11e5-8686-000000000000 5.01522758s
[http] 2015/08/26 07:24:42 127.0.0.1 - test_db [26/Aug/2015:07:24:37 -0700] POST /write?db=test_db&precision=s HTTP/1.1 500 32 - python-requests/2.7.0 CPython/2.7.6 Linux/3.13.0-44-generic 2e812b9c-4bfe-11e5-8687-000000000000 5.080465344s
[http] 2015/08/26 07:24:43 127.0.0.1 - test_db [26/Aug/2015:07:24:38 -0700] POST /write?db=test_db&precision=s HTTP/1.1 500 32 - python-requests/2.7.0 CPython/2.7.6 Linux/3.13.0-44-generic 2eb69c61-4bfe-11e5-8688-000000000000 5.024110963s
[http] 2015/08/26 07:24:45 127.0.0.1 - test_db [26/Aug/2015:07:24:40 -0700] POST /write?db=test_db&precision=s HTTP/1.1 500 32 - python-requests/2.7.0 CPython/2.7.6 Linux/3.13.0-44-generic 30121770-4bfe-11e5-8689-000000000000 5.021607939s
[http] 2015/08/26 07:24:45 127.0.0.1 - test_db [26/Aug/2015:07:24:40 -0700] POST /write?db=test_db&precision=s HTTP/1.1 500 32 - python-requests/2.7.0 CPython/2.7.6 Linux/3.13.0-44-generic 301911b3-4bfe-11e5-868a-000000000000 5.018837176s
[http] 2015/08/26 07:24:45 127.0.0.1 - test_db [26/Aug/2015:07:24:40 -0700] POST /write?db=test_db&precision=s HTTP/1.1 500 32 - python-requests/2.7.0 CPython/2.7.6 Linux/3.13.0-44-generic 3056008d-4bfe-11e5-868b-000000000000 5.015864267s
[http] 2015/08/26 07:24:46 127.0.0.1 - test_db [26/Aug/2015:07:24:41 -0700] POST /write?db=test_db&precision=s HTTP/1.1 500 32 - python-requests/2.7.0 CPython/2.7.6 Linux/3.13.0-44-generic 30c8b1dc-4bfe-11e5-868c-000000000000 5.021255172s
[http] 2015/08/26 07:24:46 127.0.0.1 - test_db [26/Aug/2015:07:24:41 -0700] POST /write?db=test_db&precision=s HTTP/1.1 500 32 - python-requests/2.7.0 CPython/2.7.6 Linux/3.13.0-44-generic 30df44a3-4bfe-11e5-868d-000000000000 5.002526023s
[wal] 2015/08/26 07:24:46 compaction of partition 4 took 12.651419521s
[http] 2015/08/26 07:24:46 127.0.0.1 - test_db [26/Aug/2015:07:24:44 -0700] POST /write?db=test_db&precision=s HTTP/1.1 204 0 - python-requests/2.7.0 CPython/2.7.6 Linux/3.13.0-44-generic 325181ce-4bfe-11e5-8691-000000000000 2.662867636s
[http] 2015/08/26 07:24:46 127.0.0.1 - test_db [26/Aug/2015:07:24:41 -0700] POST /write?db=test_db&precision=s HTTP/1.1 500 32 - python-requests/2.7.0 CPython/2.7.6 Linux/3.13.0-44-generic 30e9e537-4bfe-11e5-868e-000000000000 5.022536913s
[http] 2015/08/26 07:24:46 127.0.0.1 - test_db [26/Aug/2015:07:24:43 -0700] POST /write?db=test_db&precision=s HTTP/1.1 204 0 - python-requests/2.7.0 CPython/2.7.6 Linux/3.13.0-44-generic 31b65bdd-4bfe-11e5-8690-000000000000 3.696566348s
[http] 2015/08/26 07:24:46 127.0.0.1 - test_db [26/Aug/2015:07:24:45 -0700] POST /write?db=test_db&precision=s HTTP/1.1 204 0 - python-requests/2.7.0 CPython/2.7.6 Linux/3.13.0-44-generic 33185065-4bfe-11e5-8693-000000000000 1.378606497s
[http] 2015/08/26 07:24:46 127.0.0.1 - test_db [26/Aug/2015:07:24:46 -0700] POST /write?db=test_db&precision=s HTTP/1.1 204 0 - python-requests/2.7.0 CPython/2.7.6 Linux/3.13.0-44-generic 33c94dc0-4bfe-11e5-8694-000000000000 219.27398ms
[http] 2015/08/26 07:24:46 127.0.0.1 - test_db [26/Aug/2015:07:24:42 -0700] POST /write?db=test_db&precision=s HTTP/1.1 204 0 - python-requests/2.7.0 CPython/2.7.6 Linux/3.13.0-44-generic 318985bc-4bfe-11e5-868f-000000000000 3.993644181s
[http] 2015/08/26 07:24:47 127.0.0.1 - test_db [26/Aug/2015:07:24:46 -0700] POST /write?db=test_db&precision=s HTTP/1.1 204 0 - python-requests/2.7.0 CPython/2.7.6 Linux/3.13.0-44-generic 33ec978e-4bfe-11e5-8697-000000000000 60.925149ms
[http] 2015/08/26 07:24:47 127.0.0.1 - test_db [26/Aug/2015:07:24:46 -0700] POST /write?db=test_db&precision=s HTTP/1.1 204 0 - python-requests/2.7.0 CPython/2.7.6 Linux/3.13.0-44-generic 33ece895-4bfe-11e5-8699-000000000000 59.089098ms
[http] 2015/08/26 07:24:47 127.0.0.1 - test_db [26/Aug/2015:07:24:46 -0700] POST /write?db=test_db&precision=s HTTP/1.1 204 0 - python-requests/2.7.0 CPython/2.7.6 Linux/3.13.0-44-generic 33eaaf82-4bfe-11e5-8695-000000000000 74.796709ms
[http] 2015/08/26 07:24:47 127.0.0.1 - test_db [26/Aug/2015:07:24:45 -0700] POST /write?db=test_db&precision=s HTTP/1.1 204 0 - python-requests/2.7.0 CPython/2.7.6 Linux/3.13.0-44-generic 3311d735-4bfe-11e5-8692-000000000000 1.499820666s
[http] 2015/08/26 07:24:47 127.0.0.1 - test_db [26/Aug/2015:07:24:46 -0700] POST /write?db=test_db&precision=s HTTP/1.1 204 0 - python-requests/2.7.0 CPython/2.7.6 Linux/3.13.0-44-generic 33ecd73c-4bfe-11e5-8698-000000000000 64.906609ms
We added some additional compaction logging that will be included in the nightly tonight at 12:00 PT. Can you upgrade to that and post some of the log output for what the compaction times look like?
It looks as if the WAL is now processing smaller chunks in the latest nightly. However, the memory usage seems to have gone up. After twenty minutes, RSS grew from 5 to 10 GB and it's not going down. This is without any CQs. More details on my setup are here: https://github.com/influxdb/influxdb/issues/3728#issuecomment-135773090 - and here's the log from just now: https://gist.github.com/KiNgMaR/98a36225e9a3018fb45f
@KiNgMaR -- to pick up the latest WAL logging you'll need to run with the nightly build that will be generated in about 30 minutes.
@otoolep -- thanks for the hint, but the new log entries from 040fa060dfab7f31a69decdaabad86dcb2306772 already are in the log I posted :)
OK, thanks @KiNgMaR -- the log looked like it was a built image:
2015/09/02 07:44:23 InfluxDB starting, version 0.9.4-nightly-14c04eb, branch master, commit 14c04eb4d62c89b725376afaf2195cfe09029933
This is an issue where the index can't keep up with the WAL. We've added back-pressure to the WAL in #4066 so memory doesn't grow unbounded.
For the larger issue of improving write throughput, track #4086. Closing this out to consolidate things there.