Metering for Mesos

2015-08-06 Thread Sam Chen
Guys , We are planning to use Mesos as production platform and based on Openstack , My question is , Is there any solution for metering ? then billing . Since we want to have our platform online and have pay-as-you-go mode . Anyone have any suggsetion ? Very appreciated . Sam

Re: Metering for Mesos

2015-08-06 Thread haosdent
You mean metering by resource? You could get every task resource usage through send http request to state.json . On Fri, Aug 7, 2015 at 12:23 PM, Sam Chen wrote: > Guys , > We are planning to use Mesos as production platform and based on > Openstack , My question is , Is there any solution for

Re: Metering for Mesos

2015-08-06 Thread Sam Chen
Haosdent , Let me bring one example on the table . We are using Mesos and Marathon , and deployed two tier application (web tier is Tomcat , database layer is mysql) . We are frustrated in terms of how to charge this service, so that we are thinking whether mesos or marathon can have metering servi

Re: Metering for Mesos

2015-08-06 Thread haosdent
For example: $http http://localhost:5050/slave\(1\)/state.json |jq .completed_frameworks\[0\].completed_executors\[0\].completed_tasks\[0\].resources { "cpus": 1, "disk": 0, "mem": 128 } You could get resource which allocated to task. Is it match your expected? On Fri, Aug 7, 2015 at 12:4

Re: Metering for Mesos

2015-08-07 Thread Marco Massenzio
Hi Sam, Mesos (both Master and Agents) publish a wealth of metrics that can be used for metering, diagnostic, fault discovery/prediction and, I presume, accounting and billing too (that very much depends on what pricing model you guys use). As an example, you may want to take a look at https://gi