Tagging is very slow and cpu consuming


#1

In manageiq (docker Version darga-4.1.20161129155418_ ) when applying business tags on esxi hosts, clusters and providers (vmware), manageiq take a very long time to do it:

  • lots of logs:
    [----] I, [2016-12-01T11:38:48.815364 #640:2aadb07cb978] INFO – : Following Relationship [miqaedb:/System/Event/MiqEvent/POLICY/assigned_company_tag_parent_host#create]
    [----] I, [2016-12-01T11:38:48.868463 #670:2aadb07cb978] INFO – : Following Relationship [miqaedb:/System/Event/MiqEvent/POLICY/assigned_company_tag_parent_host#create]

Vig Cpu use :
640 root 30 10 600424 416896 7348 R 54.8 2.5 21:10.71 MIQ: MiqGenericWorker id: 2, queue: generic
670 root 21 1 487868 298804 5904 S 47.2 1.8 17:15.85 MIQ: MiqPriorityWorker id: 5, queue: generic
649 root 30 10 608364 428240 10032 S 41.2 2.6 21:07.13 MIQ: MiqGenericWorker id: 3, queue: generic
659 root 21 1 518056 326608 6544 S 24.9 2.0 17:16.31 MIQ: MiqPriorityWorker id: 4, queue: generic

It can take 15 minutes to do it, although we have only 5 hosts, 1 cluster, 1 provider…

Is this normal?

And all others operations (requests) are suspended until it has finished.


#2

@gquentin It can take a long time, but I agree that 15 minutes seems excessive. Can you please open an issue on GitHub? https://github.com/ManageIQ/manageiq/issues/new