# How to see shard group duration of a bucket

**URL:** <https://community.influxdata.com/t/how-to-see-shard-group-duration-of-a-bucket/28060>\
**Category:** InfluxDB 2\
**Created:** [January 9, 2023, 1:04pm UTC](https://community.influxdata.com/t/how-to-see-shard-group-duration-of-a-bucket/28060 "2023-01-09T13:04:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![s118](https://avatars.discourse-cdn.com/v4/letter/s/977dab/32.png) [@s118](https://community.influxdata.com/u/s118)\
**Post date:** [January 9, 2023, 1:04pm UTC](https://community.influxdata.com/t/how-to-see-shard-group-duration-of-a-bucket/28060/1 "2023-01-09T13:04:01Z")

</div>

Hi, I have a bucket where I store data that a sensor send every 10 seconds (influx 2.5). On the other hand, I have another bucket in which through a task, I save the reduced measures (I save the average of the measures of the first deposit every 30 minutes).  
I’ve given the second bucket an infinite retention policy, and the first bucket, which currently has infinite retention, I want to assign a one-month retention policy.  
To do this, I think you would need to know what is the shard group duration of the first bucket, and if necessary, change it. Where can I see this data, and how can it be changed?

---

<div class="post-metadata">

**Author:** ![Anaisdg](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/anaisdg/32/6401_2.png) [@Anaisdg](https://community.influxdata.com/u/Anaisdg)\
**Post date:** [January 9, 2023, 8:31pm UTC](https://community.influxdata.com/t/how-to-see-shard-group-duration-of-a-bucket/28060/2 "2023-01-09T20:31:34Z")

</div>

Hello @s118,  
The following documentation might be helpful to you:

> **[InfluxDB shards and shard groups | InfluxDB OSS 2.6 Documentation](https://docs.influxdata.com/influxdb/v2.4/reference/internals/shards/)**
>
> Learn the relationships between buckets, shards, and shard groups. InfluxDB organizes time series data into shards when storing data to disk. Shards are grouped into shard groups.

And to view retention policies you can see:

> **[Schema exploration using InfluxQL | InfluxDB OSS 1.7 Documentation](https://docs.influxdata.com/influxdb/v1.7/query_language/schema_exploration/)**
>
> InfluxQL is an SQL-like query language for interacting with data in InfluxDB. The following sections cover useful query syntax for exploring your schema.
> SHOW DATABASES SHOW RETENTION POLICIES SHOW SERIES SHOW MEASUREMENTS SHOW TAG KEYS SHOW TAG...

Does that help?  
Thank you.

---

<div class="post-metadata">

**Author:** ![s118](https://avatars.discourse-cdn.com/v4/letter/s/977dab/32.png) [@s118](https://community.influxdata.com/u/s118)\
**Post date:** [January 10, 2023, 9:03am UTC](https://community.influxdata.com/t/how-to-see-shard-group-duration-of-a-bucket/28060/4 "2023-01-10T09:03:25Z")

</div>

Just one thing. If I reduce the retention, does the shard group duration automatically decrease?  
For example, if I put a retention of 6 months, will the shard group duration become 1 day?
