JHLeeeMe / JHLeeeMe.github.io-comments

utterances를 이용한 blog 댓글 앱 저장소
https://JHLeeeMe.github.io
0 stars 0 forks source link

influxdb-retention-policy/ #4

Closed utterances-bot closed 3 years ago

utterances-bot commented 4 years ago

[InfluxDB] Retention Policy란? & 설정 방법 | 내가 다시 보려고 만든 블로그

influxDb의 retention policy는 무엇이고, 설정 방법은 어떻게 되는지 알아보자.

https://jhleeeme.github.io/influxdb-retention-policy/

JHLeeeMe commented 4 years ago

test

JHLeeeMe commented 3 years ago

test

test2

JHLeeeMe commented 3 years ago

ok

jeedy commented 3 years ago

안녕하세요 좋은 글 감사합니다.

글을 보던 중에 duration shardGroupDuration

위 두 값의 차이점이 무엇인지 잘 이해가 안되더라구요 duration 2h를 주고 shardGroupDuration 1h를 주면 2시간 이전 데이터는 검색이 안되는 건가요?

JHLeeeMe commented 3 years ago

안녕하세요 좋은 글 감사합니다.

글을 보던 중에 duration shardGroupDuration

위 두 값의 차이점이 무엇인지 잘 이해가 안되더라구요 duration 2h를 주고 shardGroupDuration 1h를 주면 2시간 이전 데이터는 검색이 안되는 건가요?

influxDB는 데이터를 적재할 때 shardGroupDuration에 따라 여러 shard로 나뉘어서 적재한다고 보시면 됩니다. 예를들면 shardGroupDuration이 5분이고, duration이 20분 이라면 shard1 (5분간의 데이터), shard2, ..., shard4 이렇게 저장되다가 20분 이후로는, shard1쪽 데이터부터 삭제된다고 이해하시면 될 것 같습니다. 그러니깐 결론적으로다가 shardGroupDuration은 하나의 shard가 가지고있는 데이터의 시간범위(?)

제가 이해한 건 이렇지만 틀릴 수 있습니다. doc 여기를 참고해주세요.