Skip to content

Commit 441d216

Browse files
authored
This PR is to add comments to transformResourcesForWorker in pkg\ddc\alluxio\transform_resources.go. (#4526)
* Add comments to transformResourcesForWorker in pkg\ddc\alluxio\transform_resources.go. Signed-off-by: Kimiqwer <221220026@smail.nju.edu.cn> * Add comments to transformResourcesForWorker in pkg\ddc\alluxio\transform_resources.go. Signed-off-by: Kimiqwer <221220026@smail.nju.edu.cn> * Add comments to transformResourcesForWorker in pkg\ddc\alluxio\transform_resources.go. Signed-off-by: Kimiqwer <221220026@smail.nju.edu.cn> --------- Signed-off-by: Kimiqwer <221220026@smail.nju.edu.cn>
1 parent 7ff1184 commit 441d216

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

pkg/ddc/alluxio/transform_resources.go

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,17 @@ func (e *AlluxioEngine) transformResourcesForMaster(runtime *datav1alpha1.Alluxi
4747

4848
}
4949

50+
// transformResourcesForWorker is responsible for transforming and setting resource limits for the Alluxio Worker component.
51+
// This function updates the resource requirements for the Worker and JobWorker based on the runtime configuration
52+
// and ensures that memory requests meet the required constraints.
53+
//
54+
// Parameters:
55+
// - runtime: *datav1alpha1.AlluxioRuntime, the runtime configuration of Alluxio, including resource definitions
56+
// for Worker and JobWorker.
57+
// - value: *Alluxio, the Alluxio runtime instance used to store the transformed resource information.
58+
//
59+
// Return value:
60+
// - error: Returns an error if any issue occurs during resource transformation; otherwise, returns nil.
5061
func (e *AlluxioEngine) transformResourcesForWorker(runtime *datav1alpha1.AlluxioRuntime, value *Alluxio) error {
5162

5263
//for worker

0 commit comments

Comments
 (0)