<div dir="ltr">Hi, <div><br></div><div>Sorry for my slow replies. I was out of the office Thursday/Friday. Catching up on this thread now. </div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, May 18, 2013 at 7:47 AM, Gary Kotton <span dir="ltr"><<a href="mailto:gkotton@redhat.com" target="_blank">gkotton@redhat.com</a>></span> wrote:<br>
<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">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000"><div class="im">
    On 05/16/2013 05:02 PM, Aaron Rosen wrote:
    <blockquote type="cite">
      <div dir="ltr"><br>
        <div class="gmail_extra"><br>
          <br>
          <div class="gmail_quote">On Wed, May 15, 2013 at 10:59 PM,
            Gary Kotton <span dir="ltr"><<a href="mailto:gkotton@redhat.com" target="_blank">gkotton@redhat.com</a>></span>
            wrote:<br>
            <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">
              <div bgcolor="#FFFFFF" text="#000000">
                <div>
                  <div> On 05/15/2013 10:53 PM, Aaron Rosen
                    wrote:
                    <blockquote type="cite">
                      <div dir="ltr">
                        <div>Hi, <br>
                          <br>
                        </div>
                        I created the following blueprint and wanted to
                        hear what the community though before starting
                        on it. <br>
                        <div>
                          <div><br>
                            <a href="https://blueprints.launchpad.net/nova/+spec/nova-api-quantum-create-port" target="_blank">https://blueprints.launchpad.net/nova/+spec/nova-api-quantum-create-port</a><br>
                          </div>
                        </div>
                      </div>
                    </blockquote>
                    <br>
                  </div>
                </div>
                In the BP you wrote: "The only downside I see of moving
                this logic into nova-api is that we would slow down the
                response time from nova-api to provision instances."<br>
                <br>
                This can be addressed by nova prefetching quantum ports.
                When nova needs a port is can be retrieved from a cached
                pool. This may be a way of addressing this at a later
                stage if the nova api is indeed a bottleneck when it
                comes to the quantum interface (please note that this
                currently happens on the compute node at the moment)<br>
                <br>
              </div>
            </blockquote>
            <div><br>
            </div>
            <div>If there are ports that are preallocated and cached in
              a pool of available ports on the nova-api node this won't
              work if running multiple nova-api nodes with a load
              balancer in front. <br>
            </div>
          </div>
        </div>
      </div>
    </blockquote>
    <br></div>
    Why? It is just an implementation detail. This information can be
    maintained in the nova database.<div class="im"><br></div></div></blockquote><div style><div>Prefetching already created ports on the nova-api side will most likely be to slow to have any affect in the case when a user creates a port and then immediately boots an instance. The slowness I mentioned in the blueprint was about if we were to take the approach of having nova-api create the ports in quantum (in this case there would be nothing to prefetch).  Also, using cached information for the creation of an instance in my opinion seems like it can be problematic. (Using cached info for getting  ips on an instance though is a different story). </div>
<div><br></div></div><div style>Aaron</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"><div bgcolor="#FFFFFF" text="#000000">
<div class="im">
    <br>
    <blockquote type="cite">
      <div dir="ltr">
        <div class="gmail_extra">
          <div class="gmail_quote">
            <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">
              <div bgcolor="#FFFFFF" text="#000000"> Thanks<br>
                Gary<br>
                <br>
                <blockquote type="cite">
                  <div dir="ltr">
                    <div>
                      <div> <br>
                      </div>
                      <div>Thanks, <br>
                        <br>
                        Aaron<br>
                      </div>
                    </div>
                  </div>
                  <br>
                  <fieldset></fieldset>
                  <br>
                  <pre>_______________________________________________
OpenStack-dev mailing list
<a href="mailto:OpenStack-dev@lists.openstack.org" target="_blank">OpenStack-dev@lists.openstack.org</a>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a>
</pre>
                </blockquote>
                <br>
              </div>
              <br>
              _______________________________________________<br>
              OpenStack-dev mailing list<br>
              <a href="mailto:OpenStack-dev@lists.openstack.org" target="_blank">OpenStack-dev@lists.openstack.org</a><br>
              <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
              <br>
            </blockquote>
          </div>
          <br>
        </div>
      </div>
    </blockquote>
    <br>
  </div></div>

</blockquote></div><br></div></div>