[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: How to get this from the librbary?



if you run oc with "--loglevel=8" you can see all the api calls it is making and the responses.


On Tue, May 7, 2019 at 7:06 PM Tony Herstell <tony herstell gmail com> wrote:
I dont know Openshift too well but I am trying to get the details that would be returned from this command:

oc describe node -l app=sc-app
... (towards the bottom)...

Allocated resources:
(Total limits may be over 100 percent, i.e., overcommitted.)
CPU Requests CPU Limits Memory Requests Memory Limits
------------ ---------- --------------- -------------
804m (50%) 1600m (100%) 1557Mi (6%) 3160Mi (12%)

I take all the %ages for all the nodes and then average them for the whole instance.... thereby getting a "utilization"...

Please advise...




I then disregard any nodes that are not ready..

oc get node -l app=sc-app --no-headers

and this bit seems to be available as client.getServerReadyStatus();




Virus-free. www.avast.com
_______________________________________________
dev mailing list
dev lists openshift redhat com
http://lists.openshift.redhat.com/openshiftmm/listinfo/dev


--
Ben Parees | OpenShift


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]