6 Replies Latest reply on Aug 15, 2018 9:31 PM by LucD

    Why are vSphere tagging operations in 6.5 so slow ?

    dr_uk Lurker

      Hi,

      We make heavy use of the vSphere tagging functionality.  Before upgrading our environment from 5.5 to 6.5, tagging operations using PowerCLI were very fast - eg   New-TagAssignment.

      Since the 6.5 upgrade, tagging operations are painfully slow on all vCenters.  Assigning a single tag to single object takes ~10 seconds.

      Has anyone else experienced this and found a remedy ?

       

      Thanks.

        • 1. Re: Why are vSphere tagging operations in 6.5 so slow ?
          LucD Guru
          vExpertUser ModeratorsCommunity Warriors

          Which PowerCLI version are you using for manipulating the Tags?

          • 2. Re: Why are vSphere tagging operations in 6.5 so slow ?
            dr_uk Lurker

            Hi Luc - I am using   VMware PowerCLI 6.5 Release 1 build 4624819

            • 3. Re: Why are vSphere tagging operations in 6.5 so slow ?
              LucD Guru
              Community WarriorsUser ModeratorsvExpert

              I would strongly suggest to go for the latest (10.1.0) release, tag cmdlets have seriously improved.
              And since 10.0.0, the tag cmdlets work with the REST API

              • 4. Re: Why are vSphere tagging operations in 6.5 so slow ?
                vpaw Novice

                I'm seeing similar issues no matter what language or method we use to access tags in our 6.5 vCenter.  It's terribly slow via Powershell (10.1.0), Javascript from vRO, or even right in the web UI.  I don't have these issues when I query a 5.5 vCenter.  Is anyone else experiencing this?

                • 5. Re: Why are vSphere tagging operations in 6.5 so slow ?
                  BenConrad Master

                  Yes, even getting a tag is so slow:

                   C:\> get-powercliversion

                   

                  PowerCLI Version

                  ----------------

                     VMware PowerCLI 6.5 Release 1 build 4624819

                  ---------------

                  Component Versions

                  ---------------

                     VMware Cis Core PowerCLI Component 6.5 build 4624453

                     VMware VimAutomation Core PowerCLI Component 6.5 build 4624450

                   

                   C:\> measure-command { $vmHostObj | get-datastore -tag 'Internal Production' -verbose:$false -server $viserver }

                   

                  TotalSeconds      : 36.188923

                   C:\> $vmHostObj | get-datastore | measure-object

                  Count    : 34

                   

                   C:\> get-powercliversion
                   
                  PowerCLI Version
                  ----------------
                     VMware PowerCLI 6.5 Release 1 build 4624819
                  ---------------
                  Component Versions
                  ---------------
                     VMware Cis Core PowerCLI Component 6.5 build 4624453
                     VMware VimAutomation Core PowerCLI Component 6.5 build 4624450
                   
                   
                   
                   C:\> measure-command { $vmHostObj | get-datastore -tag 'Internal Production' -verbose:$false -server $viserver }
                   
                   
                  Days              : 0
                  Hours             : 0
                  Minutes           : 0
                  Seconds           : 36
                  Milliseconds      : 188
                  Ticks             : 361889230
                  TotalDays         : 0.000418853275462963
                  TotalHours        : 0.0100524786111111
                  TotalMinutes      : 0.603148716666667
                  TotalSeconds      : 36.188923
                  TotalMilliseconds : 36188.923
                   
                   
                   
                   C:\> $vmHostObj | get-datastore | measure-object
                   
                   
                  Count    : 34
                  Average  :
                  Sum      :
                  Maximum  :
                  Minimum  :
                  Property :
                  • 6. Re: Why are vSphere tagging operations in 6.5 so slow ?
                    LucD Guru
                    User ModeratorsvExpertCommunity Warriors

                    I would suggest to upgrade your PowerCLI version.

                    More recent versions of PowerCLI use the REST API to interact with tags, that should be faster.

                     

                    As an alternative, you can have a look at my rCisTag module, which also uses the REST API.