Return-Path: X-Original-To: apmail-cloudstack-issues-archive@www.apache.org Delivered-To: apmail-cloudstack-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4507917C32 for ; Sun, 28 Sep 2014 22:42:34 +0000 (UTC) Received: (qmail 91632 invoked by uid 500); 28 Sep 2014 22:42:34 -0000 Delivered-To: apmail-cloudstack-issues-archive@cloudstack.apache.org Received: (qmail 91598 invoked by uid 500); 28 Sep 2014 22:42:34 -0000 Mailing-List: contact issues-help@cloudstack.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cloudstack.apache.org Delivered-To: mailing list issues@cloudstack.apache.org Received: (qmail 91589 invoked by uid 500); 28 Sep 2014 22:42:34 -0000 Delivered-To: apmail-incubator-cloudstack-issues@incubator.apache.org Received: (qmail 91586 invoked by uid 99); 28 Sep 2014 22:42:34 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 28 Sep 2014 22:42:34 +0000 Date: Sun, 28 Sep 2014 22:42:34 +0000 (UTC) From: "Wido den Hollander (JIRA)" To: cloudstack-issues@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Closed] (CLOUDSTACK-7641) Do not always ask libvirt to refresh storage pools MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CLOUDSTACK-7641?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Wido den Hollander closed CLOUDSTACK-7641. ------------------------------------------ Resolution: Fixed Merged into master > Do not always ask libvirt to refresh storage pools > -------------------------------------------------- > > Key: CLOUDSTACK-7641 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-7641 > Project: CloudStack > Issue Type: Improvement > Security Level: Public(Anyone can view this level - this is the default.) > Components: KVM > Affects Versions: Future > Reporter: Wido den Hollander > Assignee: Wido den Hollander > Priority: Minor > Labels: ceph, libvirt, rbd > Fix For: 4.5.0 > > > When getStoragePool() in the LibvirtStorageAdapter is called it asks libvirt for information regarding that storage pool. > In the process the StorageAdapter asks libvirt to 'refresh' the storage pool. > Refreshing a storage pool means that libvirt will scan the whole pool and get information about all the volumes which it then caches. > getStoragePool() is called for almost every storage operation in KVM and that causes delays. > On big (RBD) storage pools such a refresh can take up to 2 or 3 minutes. > The StatsCollector in the Management Server asks all the hosts about the storage pools as well, so we should only refresh the pool when the StatsCollector wants storage statistics. > This way we keep the information in libvirt up to date, but we also speed up storage tasks on KVM. -- This message was sent by Atlassian JIRA (v6.3.4#6332)