[Openstack] Configure Rate limits on OS API

Jay Pipes jaypipes at gmail.com
Mon Jan 2 13:31:01 UTC 2012


On Mon, Jan 2, 2012 at 6:27 AM, Soren Hansen <soren at linux2go.dk> wrote:
> 2011/12/29 Vishvananda Ishaya <vishvananda at gmail.com>:
>> In addition to the rate limiting changes, you can also run multiple copies
>> of nova-api on different ports and put a load balancer (like ha-proxy) in
>> front. You may have to set up your proxy to add an X-Forwarded-For header
>> and specify the
>> --use_forwarded_for
>> flag to get things like metadata to work.
>
> I can't think of any reason we can't just fork() N times (where N
> defaults to number of cores, but could be overridden by a flag) after
> socket.listen(), but before we go into the socket.accept() loop?

This is precisely what Swift does. And, very shortly, Glance:

https://review.openstack.org/#change,2486

Cheers,
-jay




More information about the Openstack mailing list