Skip to content

GitLab Next

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • influxdb-management influxdb-management
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 2
    • Issues 2
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Code review
    • Insights
    • Issue
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar

GitLab 15.0 has launched! Please visit Breaking changes in 15.0 and 15.0 Removals to see which breaking changes may impact your workflow.

  • GitLab.org
  • influxdb-managementinfluxdb-management
  • Issues
  • #3
Closed
Open
Created Nov 18, 2016 by Bruno Melli@mjskier

Setting a retention of 1h without altering the shard duration generates an exception

The following code in the Rakefile

unless default['duration'] == '1h' CLIENT.alter_retention_policy(default['name'], db, '1h', 1, true) end Causes an exception

bundle exec rake rake aborted! InfluxDB::QueryError: retention policy duration must be greater than the shard duration

Apparently, changing the duration doesn't adjust the shardGroupDuration. And on my influx installation, the auto generated policy on the gitlab database had a shardGroupDuration of 168h0m0s

My workaround was to create a default policy, which allowed rake to finish.

CREATE RETENTION POLICY one_hour ON gitlab DURATION 1h REPLICATION 1 DEFAULT

I suggest either fixing the Rakefile to set the shardGroupDuratin, or to add that 1hr policy creation command in gitlab.com/help/administration/monitoring/performance/influxdb_configuration.md

Assignee
Assign to
Time tracking