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

Re: Autoscaler can't get Current CPU utilization:



Yes, just add it under spec.template.spec.containers[n] like this: https://paste.fedoraproject.org/299520/

Mateus Caruccio
Master of Puppets
+55 (51) 8298.0026
gtalk: mateus caruccio getupcloud com
twitter: @MateusCaruccio

This message and any attachment are solely for the intended
recipient and may contain confidential or privileged information
and it can not be forwarded or shared without permission.
Thank you!

On Thu, Dec 10, 2015 at 12:43 PM, Lorenz Vanthillo <lorenz vanthillo outlook com> wrote:
Hmm no, I first did it very fast just like in the example:
$ oc run nginx --image=nginx --limits=cpu=200m,memory=400Mi --requests=cpu=100m,memory=200Mi

But It was just a random nginx and restarting the whole time.
Now I'm thinking: I have an existing pod. Do I have to add this:
requests: cpu: 100m memory: 200Mi limits: cpu: 200m memory: 400Mi

In it's dc config?



Date: Thu, 10 Dec 2015 12:21:01 -0200
Subject: Re: Autoscaler can't get Current CPU utilization:
From: mateus caruccio getupcloud com
To: mwringe redhat com
CC: lorenz vanthillo outlook com; users lists openshift redhat com


failed to get CPU consumption and request: some pods do not have request for cpu

Did you created your container with resources requests and limits? See https://docs.openshift.org/latest/dev_guide/compute_resources.html for details.



Mateus Caruccio
Master of Puppets
+55 (51) 8298.0026
gtalk: mateus caruccio getupcloud com
twitter: @MateusCaruccio

This message and any attachment are solely for the intended
recipient and may contain confidential or privileged information
and it can not be forwarded or shared without permission.
Thank you!

On Thu, Dec 10, 2015 at 12:08 PM, Matt Wringe <mwringe redhat com> wrote:
----- Original Message -----
> From: "Lorenz Vanthillo" <lorenz vanthillo outlook com>
> To: "Mateus Caruccio" <mateus caruccio getupcloud com>
> Cc: users lists openshift redhat com
> Sent: Thursday, December 10, 2015 7:42:51 AM
> Subject: RE: Autoscaler can't get Current CPU utilization:
>
> So we're using the same heapster-image.
> This are the errors in my webconsole of the project with the scaler:
> 12:14:09 PM   test-scaler     HorizontalPodAutoscaler         FailedGetMetrics        failed
> to get CPU consumption and request: some pods do not have request for cpu
> 12:14:09 PM   test-scaler     HorizontalPodAutoscaler         FailedComputeReplicas
>       failed to get cpu utilization: failed to get CPU consumption and request:
> some pods do not have request for cpu
> The logs of the heapster-pod again:
> I don't see an issue. Someone?

I never saw your response to the first question asked: what project do you have the metrics components deployed under?

If you could verify the project, then we might be able to help more.

Since you can see the charts in the console, its probably not something wrong with Heapster, Hawkular Metrics or Cassandra.

> Starting Heapster with the following arguments:
> --source=kubernetes:https://kubernetes.default.svc:443?useServiceAccount=true&kubeletHttps=true&kubeletPort=10250
> --sink=hawkular:https://hawkular-metrics:443?tenant=_system&labelToTenant=pod_namespace&caCert=/hawkular-cert/hawkular-metrics-ca.certificate&user=hawkular&pass=uRXj1CFvyuQH_H8&filter=label(container_name:^/system.slice.*|^/user.slice)
> --logtostderr=true --tls_cert=/secrets/heapster.cert
> --tls_key=/secrets/heapster.key --tls_client_ca=/secrets/heapster.client-ca
> --allowed_users=system:master-proxy
> I1210 12:40:19.668491 1 heapster.go:60] heapster
> --source=kubernetes:https://kubernetes.default.svc:443?useServiceAccount=true&kubeletHttps=true&kubeletPort=10250
> --sink=hawkular:https://hawkular-metrics:443?tenant=_system&labelToTenant=pod_namespace&caCert=/hawkular-cert/hawkular-metrics-ca.certificate&user=hawkular&pass=uRXj1CFvyuQH_H8&filter=label(container_name:^/system.slice.*|^/user.slice)
> --logtostderr=true --tls_cert=/secrets/heapster.cert
> --tls_key=/secrets/heapster.key --tls_client_ca=/secrets/heapster.client-ca
> --allowed_users=system:master-proxy
> I1210 12:40:19.696853 1 heapster.go:61] Heapster version 0.18.0
> I1210 12:40:19.697475 1 kube_factory.go:168] Using Kubernetes client with
> master "https://kubernetes.default.svc:443" and version "v1"
> I1210 12:40:19.697490 1 kube_factory.go:169] Using kubelet port 10250
> I1210 12:40:19.697805 1 driver.go:491] Initialised Hawkular Sink with
> parameters {_system
> https://hawkular-metrics:443?tenant=_system&labelToTenant=pod_namespace&caCert=/hawkular-cert/hawkular-metrics-ca.certificate&user=hawkular&pass=uRXj1CFvyuQH_H8&filter=label(container_name:^/system.slice.*|^/user.slice)
> 0xc20817e900 }
> I1210 12:40:19.794848 1 heapster.go:71] Starting heapster on port 8082
>
> What else can I check?
>
>
> Date: Wed, 9 Dec 2015 18:40:38 -0200
> Subject: Re: Autoscaler can't get Current CPU utilization:
> From: mateus caruccio getupcloud com
> To: lorenz vanthillo outlook com
> CC: users lists openshift redhat com
>
> Oops, same here:
>
> # docker images|grep metrics
> docker.io/openshift/origin-metrics-heapster latest ef2c651384be 2 weeks ago
> 318.6 MB
> docker.io/openshift/origin-metrics-deployer latest f6f6f2c429d2 3 weeks ago
> 609.6 MB
> docker.io/openshift/origin-metrics-hawkular-metrics latest 5b7d08159fa1 4
> weeks ago 1.106 GB
> docker.io/openshift/origin-metrics-cassandra latest ecab30cafe2b 4 weeks ago
> 647.7 MB
>
>
> Mateus Caruccio
> Master of Puppets
>
> +55 (51) 8298.0026
> gtalk: mateus caruccio getupcloud com
> twitter: @MateusCaruccio
>
>
>
> This message and any attachment are solely for the intended
> recipient and may contain confidential or privileged information
> and it can not be forwarded or shared without permission.
> Thank you!
>
> On Wed, Dec 9, 2015 at 12:22 PM, Lorenz Vanthillo <
> lorenz vanthillo outlook com > wrote:
>
>
>
> Hi, Mateus,
>
> I was doing some research and I'm using this image:
> docker.io/openshift/origin-metrics-heapster latest ef2c651384be 2 weeks ago
> 318.6 MB
>
> But you told me to use this template:
> docker.io/openshift/origin-metrics-hawkular-metrics latest 5b7d08159fa1 4
> weeks ago 1.106 GB
>
> https://docs.openshift.org/latest/install_config/cluster_metrics.html
>
> How did you change your configuration/template to tell origin to use that
> template.
> It's not very clear for me with the use of the deployer-image.
>
>
> _______________________________________________
> users mailing list
> users lists openshift redhat com
> http://lists.openshift.redhat.com/openshiftmm/listinfo/users
>



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