Re: CF Auto-scaling with an external application


Daniel Mikusa
 

I suspect that you probably want to look at streaming metrics from doppler,
rather than polling metrics from some other sources like inside the
container or an API call.

This project has some sample apps that show connecting a streaming logs and
metrics. I think the latter is probably what you want.

https://github.com/cloudfoundry/noaa
https://github.com/cloudfoundry/noaa#container-metrics

This repo has a little more info too:
https://github.com/cloudfoundry/dropsonde-protocol#message-types

If you do decide that you want to poll instead, this is probably a good API
call for that.

http://apidocs.cloudfoundry.org/233/apps/get_detailed_stats_for_a_started_app.html

You can see all the API call's here: http://apidocs.cloudfoundry.org/

Hope that helps!

Dan


On Sun, Mar 27, 2016 at 1:33 PM, Giovanni Napoli <gio.napoli2(a)gmail.com>
wrote:

Hi everybody,
i'm studying Cloud Foundry PaaS for my thesis in Computer Science and one
of the point i have to develop with this platform is tho project and then
develop an external application, written in Java, that could provide to the
platform a kind of auto-scaling service that isn't provided for Cloud
Foundry by default.
The metrics i would to use for auto-scaling the apps is CPU and RAM usage.
I know that using "bosh ssh" into the "runner" job, i can log in into the
containers using "wsh" to use a bash terminal into the containers. However,
here's my questions:
- is there a way to see, without connecting into the containers, what are
the resources used by the apps? Maybe with a "top" or "htop" or whatever
command?
- if not, i've seen that in the containers i can't launche this kind of
commands to se rosource usage, isn't it?
- is there another solutions, maybe easier, to resolve develop this kind
of application?
Any kind of suggestion would be great.
Thank you for your support.

Join cf-dev@lists.cloudfoundry.org to automatically receive all group messages.