Closed zyy17 closed 3 months ago
The changes involve modifications to the default configuration settings for datanodes, specifically reducing the default number of replicas from 3 to 1. Additionally, several port configurations have been removed from various YAML files, indicating a potential shift in service management. The control flow within the Reconcile functions in multiple controllers has been refined for better clarity and error handling.
Files | Change Summary |
---|---|
apis/v1alpha1/defaulting.go , apis/v1alpha1/testdata/.../expect.yaml |
Changed default replicas for datanode from 3 to 1. |
controllers/greptimedbcluster/controller.go , controllers/greptimedbstandalone/controller.go |
Repositioned SetDefaults() call and added error handling for cluster updates. |
tests/e2e/testdata/resources/cluster/basic/cluster.yaml , .../enable-flow/cluster.yaml , .../enable-remote-wal/cluster.yaml , .../scale/cluster.yaml |
Removed port configurations for HTTP, RPC, MySQL, and PostgreSQL. |
tests/e2e/testdata/resources/standalone/basic/standalone.yaml |
Removed port configurations for HTTP, RPC, MySQL, and PostgreSQL. |
sequenceDiagram
participant User
participant Controller
participant Cluster
User->>Controller: Create Cluster
Controller->>Cluster: SetDefaults()
Cluster-->>Controller: Defaults Set
Controller->>Cluster: Update Cluster
Cluster-->>Controller: Update Success
🐰 In the code where rabbits hop,
The datanodes now have less to crop.
With fewer ports, they swiftly play,
Simplifying paths along the way.
A tidy code, so neat and bright,
Hops through changes, a joyful sight! 🌟
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
What's changed
1
(the minimum cluster);Summary by CodeRabbit
New Features
Bug Fixes
Chores