<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style id="owaParaStyle" type="text/css">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body ocsi="0" fpstyle="1">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">Would Kubernetes be a good fit? It might be possible to hook up a Zaqar queue to submit k8s Jobs?<br>
<br>
Thanks,<br>
Kevin<br>
<div style="font-family: Times New Roman; color: #000000; font-size: 16px">
<hr tabindex="-1">
<div style="direction: ltr;" id="divRpF410306"><font face="Tahoma" size="2" color="#000000"><b>From:</b> Lingxian Kong [anlin.kong@gmail.com]<br>
<b>Sent:</b> Wednesday, November 02, 2016 6:20 PM<br>
<b>To:</b> OpenStack Development Mailing List (not for usage questions)<br>
<b>Subject:</b> Re: [openstack-dev] [FaaS] Function as a service in OpenStack<br>
</font><br>
</div>
<div></div>
<div>
<div dir="ltr">
<div class="gmail_default" style="font-family:'trebuchet ms',sans-serif"><span style="font-family:arial,sans-serif">On Thu, Nov 3, 2016 at 10:44 AM, Zane Bitter
</span><span dir="ltr" style="font-family:arial,sans-serif"><<a href="mailto:zbitter@redhat.com" target="_blank">zbitter@redhat.com</a>></span><span style="font-family:arial,sans-serif"> wrote:</span></div>
<div class="gmail_extra">
<div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex; border-left-width:1px; border-left-color:rgb(204,204,204); border-left-style:solid; padding-left:1ex">
This is a really interesting space. There seems to be two main use cases for Lambda that are probably worth talking about separately:<br>
<br>
The first is for just Lambda alone. You can use it to provide some glue logic between the other AWS services, so you can trigger off various events (e.g. S3 notifications) and write a little bit of conditioning logic that transforms the data and dispatches
it to other services (e.g. DynamoDB). This one is particularly interesting to me, and in fact we can support parts of this in OpenStack already[1] because Mistral's functionality is equivalent to something like SWS + parts of Lambda. (Specifically, Mistral
can do the data dispatch easily enough, but any data transformation has to be done in YAQL, which is a pretty high bar compared to just writing some code in a language of your choosing.)<br>
</blockquote>
<div><br>
</div>
<div>
<div class="gmail_default" style="font-family:'trebuchet ms',sans-serif">There is still one thing missing in Mistral (maybe it should not be). After receieving events from Aodh or Zaqar, what if user just wants to trigger some scripts under his/her management,
rather than just invoking openstack services api? Although actions are pluggable in Mistral, but in this case it's definitely not an easy thing as just writing an customized action, unless Mistral could include such capatility in its scope which I think it
too heavy for Mistral to mange such things by itself. So, FaaS will be the right answer in this case, and it will also be add-on part to empower Mistral to do more things.</div>
</div>
<div> </div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex; border-left-width:1px; border-left-color:rgb(204,204,204); border-left-style:solid; padding-left:1ex">
<br>
The second one is Lambda + the API Gateway, which allows you to have web requests act as triggers, so that you can effectively treat it as a PaaS and build an entire web app by stringing together Lambda functions and the various other services (S3, DynamoDB,
&c.). On the face of it this sounds to me like a gimmicky way of deploying an unmaintainable mess. Naturally this is the one receiving all of the attention, which shows how much I know :D</blockquote>
<div><br>
</div>
<div class="gmail_default" style="font-family:'trebuchet ms',sans-serif">I also don't think this one is attractive to me, Lambda is especially powerful when it's used together with other AWS services(S3, DynamoDB, Kinesis Streams, etc).</div>
<div class="gmail_default" style="font-family:'trebuchet ms',sans-serif"></div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex; border-left-width:1px; border-left-color:rgb(204,204,204); border-left-style:solid; padding-left:1ex">
<span class="gmail-"><br>
</span>I definitely don't think we should try to reimplement this from scratch in OpenStack. IMHO if we're going to add FaaS capabilities we should re-use some existing project (like OpenWhisk), even if we have to write our own native API over the top of it.<br>
<br>
The things we'd really want it to do would be:<br>
<br>
* Authenticate against Keystone,<br>
* Provide Keystone credentials for the user-supplied functions it runs to access (probably using Keystone trusts), and<br>
* Connect to existing OpenStack sources of events, which hopefully means Zaqar queues<br>
<br>
Which sounds challenging to integrate with an existing standalone project, though still not as bad as writing an equivalent from scratch.<br>
<br>
TBH I think the appeal, at least for the FaaS-as-a-PaaS (aka #serverless) crowd, is going to be pretty limited until such time as we have an equivalent of DynamoDB in OpenStack. (i.e. no time soon, since the MagnetoDB project is goneburger.) The idea of FaaS
is to make the unit of compute power that you're paying for (a) as fine-grained as possible, and (b) scalable to infinity. Swift provides the same thing for storage (Nova:FaaS::Cinder:Swift). What we don't have is the equivalent for a database, there's only
Trove where you're paying for a VM-sized chunk at a minimum and scaling up in units of VM-sized chunks until you reach the limit of how many VMs can communicate with each other and still get any work done. Not many web apps can get by without a database, so
that largely negates the purpose to my mind, since the database will likely both dominate costs at the low end and put the upper limit on scale at the high end.<br>
</blockquote>
<div><br>
</div>
<div>
<div class="gmail_default" style="font-family:'trebuchet ms',sans-serif">Yeah, I agree with you that more things are needed so that FaaS-like stuff could be used appropriately and ideally, we can't get everything ready on day 1, that's how we do things, from
simple to complex, isn't it? </div>
<br>
</div>
<div> </div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex; border-left-width:1px; border-left-color:rgb(204,204,204); border-left-style:solid; padding-left:1ex">
<br>
cheers,<br>
Zane.<br>
<br>
[1] <a href="https://www.openstack.org/videos/video/building-self-healing-applications-with-aodh-zaqar-and-mistral" rel="noreferrer" target="_blank">
https://www.openstack.org/vide<wbr>os/video/building-self-healing<wbr>-applications-with-aodh-zaqar-<wbr>and-mistral</a>
<div class="gmail-HOEnZb">
<div class="gmail-h5"><br>
<br>
<br>
______________________________<wbr>______________________________<wbr>______________<br>
OpenStack Development Mailing List (not for usage questions)<br>
Unsubscribe: <a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" rel="noreferrer" target="_blank">
OpenStack-dev-request@lists.op<wbr>enstack.org?subject:unsubscrib<wbr>e</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" rel="noreferrer" target="_blank">http://lists.openstack.org/cgi<wbr>-bin/mailman/listinfo/openstac<wbr>k-dev</a><br>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</div>
</div>
</body>
</html>