Simon Späti
10/15/2020, 9:37 AMdagster-run
-pod which gest scheduled when starting a pipeline?
I'm trying to use spark which need a driver-host/port (as discussed with @bob and @johann). I managed to start a Spark session from the user-code
pod now (yay!! 🙂 ), but not yet from the scheduled pods.
We managed to set the resources
(memory/cpu) successfully for a pipeline (and it's pod), but struggling with the port settings. (settings we used in the thread). Maybe @Kevin you did already such things? 🤔 Or is that setting not routed through to kubernetes yet? (if not, how would I achieve this)container_config
like this:
{
"container_config": {
"resources": {
"requests": {
"cpu": "1",
"memory": "1Gi"
},
"limits": {
"cpu": "2",
"memory": "2Gi"
},
},
"ports": [
{
"name": " grpc",
"containerPort": 3030,
"protocol": "TCP"
},
{
"name": "spark-driver",
"containerPort": "4040",
"protocol": "TCP"
},
]
}
}
or with the other key pod_spec_config
like this:
{
"container_config": {
"resources": {
"limits": {
"cpu": "2",
"memory": "2Gi"
},
"requests": {
"cpu": "1",
"memory": "1Gi"
}
}
},
"pod_spec_config": {
"containers": {
"ports": [
{
"name": " grpc",
"containerPort": 3030,
"protocol": "TCP"
},
{
"name": " spark-driver",
"containerPort": 4040,
"protocol": "TCP"
}
]
}
}
}
As said before, the resources block is correctly set, only the port part not.resources
, tried to debug around there. Couldn’t print yet container_config
after merge, but will try again tomorrow. Otherwise I believe I can just add one more replace for ports
, at least that’s my take for now.johann
10/15/2020, 8:03 PMSimon Späti
10/16/2020, 11:38 AMdagster_k8s
inside dagit & user-code pods (to add some debugging info), but I cannot see that anything is executed/printed.johann
10/16/2020, 11:56 AMsashank
10/16/2020, 2:44 PMjohann
10/16/2020, 2:45 PMbob
10/20/2020, 7:59 PMdagster-run
-pod, but you were on the right track. the code snippet below gives an example of using configs on the pipeline definition that will be passed down to the dagster-run
pod
Note that:
• Any k8s config (including container_config) needs to be under the dagster-k8s/config
tag key. You can take a look at 0.9.3 Release Notes for additional examples of using dagster-k8s/config
.
• Unfortunately, k8s only allows “name” to contain alphanumeric (A-z0-9) characters, and complains when you try to use “spark-driver” :(((johann
10/20/2020, 9:20 PMSimon Späti
10/21/2020, 2:52 PM