You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pinot.apache.org by ja...@apache.org on 2023/12/07 17:44:46 UTC

(pinot) branch master updated: UI: add lowDiskMode option in rebalance operation (#12112)

This is an automated email from the ASF dual-hosted git repository.

jackie pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pinot.git


The following commit(s) were added to refs/heads/master by this push:
     new 45d9a4b8cf UI: add lowDiskMode option in rebalance operation (#12112)
45d9a4b8cf is described below

commit 45d9a4b8cf46e902314b1ed237742d42206f2edb
Author: Jayesh Choudhary <ja...@gmail.com>
AuthorDate: Thu Dec 7 23:14:40 2023 +0530

    UI: add lowDiskMode option in rebalance operation (#12112)
---
 .../Homepage/Operations/RebalanceServerTableOp.tsx        | 15 ++++++++++++++-
 1 file changed, 14 insertions(+), 1 deletion(-)

diff --git a/pinot-controller/src/main/resources/app/components/Homepage/Operations/RebalanceServerTableOp.tsx b/pinot-controller/src/main/resources/app/components/Homepage/Operations/RebalanceServerTableOp.tsx
index b07f423f11..504e4200ce 100644
--- a/pinot-controller/src/main/resources/app/components/Homepage/Operations/RebalanceServerTableOp.tsx
+++ b/pinot-controller/src/main/resources/app/components/Homepage/Operations/RebalanceServerTableOp.tsx
@@ -43,11 +43,12 @@ export default function RebalanceServerTableOp({
   const [downtime, setDowntime] = React.useState(false);
   const [minAvailableReplicas, setMinAvailableReplicas] = React.useState("1");
   const [bestEfforts, setBestEfforts] = React.useState(false);
+  const [lowDiskMode, setLowDiskMode] = React.useState(false);
 
   const getData = () => {
     return {
       type: tableType,
-      dryRun, reassignInstances, includeConsuming, bootstrap, downtime, bestEfforts,
+      dryRun, reassignInstances, includeConsuming, bootstrap, downtime, bestEfforts, lowDiskMode,
       minAvailableReplicas: parseInt(minAvailableReplicas, 10)
     }
   };
@@ -105,6 +106,18 @@ export default function RebalanceServerTableOp({
                 }
                 label="Downtime"
               />
+              <br />
+              <FormControlLabel
+                control={
+                  <Switch
+                    checked={lowDiskMode}
+                    onChange={() => setLowDiskMode(!lowDiskMode)} 
+                    name="lowDiskMode"
+                    color="primary"
+                  />
+                }
+                label="Low Disk Mode"
+              />
             </Grid>
             <Grid item xs={6}>
               <FormControlLabel


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