Dear IoTDB Community,
IoTDB 1.3 now supports configuring the maximum number of SchemaRegionGroups and
DataRegionGroups when creating or altering a database.
The following database properties are now supported:
MAX_SCHEMA_REGION_GROUP_NUM
MAX_DATA_REGION_GROUP_NUM
For example:
CREATE DATABASE root.example
WITH MAX_SCHEMA_REGION_GROUP_NUM=4,
MAX_DATA_REGION_GROUP_NUM=8;
ALTER DATABASE root.example
WITH MAX_SCHEMA_REGION_GROUP_NUM=6,
MAX_DATA_REGION_GROUP_NUM=12;
Please note:
A maximum value can be specified manually only when the corresponding
schema_region_group_extension_policy or data_region_group_extension_policy is
set to CUSTOM.
The schema and data policies are handled independently, so mixed AUTO and
CUSTOM configurations are supported.
When altering a database, the maximum value can only be increased. It cannot be
lower than the current maximum or the number of RegionGroups already allocated.
If a property is omitted during database creation, IoTDB uses the corresponding
default or automatically calculated value.
The former SCHEMA_REGION_GROUP_NUM and DATA_REGION_GROUP_NUM properties have
been replaced by the more explicit MAX_SCHEMA_REGION_GROUP_NUM and
MAX_DATA_REGION_GROUP_NUM.
This feature has been merged into the dev/1.3 branch.
Feedback and suggestions are welcome.
Best regards,
Bo Li
各位 IoTDB 社区成员,大家好:
IoTDB 1.3 现已支持在创建或修改数据库时,配置该数据库的 SchemaRegionGroup 和 DataRegionGroup 数量上限。
本次新增支持以下数据库属性:
MAX_SCHEMA_REGION_GROUP_NUM
MAX_DATA_REGION_GROUP_NUM
使用示例如下:
CREATE DATABASE root.example
WITH MAX_SCHEMA_REGION_GROUP_NUM=4,
MAX_DATA_REGION_GROUP_NUM=8;
ALTER DATABASE root.example
WITH MAX_SCHEMA_REGION_GROUP_NUM=6,
MAX_DATA_REGION_GROUP_NUM=12;
需要注意:
仅当对应的 schema_region_group_extension_policy 或 data_region_group_extension_policy
设置为 CUSTOM 时,才能手动指定最大值。
SchemaRegionGroup 和 DataRegionGroup 的扩展策略相互独立,因此支持一项使用 AUTO、另一项使用 CUSTOM 的混合配置。
通过 ALTER DATABASE 修改时,最大值只能增加,不能低于当前最大值或已经分配的 RegionGroup 数量。
创建数据库时,如果未指定其中某项,IoTDB 将使用对应的默认值或自动计算结果。
原有的 SCHEMA_REGION_GROUP_NUM 和 DATA_REGION_GROUP_NUM 已替换为语义更明确的
MAX_SCHEMA_REGION_GROUP_NUM 和 MAX_DATA_REGION_GROUP_NUM。
该功能已经合并到 dev/1.3 分支
欢迎大家试用并提出意见和建议。