Create a database
InfluxDB Clustered is currently only available to a limited group of InfluxData customers. If interested in being part of the limited access group, please contact the InfluxData Sales team.
influxctl database create command
to create a database in your InfluxDB cluster.
If you haven’t already, download and install the
influxctl database createcommand and provide the following:
influxctl database create \ --retention-period30d\ --max-tables500\ --max-columns 250 \DATABASE_NAME
- Retention period syntax
- Database naming restrictions
- InfluxQL DBRP naming convention
- Table and column limits
Retention period syntax
--retention-period flag to define a specific
for the database.
The retention period value is a time duration value made up of a numeric value
plus a duration unit. For example,
30d means 30 days.
A zero duration retention period is infinite and data will not expire.
The retention period value cannot be negative or contain whitespace.
Valid durations units include
- m: minute
- h: hour
- d: day
- w: week
- mo: month
- y: year
Example retention period values
3d: 3 days
6w: 6 weeks
1mo: 1 month (30 days)
1y: 1 year
30d30d: 60 days
2.5d: 60 hours
Database naming restrictions
Database names must adhere to the following naming restrictions:
- Must contain two or more characters
- Cannot start with an underscore (
- Cannot contain whitespace characters, double quotes (
"), or percent signs (
InfluxQL DBRP naming convention
In InfluxDB 1.x, data is stored in databases and retention policies. In InfluxDB Clustered, databases and retention policies have been merged into databases, where databases have a retention period, but retention policies are no longer part of the data model. Because InfluxQL uses the 1.x data model, a database must be mapped to a v1 database and retention policy (DBRP) to be queryable with InfluxQL.
When naming a database that you want to query with InfluxQL, use the following naming convention to automatically map v1 DBRP combinations to a database:
Database naming examples
|v1 Database name||v1 Retention Policy name||New database name|
Table and column limits
In InfluxDB Clustered, table (measurement) and column limits can be
configured using the
Each measurement is represented by a table.
Time, fields, and tags are each represented by a column.
Default maximum number of tables: 500
Default maximum number of columns: 250
Setting table and column limits above the default limits may adversely affect database performance.
Was this page helpful?
Thank you for your feedback!
Support and feedback
Thank you for being part of our community! We welcome and encourage your feedback and bug reports for InfluxDB and this documentation. To find support, use the following resources:
Customers with an annual or support contract can contact InfluxData Support.