sd4324530 commented on issue #2270:
URL: https://github.com/apache/fluss/issues/2270#issuecomment-3702378101

   > Since `sys.set_cluster_config` hasn’t been released yet, we still have the 
opportunity to refine its design.
   > 
   > I propose introducing a **dedicated `sys.reset_cluster_configs`** 
procedure specifically for resetting cluster configuration(s)—mirroring the 
pattern used in SQL with `ALTER TABLE ... RESET`, which clearly signals intent 
and avoids overloading `SET` with reset semantics.
   > 
   > Additionally, to better reflect that these procedures support **multiple 
keys**, we should rename all related procedures from the singular 
`xx_cluster_config` to the plural form **`xx_cluster_configs`** (e.g., 
`set_cluster_configs`, `reset_cluster_configs`). This aligns with common 
conventions and improves API clarity.
   > 
   > This change would make the system more consistent, intuitive, and 
forward-compatible.
   > 
   > -- Get all cluster configurations
   > CALL sys.get_cluster_configs();
   > 
   > -- Get a specific configuration 
   > CALL sys.get_cluster_configs(
   >  'kv.rocksdb.shared-rate-limiter.bytes-per-sec'
   > );
   > 
   > -- Get multiple configurations
   > CALL sys.get_cluster_configs(
   >  'kv.rocksdb.shared-rate-limiter.bytes-per-sec',
   >  'datalake.format'
   > );
   > 
   > -- Set RocksDB rate limiter to 200MB
   > CALL sys.set_cluster_config(
   >   'kv.rocksdb.shared-rate-limiter.bytes-per-sec',
   >   '200MB'
   > );
   > 
   > -- Set multiple configurations at one time
   > CALL sys.set_cluster_configs(
   >   'kv.rocksdb.shared-rate-limiter.bytes-per-sec', '200MB',
   >   'kv.snapshot.interval', '3min'
   > );
   > 
   > -- Reset a configuration (reset to default)
   > CALL sys.reset_clulster_configs(
   >   'kv.rocksdb.shared-rate-limiter.bytes-per-sec'
   > );
   > 
   > -- Reset multiple configurations at one time
   > CALL sys.reset_clulster_configs(
   >   'kv.rocksdb.shared-rate-limiter.bytes-per-sec',
   >   'kv.snapshot.interval'
   > );
   > What do you think? [@sd4324530](https://github.com/sd4324530) 
[@platinumhamburg](https://github.com/platinumhamburg) 
[@loserwang1024](https://github.com/loserwang1024)
   
   @wuchong I think it's really better design, more powerful, and without 
ambiguity.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to