On Mon, May 21, 2018 at 5:04 PM, Brian Keyes <[email protected]> wrote:

> I have an very very simple hello python
>
>
> #start loop
> for x in range(0, 300000):
> print ("hello python ")
>
> but every time I run this on openshift it keeps crashing , why , would it
> be best to scale this up so it is on all worker nodes let it crash and ssh
> into the worker node and look at the docker logs ?
>

I assume it's not crashing, it's exiting after finishing the loop.
Openshift expects your pod containers to run a long-lived process (if you
don't want it to be long-lived, use Jobs), so if it exists it restarts it
for you.

If you do want to see the logs for a "crashing"(exiting) container, you can
use "oc logs -p podname" to see the "previous" logs for the pod, which will
show you the output from the previous run that "crashed"(exited).




> it has 2gb of ram allocated so I am not thinking that this is a memory
> issue
>
> any advice ?
> --
> thanks !!!!
>
>
> _______________________________________________
> users mailing list
> [email protected]
> http://lists.openshift.redhat.com/openshiftmm/listinfo/users
>
>


-- 
Ben Parees | OpenShift
_______________________________________________
users mailing list
[email protected]
http://lists.openshift.redhat.com/openshiftmm/listinfo/users

Reply via email to