GreptimeTeam / greptimedb

An open-source, cloud-native, unified time series database for metrics, logs and events with SQL/PromQL supported. Available on GreptimeCloud.
https://greptime.com/
Apache License 2.0
4.19k stars 299 forks source link

Auto inference standalone/distributed mode from configuration #4399

Closed sunng87 closed 1 month ago

sunng87 commented 1 month ago

What type of enhancement is this?

Configuration

What does the enhancement do?

Currently we require user to configure mode to distributed or standalone on frontend (or datanode). Even if we have metasrv address configured for frontend, it still assumes itself as standalone when this mode set to standalone. However, no other feature is affected except the cluster_info meta table reports wrong role.

The suggested solution is to remove this mode configuration item and auto inference its mode based on metasrv configuration.

Implementation challenges

No response