{"action":"created","issue":{"url":"https://api.github.com/repos/influxdb/influxdb/issues/4492","labels_url":"https://api.github.com/repos/influxdb/influxdb/issues/4492/labels{/name}","comments_url":"https://api.github.com/repos/influxdb/influxdb/issues/4492/comments","events_url":"https://api.github.com/repos/influxdb/influxdb/issues/4492/events","html_url":"https://github.com/influxdb/influxdb/issues/4492","id":112067465,"number":4492,"title":"Writing with InfluxDB API got HTTP 500","user":{"login":"zxsimple","id":10580990,"avatar_url":"https://avatars.githubusercontent.com/u/10580990?v=3","gravatar_id":"","url":"https://api.github.com/users/zxsimple","html_url":"https://github.com/zxsimple","followers_url":"https://api.github.com/users/zxsimple/followers","following_url":"https://api.github.com/users/zxsimple/following{/other_user}","gists_url":"https://api.github.com/users/zxsimple/gists{/gist_id}","starred_url":"https://api.github.com/users/zxsimple/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zxsimple/subscriptions","organizations_url":"https://api.github.com/users/zxsimple/orgs","repos_url":"https://api.github.com/users/zxsimple/repos","events_url":"https://api.github.com/users/zxsimple/events{/privacy}","received_events_url":"https://api.github.com/users/zxsimple/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-10-19T03:58:01Z","updated_at":"2015-10-21T09:17:23Z","closed_at":null,"body":"I'm writing metrics with HTTP API, however got 500 status occasionally as follow:\r\n\r\n```\r\n[http] 2015/10/19 11:49:34 192.168.30.29 - root [19/Oct/2015:11:49:29 +0800] POST /write?u=root&p=root&db=bird&rp=default&precision=n&consistency=all HTTP/1.1 500 32 - okhttp/2.4.0 668b4df7-7614-11e5-ae45-000000000000 5.111829163s\r\n[http] 2015/10/19 11:49:34 192.168.30.28 - root [19/Oct/2015:11:49:29 +0800] POST /write?u=root&p=root&db=bird&rp=default&precision=n&consistency=all HTTP/1.1 500 32 - okhttp/2.4.0 669777f0-7614-11e5-ae46-000000000000 5.140964539s\r\n```\r\nI see the writing timeout configured is 5s:\r\n```\r\n[cluster]\r\n  shard-writer-timeout = \"5s\" # The time within which a shard must respond to write.\r\n  write-timeout = \"5s\" # The time within which a write operation must complete on the cluster.\r\n```\r\nI am not wrting much data simutaenously, perhaps less than 10 records per second, also I see the data file reaches 60GB, however I've already deleted old data.\r\n\r\nAny tips on tunning writing performance of InfluxDB? I don't think simply increase the writing timeout is a good idea.\r\n```\r\n-rw-r--r-- 1 influxdb influxdb 512M Oct 19 11:55 10\r\n-rw-r--r-- 1 influxdb influxdb 512M Oct 19 11:54 11\r\n-rw-r--r-- 1 influxdb influxdb 512M Oct 19 11:54 12\r\n-rw-r--r-- 1 influxdb influxdb 512M Oct 19 11:54 13\r\n-rw-r--r-- 1 influxdb influxdb 512M Oct 19 11:54 14\r\n-rw-r--r-- 1 influxdb influxdb 512M Oct 19 11:55 15\r\n-rw-r--r-- 1 influxdb influxdb 1.0G Oct 19 11:55 16\r\n-rw-r--r-- 1 influxdb influxdb 512M Oct 19 11:55 17\r\n-rw-r--r-- 1 influxdb influxdb 512M Oct 19 11:55 18\r\n-rw-r--r-- 1 influxdb influxdb 512M Oct 19 11:55 19\r\n-rw-r--r-- 1 influxdb influxdb  32M Oct 19 11:54 5\r\n-rw-r--r-- 1 influxdb influxdb 128K Oct 19 11:54 6\r\n-rw-r--r-- 1 influxdb influxdb 512M Oct 19 11:54 7\r\n-rw-r--r-- 1 influxdb influxdb  57G Oct 19 11:45 8\r\n-rw-r--r-- 1 influxdb influxdb 1.0G Oct 19 11:55 9\r\n```"},"comment":{"url":"https://api.github.com/repos/influxdb/influxdb/issues/comments/149831016","html_url":"https://github.com/influxdb/influxdb/issues/4492#issuecomment-149831016","issue_url":"https://api.github.com/repos/influxdb/influxdb/issues/4492","id":149831016,"user":{"login":"zxsimple","id":10580990,"avatar_url":"https://avatars.githubusercontent.com/u/10580990?v=3","gravatar_id":"","url":"https://api.github.com/users/zxsimple","html_url":"https://github.com/zxsimple","followers_url":"https://api.github.com/users/zxsimple/followers","following_url":"https://api.github.com/users/zxsimple/following{/other_user}","gists_url":"https://api.github.com/users/zxsimple/gists{/gist_id}","starred_url":"https://api.github.com/users/zxsimple/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zxsimple/subscriptions","organizations_url":"https://api.github.com/users/zxsimple/orgs","repos_url":"https://api.github.com/users/zxsimple/repos","events_url":"https://api.github.com/users/zxsimple/events{/privacy}","received_events_url":"https://api.github.com/users/zxsimple/received_events","type":"User","site_admin":false},"created_at":"2015-10-21T09:17:23Z","updated_at":"2015-10-21T09:17:23Z","body":"Thanks @otoolep and @beckettsean , I've already upgrated it to date. Till now everything looks good, I'll keep on looking at it further."}}