J-HowHuang opened a new pull request, #16144:
URL: https://github.com/apache/pinot/pull/16144

   ## Overview
   Added support for overriding the default disk utilization threshold during 
table rebalance operations, allowing users to customize disk space checks on a 
per-rebalance basis.
   
   ### Backend Changes
   - **RebalanceConfig**: Added `diskUtilizationThreshold` field (double, 
default: -1.0)
   - **Rebalance API**: New query parameter `diskUtilizationThreshold` in `POST 
/tables/{tableName}/rebalance`
   - **Pre-checker**: Updated `DefaultRebalancePreChecker` to use override 
threshold when provided
   - **Variable Rename**: `_diskUtilizationThreshold` → 
`_defaultDiskUtilizationThreshold` for clarity in `DefaultRebalancePreChecker`
   
   ### API Usage
   ```bash
   POST /tables/myTable/rebalance?type=OFFLINE&diskUtilizationThreshold=0.85
   ```
   
   ### UI Changes
   - Added "Disk Utilization Threshold" field to Advanced Options in rebalance 
dialog
   - New DOUBLE input component for decimal values (0.0-1.0 range)
   
   ### Behavior
   - **Default (-1.0)**: Uses controller's configured threshold (the approach 
before this PR)
   - **Override (>=0.0)**: Uses specified threshold (e.g., 0.85 = 85%)
   
   ## Rebalance UI
   
![image](https://github.com/user-attachments/assets/248b276d-49fb-458e-9696-cbb9a40028ae)
   When the value is default (-1.0)
   <img width="224" alt="image" 
src="https://github.com/user-attachments/assets/b65eb0cc-3360-41bc-bd79-045b48fae263";
 />
   When the value is 0.2
   
![image](https://github.com/user-attachments/assets/392fec4d-9b58-4089-b57e-96f5f8573db6)
   When the value is 15 (no check on this value, though)
   
![image](https://github.com/user-attachments/assets/68045a7f-faf5-4d9a-a168-1366c5c0ca0c)
   


-- 
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: commits-unsubscr...@pinot.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org
For additional commands, e-mail: commits-h...@pinot.apache.org

Reply via email to