<div dir="ltr"><div>CONF.libvirt.images_default_iops_second isn't in upstream yet, anyway I think this is definitely a bug and we should support set rate limit for rbd disk backend. <br></div>I filed a bug here to track this issue. <a href="https://bugs.launchpad.net/nova/+bug/1362129">https://bugs.launchpad.net/nova/+bug/1362129</a><br>
<div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Aug 27, 2014 at 7:05 PM, Haomai Wang <span dir="ltr"><<a href="mailto:haomaiwang@gmail.com" target="_blank">haomaiwang@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Yes, it's possible just like a volume from Cinder. But it still exists<br>
some works todo. We need to pass iops/bw throttle value in via config<br>
or flavor metadata. If you want to get it as quick as possible, you<br>
can add some hack codes like this:<br>
<div class=""><br>
tune_items = ['disk_read_bytes_sec', 'disk_read_iops_sec',<br>
'disk_write_bytes_sec', 'disk_write_iops_sec',<br>
'disk_total_bytes_sec', 'disk_total_iops_sec']<br>
# Note(yaguang): Currently, the only tuning available is Block I/O<br>
# throttling for qemu.<br>
if self.source_type in ['file', 'block']:<br>
for key, value in extra_specs.iteritems():<br>
scope = key.split(':')<br>
if len(scope) > 1 and scope[0] == 'quota':<br>
if scope[1] in tune_items:<br>
setattr(info, scope[1], value)<br>
</div>+ if not getattr(info, 'disk_total_bytes_sec'):<br>
+ setattr(info, 'disk_total_bytes_sec',<br>
CONF.libvirt.images_default_bw_second)<br>
+ if not getattr(info, 'disk_total_iops_sec'):<br>
+ setattr(info, 'disk_total_iops_sec',<br>
CONF.libvirt.images_default_iops_second)<br>
return info<br>
<div><div class="h5"><br>
On Wed, Aug 27, 2014 at 4:32 PM, Tyler Wilson <<a href="mailto:kupo@linuxdigital.net">kupo@linuxdigital.net</a>> wrote:<br>
> Hey All,<br>
><br>
> Is it possible to setup a iops/bytesps limitation within nova using libvirt<br>
> methods? I've found the following links but cant get it to work with my<br>
> environment;<br>
><br>
> <a href="http://ceph.com/planet/openstack-ceph-rbd-and-qos/" target="_blank">http://ceph.com/planet/openstack-ceph-rbd-and-qos/</a><br>
> <a href="https://wiki.openstack.org/wiki/InstanceResourceQuota" target="_blank">https://wiki.openstack.org/wiki/InstanceResourceQuota</a><br>
><br>
> I see in the commit code that it specifically mentions file and block with<br>
> no network in the code;<br>
><br>
> tune_items = ['disk_read_bytes_sec', 'disk_read_iops_sec',<br>
> 'disk_write_bytes_sec', 'disk_write_iops_sec',<br>
> 'disk_total_bytes_sec', 'disk_total_iops_sec']<br>
> # Note(yaguang): Currently, the only tuning available is Block I/O<br>
> # throttling for qemu.<br>
> if self.source_type in ['file', 'block']:<br>
> for key, value in extra_specs.iteritems():<br>
> scope = key.split(':')<br>
> if len(scope) > 1 and scope[0] == 'quota':<br>
> if scope[1] in tune_items:<br>
> setattr(info, scope[1], value)<br>
> return info<br>
><br>
> Is it possible to limit or establish QoS rules for network storage in nova<br>
> currently or only in cinder? My source protocol is rbd, qemu driver and raw<br>
> disk type.<br>
><br>
</div></div>> _______________________________________________<br>
> Mailing list: <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><br>
> Post to : <a href="mailto:openstack@lists.openstack.org">openstack@lists.openstack.org</a><br>
> Unsubscribe : <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><br>
><br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
<br>
--<br>
Best Regards,<br>
<br>
Wheat<br>
<br>
_______________________________________________<br>
Mailing list: <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><br>
Post to : <a href="mailto:openstack@lists.openstack.org">openstack@lists.openstack.org</a><br>
Unsubscribe : <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><br>
</font></span></blockquote></div><br><br clear="all"><br>-- <br><div dir="ltr"><div>Tang Yaguang</div><div><br></div><br><div> </div></div>
</div>