<div dir="ltr">For neutron you can safely set api_workers and rpc_workers to 1.<div class="gmail_extra"><br><div class="gmail_quote">On Wed, Feb 3, 2016 at 4:06 AM, Alexander Simeonov <span dir="ltr"><<a href="mailto:simeonov@gmail.com" target="_blank">simeonov@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Hello,<div><br></div><div>I am running OpenStack on a single physical node, installed with packstack —allinone. The host has 32gb of memory, 32 logical cores and currently runs a single VM with 16gb RAM allocated. However, after just a few hours of usage, the host starts swapping. After inspection of the current memory usage, I see most of the OpenStack services have spawned multiple processed each which in total consume about 12gb of memory (shared+resident per process):</div><div><br></div><div><div><font face="Courier New">MiB<span style="white-space:pre-wrap"> </span>Process<span style="white-space:pre-wrap"> </span># processes</font></div><div><font face="Courier New">3686.4 nova-api<span style="white-space:pre-wrap"> </span>97</font></div><div><font face="Courier New">2355.2 neutron-server<span style="white-space:pre-wrap"> </span>65</font></div><div><font face="Courier New">2048 nova-conductor <span style="white-space:pre-wrap"> </span>33</font></div><div><font face="Courier New">1536 heat-engine <span style="white-space:pre-wrap"> </span>33</font></div><div><font face="Courier New">819.2 glance-registry<span style="white-space:pre-wrap"> </span>33</font></div><div><font face="Courier New">657 glance-api<span style="white-space:pre-wrap"> </span>33</font></div><div><font face="Courier New">504.6 swift-proxy-ser<span style="white-space:pre-wrap"> </span>33</font></div><div><font face="Courier New">183.9 neutron-metadat<span style="white-space:pre-wrap"> </span>33</font></div><div><font face="Courier New">168.8 cinder-api<span style="white-space:pre-wrap"> </span>33</font></div></div><div><font face="Courier New"><br></font></div><div>According to the docs at <a href="http://docs.openstack.org/liberty/config-reference/content/list-of-compute-config-options.html" target="_blank">http://docs.openstack.org/liberty/config-reference/content/list-of-compute-config-options.html</a>, OpenStack defaults the number of workers for each of this service to the number of logical cores on the server, but the nova-api and the neutron-servers seem to have multipliers of 3 and 2 respectively.</div><div><br></div><div>Since this machine will only run just a few (3-4) VMs and modifications or creation of guests will rarely occur once it has been fully set up, what are the minimum values that I could use in the relevant config files in order to decrease the memory usage of this services? Can I safely run a single worker for each of the internal services?</div><div><br></div><div>Thanks.</div><div><br></div><div>Regards,</div><div>Alexander</div></div><br>_______________________________________________<br>
Mailing list: <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" rel="noreferrer" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><br>
Post to : <a href="mailto:openstack@lists.openstack.org" target="_blank">openstack@lists.openstack.org</a><br>
Unsubscribe : <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" rel="noreferrer" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div><div>Kevin Benton</div></div>
</div></div>