API deployer debugging

james147
Level 1
API deployer debugging

Hi all,

I am deploying a api pod in kubernetes, our process seems to be slow.

Can i find out where do we find the python printouts in logs within the pods?

Is there a place where we need to set the http timeouts?

Where can i find the dockerfile that is used to build for this docker image when we do a deployment with code env?


Operating system used: linux

0 Kudos
1 Reply
JordanB
Dataiker

Hi @james147,

Where are you experiencing the slowness - is it during the deployment (when you select deploy or update) or while the api is deployed? Note, API deployment requires rebuilding the code env. If you are using R, or code envs with very large Python packages, or Python packages for which precompiled binaries are not available, we confirm that this can take some time. If you are not using R, you can rebuild the deployment without it. 

In DSS 10.0.6+ to obtain the pod logs (apimain.log) you can use Administration - Cluster - Actions and run the following command. 
 
kubectl exec <podname>  -- cat /home/dataiku/data/run/apimain.log 
To identify the pod name, go to Administration - Cluster - Monitoring and find the name(s). You may need to check each pod logs.
 
You can also manually redirect the apimain.log output to stdout:  
cat /home/dataiku/data/run/apimain.log 2>&1 
 

Is there a place where we need to set the http timeouts? > Can you expand on this? 

Where can i find the dockerfile that is used to build for this docker image when we do a deployment with code env? > The image can be found within the datadir under /tmp/api_deployer, however, I'm not sure this will help troubleshoot the slowness unless you have customized it. 

If you could provide details regarding where/when this slowness is occurring, that would be great!

Thanks!

Jordan

0 Kudos

Labels

?

Setup info

?
A banner prompting to get Dataiku