Skip to content

docs: update configuration reference with new options and formatting - #2636

Merged
WenyXu merged 5 commits into
mainfrom
codex/update-outdated-greptime-documentation
Jul 23, 2026
Merged

docs: update configuration reference with new options and formatting#2636
WenyXu merged 5 commits into
mainfrom
codex/update-outdated-greptime-documentation

Conversation

@WenyXu

@WenyXu WenyXu commented Jul 20, 2026

Copy link
Copy Markdown
Member

Motivation

  • Bring the configuration.md documentation (English and Chinese) up to date with newly added server and protocol options and to standardize default value formatting.
  • Document new components and protocols (e.g. flownode, jaeger, otlp) and surface new metadata/backend options required for recent runtime and kv-backend improvements.
  • Clarify defaults and examples (e.g. data_home, Prometheus batching, selector semantics) to reduce operator confusion.

Description

  • Added and documented new HTTP/gRPC/MySQL/Postgres options such as enable_cors, cors_allowed_origins, prom_validation_mode, grpc.tls, mysql.keep_alive, postgres.keep_alive, prepared_stmt_cache_size, and experimental_* flags, and OpenTelemetry/Jaeger options (jaeger, otlp, trace_ingest_chunk_size).
  • Extended Metasrv docs with backend TLS ([backend_tls]), meta_schema_name, auto_create_schema, max_recv_message_size/max_send_message_size, HTTP server defaults, max_metadata_value_size, and adjusted enable_region_failover/selector explanations to match current behavior.
  • Added data_home to storage examples, updated various default representations to a normalized format (removed extra quotes and unified code formatting) and changed several table default values and descriptions (including pending_rows_flush_interval, max_background_*, scan_memory_limit, and WAL/selector defaults) for clarity.
  • Updated the Chinese translation file to reflect all the same changes and kept configuration examples and descriptive tables in sync across locales.

Testing

  • No automated code tests were modified; these are documentation-only changes so no unit tests were run as part of this PR.
  • Local documentation verification was performed by eyeballing the diff to ensure examples and tables are consistent between English and Chinese files.

Codex Task

@WenyXu
WenyXu requested a review from fengjiachun as a code owner July 20, 2026 03:11
Copilot AI review requested due to automatic review settings July 20, 2026 03:11
@WenyXu
WenyXu requested a review from killme2008 as a code owner July 20, 2026 03:11
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jul 20, 2026

Copy link
Copy Markdown

Deploying greptime-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: 434e5ef
Status: ✅  Deploy successful!
Preview URL: https://335165b5.greptime-docs.pages.dev
Branch Preview URL: https://codex-update-outdated-grepti.greptime-docs.pages.dev

View logs

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@WenyXu

WenyXu commented Jul 20, 2026

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

| `meta_table_name` | String | `greptime_metakv` | 使用 RDS 存储元数据时的表名。**仅在 backend 为 postgre_store 和 mysql_store 时有效。** |
| `meta_schema_name` | String | -- | 可选的 PostgreSQL schema,用于元数据表和选举表名称限定。当 PostgreSQL public schema 不可写入时(例如 PostgreSQL 15+ 限制 public schema),可设置此参数为可写入的 schema。GreptimeDB 将使用 `meta_schema_name.meta_table_name`。<br/>**仅在 backend 为 postgres_store 时有效。** |
| `auto_create_schema` | Bool | `true` | 如果 PostgreSQL schema 不存在则自动创建。启用后,系统会在创建元数据表之前执行 `CREATE SCHEMA IF NOT EXISTS <schema_name>`。这在生产环境中可能受限于手动创建 schema 的情况下非常有用。注意:PostgreSQL 用户必须具有 CREATE SCHEMA 权限才能使此功能生效。<br/>**仅在 backend 为 postgres_store 时有效。** |
| `meta_election_lock_id` | Integer | `1` | 用于领导选举的 PostgreSQL 咨询锁 id。**仅在 backend 为 postgre_store 时有效。** |

P3 Badge Use the valid postgres_store backend name

These new Chinese table descriptions spell the backend as postgre_store, but the supported value listed just above is postgres_store. Readers copying the condition/value while configuring PostgreSQL metadata storage would use an unrecognized backend name, so both new mentions should be corrected to postgres_store.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread docs/user-guide/deployments-administration/configuration.md Outdated
Comment thread docs/user-guide/deployments-administration/configuration.md
Comment thread docs/user-guide/deployments-administration/configuration.md
@WenyXu

WenyXu commented Jul 21, 2026

Copy link
Copy Markdown
Member Author

@codex address feedbacks

@chatgpt-codex-connector

Copy link
Copy Markdown

Summary

Testing

  • git diff --check -- docs/user-guide/deployments-administration/configuration.md i18n/zh/docusaurus-plugin-content-docs/current/user-guide/deployments-administration/configuration.md
  • rg -n "developer-guide/metasrv/selector|postgre_store" docs/user-guide/deployments-administration/configuration.md i18n/zh/docusaurus-plugin-content-docs/current/user-guide/deployments-administration/configuration.md || true

Note: I left the existing unrelated working-tree files untouched: yarn.lock, .pnp.cjs, .pnp.loader.mjs, and .yarn/.

View task →

@WenyXu

WenyXu commented Jul 21, 2026

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

| `meta_schema_name` | String | -- | Optional PostgreSQL schema for metadata table and election table name qualification. When PostgreSQL public schema is not writable (e.g., PostgreSQL 15+ with restricted public), set this to a writable schema. GreptimeDB will use `meta_schema_name.meta_table_name`.<br/>**Only used when backend is `postgres_store`.** |

P2 Badge Don't hide the default PostgreSQL schema

The sample above now sets meta_schema_name = "greptime_schema" together with auto_create_schema = true, and the generated GreptimeDB config reference also reports greptime_schema as the default, so listing the default as -- is misleading. In PostgreSQL-backed metasrv deployments where the service account lacks permission to create/use that schema, operators following this table may not grant or pre-create greptime_schema and can hit startup failures even without setting the option. Please document the actual default.


| `meta_table_name` | String | `greptime_metakv` | Table name in RDS to store metadata. Effect when using a RDS kvbackend.<br/>**Only used when backend is `postgres_store` or `mysql_store`.** |

P2 Badge Don't claim MySQL uses meta_table_name

The generated config reference says meta_table_name is only used for postgres_store; the MySQL metadata backend takes its database information from the DSN and does not honor this option. By adding mysql_store here, MySQL-backed metasrv users may set the value expecting the metadata table name to change, but it will be ignored. Please restrict this note to PostgreSQL unless the MySQL backend actually supports the setting.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread docs/user-guide/deployments-administration/configuration.md Outdated
Comment thread docs/user-guide/deployments-administration/configuration.md Outdated
Comment thread docs/user-guide/deployments-administration/configuration.md
Comment thread docs/user-guide/deployments-administration/configuration.md
Comment thread docs/user-guide/deployments-administration/configuration.md Outdated
@WenyXu

WenyXu commented Jul 21, 2026

Copy link
Copy Markdown
Member Author

@codex address feedbacks

@chatgpt-codex-connector

Copy link
Copy Markdown

Summary

Testing

  • git diff --check -- docs/user-guide/deployments-administration/configuration.md i18n/zh/docusaurus-plugin-content-docs/current/user-guide/deployments-administration/configuration.md
  • rg -n 'postgre_store|Only used when backend is \postgres_store` or `mysql_store`|`postgres_store` 或 `mysql_store`|Using Remote WAL
    - Using shared storage|使用 Remote WAL
    - 使用共享存储|developer-guide/metasrv/selector' docs/user-guide/deployments-administration/configuration.md i18n/zh/docusaurus-plugin-content-docs/current/user-guide/deployments-administration/configuration.md || true`

Note: I left the existing unrelated working-tree files untouched: yarn.lock, .pnp.cjs, .pnp.loader.mjs, and .yarn/.

View task →

Comment thread docs/user-guide/deployments-administration/configuration.md Outdated
Comment thread docs/user-guide/deployments-administration/configuration.md Outdated
@WenyXu

WenyXu commented Jul 23, 2026

Copy link
Copy Markdown
Member Author

@codex address feedbacks both zh & en version

@chatgpt-codex-connector

Copy link
Copy Markdown

Summary

Testing

  • git diff --check -- docs/user-guide/deployments-administration/configuration.md i18n/zh/docusaurus-plugin-content-docs/current/user-guide/deployments-administration/configuration.md
  • rg -n 'experimental_enable|\[selector documentation\]|\[selector 文档\]' docs/user-guide/deployments-administration/configuration.md i18n/zh/docusaurus-plugin-content-docs/current/user-guide/deployments-administration/configuration.md || true

View task →

@WenyXu

WenyXu commented Jul 23, 2026

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: e90be0dce8

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread docs/user-guide/deployments-administration/configuration.md Outdated
Comment thread docs/user-guide/deployments-administration/configuration.md Outdated
Comment thread docs/user-guide/deployments-administration/configuration.md
Comment thread docs/user-guide/deployments-administration/configuration.md
Comment thread docs/user-guide/deployments-administration/configuration.md Outdated
@WenyXu

WenyXu commented Jul 23, 2026

Copy link
Copy Markdown
Member Author

@codex address feedbacks both zh & en version

@chatgpt-codex-connector

Copy link
Copy Markdown

Summary

Testing

  • git diff --check -- docs/user-guide/deployments-administration/configuration.md i18n/zh/docusaurus-plugin-content-docs/current/user-guide/deployments-administration/configuration.md
  • rg -n 'trace_ingest_chunk_size = 128|experimental_enable_prometheus_native_histogram|experimental_enable_explain_analyze_stream|verify_ca|verify_full|meta_schema_name?\s*| String\s*| greptime_schema|overrides store_addrs|覆盖 store_addrs' docs/user-guide/deployments-administration/configuration.md i18n/zh/docusaurus-plugin-content-docs/current/user-guide/deployments-administration/configuration.md`

View task →

@fengjiachun fengjiachun left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@WenyXu
WenyXu merged commit 640119a into main Jul 23, 2026
5 checks passed
@WenyXu
WenyXu deleted the codex/update-outdated-greptime-documentation branch July 23, 2026 07:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants