Skip to content

Conversation

@wingwing2005
Copy link
Contributor

Description

Issue(s)

  • Close/close/Fix/fix/Resolve/resolve: Issue Link

Checklist

Please check the items in the checklist if applicable.

  • Is the user manual updated?
  • Are the test cases passed and automated?
  • Is there no significant decrease in test coverage?

@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello @wingwing2005, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

本次拉取请求旨在通过新增详细的部署架构文档和更新资源规划指南,提升TDengine IDMP的部署和运维指导的全面性与实用性。新的文档清晰地阐述了不同规模和可用性需求下的部署策略,并提供了具体的资源配置建议,帮助用户更好地规划和实施TDengine IDMP系统,确保其在各种生产环境下的稳定高效运行。

Highlights

  • 新增部署架构文档: 新增了关于TDengine IDMP部署架构的详细文档,涵盖了单实例、高可用最简和高可用最复杂三种部署形态,并提供了总体说明、具体介绍、组件说明、端口说明和部署建议。
  • 更新资源规划指南: 在现有规划文档中增加了基于测点规模的TDengine IDMP服务器及外部依赖资源配置建议,并提供了详细的规划指导,包括磁盘类型、网络带宽、多实例部署和外部依赖高可用等。
  • 新增HTTPS端口说明: 在端口说明中增加了6034端口,用于TDengine IDMP Web页面和REST API的HTTPS安全访问,并建议在生产环境启用。
  • 提供英文翻译: 同步更新了所有新增和修改内容的英文翻译文档,确保多语言用户都能获取最新的部署和规划信息。

🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console.

Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request adds comprehensive documentation on deployment architectures and resource requirements for TDengine IDMP, including both Chinese and English versions. The new documents are well-structured and provide valuable guidance for different deployment scenarios. My review includes several suggestions to improve the accuracy and clarity of the documentation, such as correcting typos in component names (e.g., 'Consul', 'Elasticsearch'), fixing an incomplete sentence in the English documentation, and updating an external link to point to the correct version of the TDengine documentation. These minor changes will help ensure the documentation is professional and easy to understand.

- Web Browser →(穿越 Firewall)→ **API Gateway****TDengine IDMP(多实例)**
- taosX agent →(穿越 Firewall)→ **TDengine TSDB(6055)**
- **TDengine IDMP → TDengine TSDB(6041)**
- IDMP 外部依赖(完整展示):**Redis、MySQL、Distributed File System、Elastic Logdash Search、Kafka/RabbitMQ、Consule/Apollo**
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

There are a couple of typos on this line:

  1. Elastic Logdash Search seems incorrect. Logdash is likely a typo for Logstash, but Elastic Logstash Search is not a standard component name. Given the component description on line 107 refers to search and indexing, you probably mean Elasticsearch.
  2. Consule is a typo for Consul.

Please correct these for accuracy.

Suggested change
- IDMP 外部依赖(完整展示):**Redis、MySQL、Distributed File System、Elastic Logdash Search、Kafka/RabbitMQ、Consule/Apollo**
- IDMP 外部依赖(完整展示):**Redis、MySQL、Distributed File System、Elasticsearch、Kafka/RabbitMQ、Consul/Apollo**

- **Redis**:缓存与短期状态(也常用于分布式锁、计数器等)。
- **MySQL**:关系型元数据(用户与权限、配置、任务定义、业务元信息等)。
- **Distributed File System**:文件/对象持久化(元数据、上传图元、导入导出文件、上传文件、设备文档等)。
- **Elastic Search**:集中索引管理和搜索。
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

Elastic Search is usually written as a single word: Elasticsearch. Please update for consistency.

Suggested change
- **Elastic Search**:集中索引管理和搜索。
- **Elasticsearch**:集中索引管理和搜索。

- **Distributed File System**:文件/对象持久化(元数据、上传图元、导入导出文件、上传文件、设备文档等)。
- **Elastic Search**:集中索引管理和搜索。
- **Kafka/RabbitMQ**:异步消息与事件总线(解耦、削峰、任务编排、通知)。
- **Consule/Apollo**:服务治理/配置中心(服务发现、动态配置、配置版本管理)。
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

There is a typo here. Consule should be Consul.

Suggested change
- **Consule/Apollo**:服务治理/配置中心(服务发现、动态配置、配置版本管理)。
- **Consul/Apollo**:服务治理/配置中心(服务发现、动态配置、配置版本管理)。

4. **外部依赖高可用**:生产环境建议 Redis/MySQL 配置主从或集群以保证高可用。
5. **预留扩展空间**:建议按预期峰值测点数的 1.5 倍规划资源,为业务增长预留空间。

> **说明**:以上配置为参考建议,实际资源需求还受采集频率、查询并发、数据保留周期等因素影响,请根据实际业务场景进行调整。关于 TDengine TSDB 的资源规划,请参考 [TDengine 容量规划](https://docs.taosdata.com/operation/planning/)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The link https://docs.taosdata.com/operation/planning/ points to the documentation for TDengine 2.x. However, this document mentions a dependency on TDengine TSDB-Enterprise: 3.3.7.0 or later. To ensure consistency and provide the correct information, please update the link to point to the capacity planning documentation for TDengine 3.x, such as https://docs.tdengine.com/cn/v3.0/reference/planning for the Chinese version.

Suggested change
> **说明**:以上配置为参考建议,实际资源需求还受采集频率、查询并发、数据保留周期等因素影响,请根据实际业务场景进行调整。关于 TDengine TSDB 的资源规划,请参考 [TDengine 容量规划](https://docs.taosdata.com/operation/planning/)
> **说明**:以上配置为参考建议,实际资源需求还受采集频率、查询并发、数据保留周期等因素影响,请根据实际业务场景进行调整。关于 TDengine TSDB 的资源规划,请参考 [TDengine 容量规划](https://docs.tdengine.com/cn/v3.0/reference/planning/)

- Web Browser → (Through Firewall) → **API Gateway****TDengine IDMP (Multi-instance)**
- taosX agent → (Through Firewall) → **TDengine TSDB (6055)**
- **TDengine IDMP → TDengine TSDB (6041)**
- IDMP External Dependencies (Full): **Redis, MySQL, Distributed File System, Elastic Logstash Search, Kafka/RabbitMQ, Consul/Apollo**, etc.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The term Elastic Logstash Search is a bit confusing. Logstash is typically used for data processing pipelines, while Elasticsearch is for search and analytics. It seems you mean Elasticsearch here, as also indicated by the description on line 107. Suggest changing to Elasticsearch for clarity.

Suggested change
- IDMP External Dependencies (Full): **Redis, MySQL, Distributed File System, Elastic Logstash Search, Kafka/RabbitMQ, Consul/Apollo**, etc.
- IDMP External Dependencies (Full): **Redis, MySQL, Distributed File System, Elasticsearch, Kafka/RabbitMQ, Consul/Apollo**, etc.

- **Redis**: Cache and short-term state (also commonly used for distributed locks, counters, etc.).
- **MySQL**: Relational metadata (users and permissions, configurations, task definitions, business meta-information, etc.).
- **Distributed File System**: File/object persistence (metadata, uploaded graphics, import/export files, uploaded documents, equipment documents, etc.).
- **Elastic Search**: Centralized index management and search.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

Elastic Search is conventionally written as a single word, Elasticsearch. It would be best to correct this for consistency.

Suggested change
- **Elastic Search**: Centralized index management and search.
- **Elasticsearch**: Centralized index management and search.

Redis/MySQL/DFS should be configured with backups and high availability; once MQ/Configuration Center/Search are enabled, they should be included in monitoring, alerting, and capacity planning.

5. **Unified Observability**
It is recommended to collect logs and metrics uniformly for the gateway, IDMP, TSDB, and key dependencies, and establish alerting and tracing
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

This sentence appears to be incomplete. It ends abruptly with ...and establish alerting and tracing. Please complete the sentence to make it clear. For example: ...and establish alerting and tracing links to avoid difficulties in troubleshooting.

Suggested change
It is recommended to collect logs and metrics uniformly for the gateway, IDMP, TSDB, and key dependencies, and establish alerting and tracing
It is recommended to collect logs and metrics uniformly for the gateway, IDMP, TSDB, and key dependencies, and establish alerting and tracing links to avoid difficulties in troubleshooting.

4. **High Availability for External Dependencies**: It is recommended to configure Redis/MySQL in master-slave or cluster mode in production environments to ensure high availability.
5. **Reserve Expansion Space**: It is recommended to plan resources at 1.5 times the expected peak data points to allow for business growth.

> **Note**: The above configurations are reference suggestions. Actual resource requirements are also affected by factors such as collection frequency, query concurrency, and data retention periods. Please adjust according to actual business scenarios. For TDengine TSDB's resource planning, please refer to [TDengine System Requirements](https://docs.tdengine.com/operations-and-maintenance/system-requirements/)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

There's a typo here. A Chinese period is used at the end of the sentence. It should be an English period ..

Suggested change
> **Note**: The above configurations are reference suggestions. Actual resource requirements are also affected by factors such as collection frequency, query concurrency, and data retention periods. Please adjust according to actual business scenarios. For TDengine TSDB's resource planning, please refer to [TDengine System Requirements](https://docs.tdengine.com/operations-and-maintenance/system-requirements/)
> **Note**: The above configurations are reference suggestions. Actual resource requirements are also affected by factors such as collection frequency, query concurrency, and data retention periods. Please adjust according to actual business scenarios. For TDengine TSDB's resource planning, please refer to [TDengine System Requirements](https://docs.tdengine.com/operations-and-maintenance/system-requirements/).

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request adds comprehensive deployment architecture documentation and resource requirement guidelines for TDengine IDMP. The changes introduce three deployment patterns (single instance, simplified HA, and complex HA) along with detailed resource planning recommendations based on data point scale.

Key changes:

  • New deployment architecture documentation covering three deployment patterns
  • Resource planning tables with CPU, memory, disk, and instance recommendations for different scales
  • Addition of HTTPS port (6034) documentation
  • Deployment diagrams (PNG files) illustrating the three architecture patterns

Reviewed changes

Copilot reviewed 4 out of 10 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
i18n/en/docusaurus-plugin-content-docs/current/07-operation/00-deploy/00-deploy.md New English deployment architecture documentation with component descriptions, port information, and deployment recommendations
i18n/en/docusaurus-plugin-content-docs/current/07-operation/00-deploy/images/single_deploy.png Binary image file for single instance deployment diagram
i18n/en/docusaurus-plugin-content-docs/current/07-operation/01-planning.md Updated English planning documentation with resource requirement tables and recommendations
docs/07-operation/00-deploy/00-deploy.md New Chinese deployment architecture documentation (mirrors English version)
docs/07-operation/01-planning.md Updated Chinese planning documentation with resource requirement tables and recommendations, plus new HTTPS port documentation

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +137 to +138
5. **统一观测**
建议对网关、IDMP、TSDB 与关键依赖统一采集日志与指标,建立告警与追踪链路,避免故障定位困难。
Copy link

Copilot AI Jan 2, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Inconsistent punctuation: The Chinese text ends with a period after "避免故障定位困难。" (line 138), but the English equivalent at line 138 in the English file appears incomplete and lacks proper punctuation. Consider completing the sentence or adding a period for consistency.

Copilot uses AI. Check for mistakes.
Redis/MySQL/DFS should be configured with backups and high availability; once MQ/Configuration Center/Search are enabled, they should be included in monitoring, alerting, and capacity planning.

5. **Unified Observability**
It is recommended to collect logs and metrics uniformly for the gateway, IDMP, TSDB, and key dependencies, and establish alerting and tracing
Copy link

Copilot AI Jan 2, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Incomplete sentence: The sentence "It is recommended to collect logs and metrics uniformly for the gateway, IDMP, TSDB, and key dependencies, and establish alerting and tracing" appears to be cut off. The sentence should be completed with proper punctuation or additional content.

Suggested change
It is recommended to collect logs and metrics uniformly for the gateway, IDMP, TSDB, and key dependencies, and establish alerting and tracing
It is recommended to collect logs and metrics uniformly for the gateway, IDMP, TSDB, and key dependencies, and establish alerting and tracing.

Copilot uses AI. Check for mistakes.
- Web Browser →(穿越 Firewall)→ **API Gateway****TDengine IDMP(多实例)**
- taosX agent →(穿越 Firewall)→ **TDengine TSDB(6055)**
- **TDengine IDMP → TDengine TSDB(6041)**
- IDMP 外部依赖(完整展示):**Redis、MySQL、Distributed File System、Elastic Logdash Search、Kafka/RabbitMQ、Consule/Apollo**
Copy link

Copilot AI Jan 2, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Spelling error: "Logstash" is misspelled as "Logdash". The correct spelling should be "Logstash" when referring to the Elastic Stack component.

Suggested change
- IDMP 外部依赖(完整展示):**Redis、MySQL、Distributed File System、Elastic Logdash Search、Kafka/RabbitMQ、Consule/Apollo**
- IDMP 外部依赖(完整展示):**Redis、MySQL、Distributed File System、Elastic Logstash Search、Kafka/RabbitMQ、Consule/Apollo**

Copilot uses AI. Check for mistakes.
- **Distributed File System**:文件/对象持久化(元数据、上传图元、导入导出文件、上传文件、设备文档等)。
- **Elastic Search**:集中索引管理和搜索。
- **Kafka/RabbitMQ**:异步消息与事件总线(解耦、削峰、任务编排、通知)。
- **Consule/Apollo**:服务治理/配置中心(服务发现、动态配置、配置版本管理)。
Copy link

Copilot AI Jan 2, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Spelling error: "Consul" is misspelled as "Consule". The correct spelling should be "Consul" when referring to HashiCorp Consul.

Suggested change
- **Consule/Apollo**:服务治理/配置中心(服务发现、动态配置、配置版本管理)。
- **Consul/Apollo**:服务治理/配置中心(服务发现、动态配置、配置版本管理)。

Copilot uses AI. Check for mistakes.
| 1 万 ~ 10 万 | 8 核 | 16 GB | 100 GB | 中小型生产环境 |
| 10 万 ~ 50 万 | 16 核 | 32 GB | 200 GB | 中型生产环境 |
| 50 万 ~ 100 万 | 32 核 | 64 GB | 500 GB | 大型生产环境 |
| 100 万以上 | 64 核+ | 128 GB+ | 1 TB+ | 超大规模生产环境 |
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [AutoCorrect Lint] <AutoCorrect> reported by reviewdog 🐶

Suggested change
| 100 万以上 | 64 核+ | 128 GB+ | 1 TB+ | 超大规模生产环境 |
| 100 万以上 | 64 核 + | 128 GB+ | 1 TB+ | 超大规模生产环境 |

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants