You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mesos.apache.org by Meng Zhu <mz...@mesosphere.com> on 2018/12/11 20:20:18 UTC

Proposing `Quantity`

Hi:

We are proposing to add a primitive type `Quantity` to facilitate several
ongoing projects. The schema will be:

message Quantity {
  required string name;
  optional value.scalar scalar;
}

You can find more details such as motivation, current, and future use cases
in this design doc
<https://docs.google.com/document/d/1WbRKmqsos1-IBJ9VjpT4kNIp2Peyvx2k4UphRaFVYFU/edit?usp=sharing>.
Feel free leave comments and questions.

Thanks,
Meng

Re: Proposing `Quantity`

Posted by Meng Zhu <mz...@mesosphere.com>.
Hi James:

Thanks for the great feedback! We will keep your suggestions in mind when
doing specific designs such as the upcoming new API for setting limits.
Stay tuned!

-Meng

On Thu, Dec 20, 2018 at 12:55 PM James DeFelice <ja...@gmail.com>
wrote:

> I have concerns about using a "string" type for the value in Quantity. I
> left comments and suggestions in the doc. Thanks!
>
> On Mon, Dec 17, 2018 at 1:49 AM Meng Zhu <mz...@mesosphere.com> wrote:
>
> > Hello:
> >
> > After discussing with folks, we want to propose to use `string` in the
> > `Quantity` message and also leave out the name at the moment:
> >
> > message Quantity {
> >   required string value = 1;
> > }
> >
> > A sample use case for setting resource guarantee will be:
> >
> > message ResourceGuaranteeRequest {
> >    optional string role = 1;
> >    optional map<string, Quantity> resource_quantities = 2;
> > }
> >
> > I have updated the design doc here
> > <
> >
> https://docs.google.com/document/d/1WbRKmqsos1-IBJ9VjpT4kNIp2Peyvx2k4UphRaFVYFU/edit#
> > >
> > with more context, alternative proposals, and examples. Feel free leave
> > comments and questions. Thanks!
> >
> > -Meng
> >
> > On Tue, Dec 11, 2018 at 12:20 PM Meng Zhu <mz...@mesosphere.com> wrote:
> >
> > > Hi:
> > >
> > > We are proposing to add a primitive type `Quantity` to facilitate
> several
> > > ongoing projects. The schema will be:
> > >
> > > message Quantity {
> > >   required string name;
> > >   optional value.scalar scalar;
> > > }
> > >
> > > You can find more details such as motivation, current, and future use
> > > cases in this design doc
> > > <
> >
> https://docs.google.com/document/d/1WbRKmqsos1-IBJ9VjpT4kNIp2Peyvx2k4UphRaFVYFU/edit?usp=sharing
> > >.
> > > Feel free leave comments and questions.
> > >
> > > Thanks,
> > > Meng
> > >
> >
>
>
> --
> James DeFelice
> 585.241.9488 (voice)
> 650.649.6071 (fax)
>

Re: Proposing `Quantity`

Posted by James DeFelice <ja...@gmail.com>.
I have concerns about using a "string" type for the value in Quantity. I
left comments and suggestions in the doc. Thanks!

On Mon, Dec 17, 2018 at 1:49 AM Meng Zhu <mz...@mesosphere.com> wrote:

> Hello:
>
> After discussing with folks, we want to propose to use `string` in the
> `Quantity` message and also leave out the name at the moment:
>
> message Quantity {
>   required string value = 1;
> }
>
> A sample use case for setting resource guarantee will be:
>
> message ResourceGuaranteeRequest {
>    optional string role = 1;
>    optional map<string, Quantity> resource_quantities = 2;
> }
>
> I have updated the design doc here
> <
> https://docs.google.com/document/d/1WbRKmqsos1-IBJ9VjpT4kNIp2Peyvx2k4UphRaFVYFU/edit#
> >
> with more context, alternative proposals, and examples. Feel free leave
> comments and questions. Thanks!
>
> -Meng
>
> On Tue, Dec 11, 2018 at 12:20 PM Meng Zhu <mz...@mesosphere.com> wrote:
>
> > Hi:
> >
> > We are proposing to add a primitive type `Quantity` to facilitate several
> > ongoing projects. The schema will be:
> >
> > message Quantity {
> >   required string name;
> >   optional value.scalar scalar;
> > }
> >
> > You can find more details such as motivation, current, and future use
> > cases in this design doc
> > <
> https://docs.google.com/document/d/1WbRKmqsos1-IBJ9VjpT4kNIp2Peyvx2k4UphRaFVYFU/edit?usp=sharing
> >.
> > Feel free leave comments and questions.
> >
> > Thanks,
> > Meng
> >
>


-- 
James DeFelice
585.241.9488 (voice)
650.649.6071 (fax)

Re: Proposing `Quantity`

Posted by Meng Zhu <mz...@mesosphere.com>.
Hello:

After discussing with folks, we want to propose to use `string` in the
`Quantity` message and also leave out the name at the moment:

message Quantity {
  required string value = 1;
}

A sample use case for setting resource guarantee will be:

message ResourceGuaranteeRequest {
   optional string role = 1;
   optional map<string, Quantity> resource_quantities = 2;
}

I have updated the design doc here
<https://docs.google.com/document/d/1WbRKmqsos1-IBJ9VjpT4kNIp2Peyvx2k4UphRaFVYFU/edit#>
with more context, alternative proposals, and examples. Feel free leave
comments and questions. Thanks!

-Meng

On Tue, Dec 11, 2018 at 12:20 PM Meng Zhu <mz...@mesosphere.com> wrote:

> Hi:
>
> We are proposing to add a primitive type `Quantity` to facilitate several
> ongoing projects. The schema will be:
>
> message Quantity {
>   required string name;
>   optional value.scalar scalar;
> }
>
> You can find more details such as motivation, current, and future use
> cases in this design doc
> <https://docs.google.com/document/d/1WbRKmqsos1-IBJ9VjpT4kNIp2Peyvx2k4UphRaFVYFU/edit?usp=sharing>.
> Feel free leave comments and questions.
>
> Thanks,
> Meng
>