I can't use the retentionPolicy
kernight opened this issue · 0 comments
kernight commented
i created a database and created six retentionPolicy on this database.
but,when i worte the data into it.Only the default policy can success. Other request return 204,but nothing in the database.
i tried to edit the config file,but it see normal.
The default policy is POLICY_ONE_MONTH
so i send this request
curl -i -XPOST 'http://localhost:8086/write?db=haiwaiuni-stat&precision=u&rp=POLICY_ONE_WEEK' --data-binary 'cpu_load_short,host=server01,region=us-west value=0.63 1515414280000001'
the result is
HTTP/1.1 204 No Content
Content-Type: application/json
Request-Id: 4c01452a-f473-11e7-8020-000000000000
X-Influxdb-Build: OSS
X-Influxdb-Version: 1.4.2
X-Request-Id: 4c01452a-f473-11e7-8020-000000000000
Date: Mon, 08 Jan 2018 12:56:09 GMT
and i change it to:
curl -i -XPOST 'http://localhost:8086/write?db=haiwaiuni-stat&precision=u&rp=POLICY_ONE_MONTH' --data-binary 'cpu_load_short,host=server01,region=us-west value=0.63 1515414280000001'
the result is
HTTP/1.1 204 No Content
Content-Type: application/json
Request-Id: b53571f3-f473-11e7-8025-000000000000
X-Influxdb-Build: OSS
X-Influxdb-Version: 1.4.2
X-Request-Id: b53571f3-f473-11e7-8025-000000000000
Date: Mon, 08 Jan 2018 12:59:05 GMT
i dont't know how it works.
Anyone can help me?