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

chenyulin0719 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/yunikorn-site.git


The following commit(s) were added to refs/heads/master by this push:
     new 64fcef2562 [YUNIKORN-3020] Add preemption and priority settings 
example for Restful API doc (#528)
64fcef2562 is described below

commit 64fcef2562053233145a08cc331989d166599513
Author: kaichiachen <[email protected]>
AuthorDate: Fri Nov 21 21:52:31 2025 +0800

    [YUNIKORN-3020] Add preemption and priority settings example for Restful 
API doc (#528)
    
    Closes: #528
    
    Signed-off-by: Yu-Lin Chen <[email protected]>
---
 docs/api/scheduler.md | 24 ++++++++++++++++++++----
 1 file changed, 20 insertions(+), 4 deletions(-)

diff --git a/docs/api/scheduler.md b/docs/api/scheduler.md
index 91087ad644..a5cf9501c6 100644
--- a/docs/api/scheduler.md
+++ b/docs/api/scheduler.md
@@ -88,7 +88,8 @@ Returns general information and statistics about a partition.
             "total": 10
         },
         "totalContainers": 0,
-        "totalNodes": 2
+        "totalNodes": 2,
+        "preemptionEnabled": false
     },
     {
         "clusterId": "mycluster",
@@ -123,7 +124,8 @@ Returns general information and statistics about a 
partition.
             "total": 20
         },
         "totalContainers": 20,
-        "totalNodes": 5
+        "totalNodes": 5,
+        "preemptionEnabled": false
     }
 ]
 ```
@@ -277,7 +279,14 @@ For the default queue hierarchy (only `root.default` leaf 
queue exists) a simila
                 "allocatingAcceptedApps": [
                     "app-1",
                     "app-2"
-                ]
+                ],
+                "sortingPolicy": "fair",
+                "prioritySorting": true,
+                "preemptionEnabled": true,
+                "isPreemptionFence": true,
+                "preemptionDelay": "30s",
+                "isPriorityFence": true,
+                "priorityOffset": 3
             }
         ],
         "absUsedCapacity": {
@@ -355,7 +364,14 @@ If the query parameter `subtree` is not set, the queue's 
children will not be re
     "allocatingAcceptedApps": [
         "app-1",
         "app-2"
-    ]
+    ],
+    "sortingPolicy": "fair",
+    "prioritySorting": true,
+    "preemptionEnabled": true,
+    "isPreemptionFence": true,
+    "preemptionDelay": "30s",
+    "isPriorityFence": true,
+    "priorityOffset": 3
 }
 ```
 


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to