-
Notifications
You must be signed in to change notification settings - Fork 198
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
scale out mechanism in HTEX not compatible with kubernetes provider #853
Comments
I am going to add a check in the executor to let kubernetes provider skip this loop below: parsl/parsl/executors/high_throughput/executor.py Lines 480 to 482 in a00acdd
Any better suggestion for this issue? |
@ZhuozhaoLi so that scale_out does nothing in that case? |
@benclifford So the scale_out only does |
Some questions that spring to mind: Who calls scale_out? Are they going to be happy that they didn't get the number of blocks they ask for? What happens if they ask to scale out more blocks by calling scale_out repeatedly because you didn't scale out the right number of blocks? Should this code throw a ValueError if it cannot do what it was asked to do rather than silently doing something else? Architecturally it's horrible to put in class type tests all over the place - the suggested change isn't going to work for the not yet implemented SimilarToKubernetesProvider, for example. |
The result of a discussion between myself and @ZhuozhaoLi on slack was that a better representation of blocks in kubernetes might be: each block is a kubernetes pod, managed directly via parsl, rather than via a kubernetes |
) fix #853. Now kubernetes provider creates non-deployment pods for each executor, rather than deployments. The scaling of pods will be managed by Parsl. Refer the details to the discussions in #853 Squashed commits: * each block in kube refers to a pod * add docstring for pod_name * remove dead code about create deployment * docstring - non-deployment pod to pod * typo in comment * simplify container creation code
Currently, the
scale_out
mechanism in HTEX is to scale out block by block, as inparsl/parsl/executors/high_throughput/executor.py
Lines 480 to 482 in a00acdd
This is conflicted with the mechanism in kubernetes provider. In kube provider, the number of blocks refer to the number of pods, and it creates the blocks (pods) directly, as in
parsl/parsl/providers/kubernetes/kube.py
Lines 126 to 131 in a00acdd
Need to fix to make them compatible.
The text was updated successfully, but these errors were encountered: