Data Infrastructure Management Software Discussions

Highlighted

Re: Slow workflow execution

Hi sinhaa,

The modification doesn't help very much, seems better, but still more than minute.

15:29:52.405 INFO  [Remove volume] ### Command 'Remove volume' ###

15:31:08.394 INFO  [Remove volume] Executing command: ./Remove_volume3469935687972074943.ps1 -Array '10.139.32.11' -VolumeName 'test'

Regards,

francois

Highlighted

Re: Slow workflow execution

Francois,

         Does loading of powershell itself takes long time in your server?

Do the following:

1. Try to open Powershell CLI by typing command "powershell" in you command prompt. Does it take a long time?

2. Once Powershell is open, try this command "Import-Module <WFA>/PoSH/profile.ps1 . Does it take long to complete?

3. Type cmd : systeminfo and send the output.

sinhaa

If this post resolved your issue, help others by selecting ACCEPT AS SOLUTION or adding a KUDO.

Highlighted

Re: Slow workflow execution

Hi sinhaa,

1. powershel prompt was loaded quickly < 5 seconds

2. Multiple loads of  profile.ps1 arround ~1:30 minutes

systeminfo:

  Host Name:                 GDC01249

OS Name:                   Microsoft Windows Server 2008 R2 Datacenter

OS Version:                6.1.7601 Service Pack 1 Build 7601

OS Manufacturer:           Microsoft Corporation

OS Configuration:          Member Server

OS Build Type:             Multiprocessor Free

Registered Owner:          SDS

Registered Organization:   The Swatch Group Ltd

Product ID:                00496-001-0001283-84686

Original Install Date:     9/11/2013, 5:27:54 PM

System Boot Time:          1/21/2014, 5:12:31 PM

System Manufacturer:       VMware, Inc.

System Model:              VMware Virtual Platform

System Type:               x64-based PC

Processor(s):              1 Processor(s) Installed.

                           [01]: Intel64 Family 6 Model 44 Stepping 2 GenuineIntel ~2666 Mhz

BIOS Version:              Phoenix Technologies LTD 6.00, 7/30/2013

Windows Directory:         C:\Windows

System Directory:          C:\Windows\system32

Boot Device:               \Device\HarddiskVolume1

System Locale:             en-us;English (United States)

Input Locale:              en-us;English (United States)

Time Zone:                 (UTC+01:00) Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna

Total Physical Memory:     2,047 MB

Available Physical Memory: 74 MB

Virtual Memory: Max Size:  6,143 MB

Virtual Memory: Available: 2,850 MB

Virtual Memory: In Use:    3,293 MB

Page File Location(s):     P:\pagefile.sys

Domain:                    swatchgroup.net

Logon Server:              \\GDC00945

Hotfix(s):                 175 Hotfix(s) Installed.

                           [01]: KB2592687

                           [02]: KB2425227

.

.

Network Card(s):           1 NIC(s) Installed.

                           [01]: vmxnet3 Ethernet Adapter

                                 Connection Name: Local Area Connection

                                 DHCP Enabled:    No

                                 IP address(es)

                                 [01]: 10.140.16.45

francois

Highlighted

Re: Slow workflow execution

Looks like this loading of profile.ps1 is taking all the time and hence the delays. Its mainly your environment issue, but I don't exactly know what it is and why. Can you try the following

1. Lauch powershell and  Import-Module <WFA>\PoSH\Modules\WFA

   Import-Module <WFA>\PoSH\Modules\DataONTAP

How long do they take? I'm just thinking is the profile.ps1 loading slow due to relative path that it has in its code. Normally its not a problem, but could be.

Abhishek Sinha

If this post resolved your issue, help others by selecting ACCEPT AS SOLUTION or adding a KUDO.

Highlighted

Re: Slow workflow execution

Aparker is working with me onsite.  We tried the fix but that didn't help. 

The import of the modules is quick.

Here is the systeminfo from aparker's VM:

Host Name:                

OS Name:                   Microsoftr Windows Serverr 2008 Enterprise

OS Version:                6.0.6002 Service Pack 2 Build 6002

OS Manufacturer:           Microsoft Corporation

OS Configuration:          Standalone Server

OS Build Type:             Multiprocessor Free

Registered Owner:          Windows User

Registered Organization:

Product ID:                55041-381-2247303-76321

Original Install Date:     1/27/2014, 3:38:26 PM

System Boot Time:          2/19/2014, 8:14:06 AM

System Manufacturer:       VMware, Inc.

System Model:              VMware Virtual Platform

System Type:               x64-based PC

Processor(s):              2 Processor(s) Installed.

                           [01]: Intel64 Family 6 Model 29 Stepping 1 GenuineIntel ~2400 Mhz

                           [02]: Intel64 Family 6 Model 29 Stepping 1 GenuineIntel ~2400 Mhz

BIOS Version:              Phoenix Technologies LTD 6.00, 1/15/2013

Windows Directory:         C:\Windows

System Directory:          C:\Windows\system32

Boot Device:               \Device\HarddiskVolume1

System Locale:             en-us;English (United States)

Input Locale:              en-us;English (United States)

Time Zone:                 (GMT-08:00) Pacific Time (US & Canada)

Total Physical Memory:     8,191 MB

Available Physical Memory: 5,887 MB

Page File: Max Size:       16,429 MB

Page File: Available:      13,908 MB

Page File: In Use:         2,521 MB

Page File Location(s):     C:\pagefile.sys

Domain:                    WORKGROUP

Logon Server:             

Hotfix(s):                 2 Hotfix(s) Installed.

                           [01]: KB955430

                           [02]: KB968930

Network Card(s):           1 NIC(s) Installed.

                           [01]: Intel(R) PRO/1000 MT Network Connection

                                 Connection Name: Local Area Connection

                                 DHCP Enabled:    No

                                 IP address(es)

Highlighted

Re: Slow workflow execution

Here the test from wfa server, :

PS C:\Users\itsfe> Measure-Command {import-module 'C:\Program Files\NetApp\WFA\PoSH\Modules\WFA'}

TotalSeconds      : 0.0463199

     

PS C:\Users\itsfe> Measure-Command {import-module 'C:\Program Files\NetApp\WFA\PoSH\Modules\DataONTAP'}

TotalSeconds      : 74.4140401

Note in my personnal computer I use for developement  DataONTAP module is loaded very quickly

PS C:\Users\eggerf> Measure-Command {import-module 'C:\Windows\System32\WindowsPowerShell\v1.0\Modules\DataONTAP'}

TotalSeconds      : 0.580509

Highlighted

Re: Slow workflow execution

To follow-up on this, we may be seeing some different issues.    What we are seeing at our customer (a major US bank) is that it takes about 5 MINUTES for each WFA command block to start execution.      The server being used is pretty much cut off from the outside world, so I thought it may have had something to do with checking for certificate revocation.     But we tried disabling that by various methods, including as shown in this article:  http://velemental.com/2012/01/01/optimizing-the-execution-of-powershell-and-powercli/

Nothing made a difference.   If we open a powershell window on the server, it seems to open in a normal amount of time.    If we load the ONTAP module, it loads normally and quickly.   So we don't see the issue by using the powershell command window.

Our onsite guy at the customer is going to look into getting the server more outside access or adding it to the domain (which is currently isn't on).

-Alan Parker

Highlighted

Re: Slow workflow execution

Francois, Parker,

     I don't know what else can I suggest you to try. I just can't think of anything as of now.

Maybe you can try to upgrade the WFA server to .NET 4.5 version and if possible to Powershell 3.0 and see if it helps.

-sinhaa

If this post resolved your issue, help others by selecting ACCEPT AS SOLUTION or adding a KUDO.

Highlighted

Re: Slow workflow execution

Upgraded to both...still doesn't help.

Highlighted

Re: Slow workflow execution

Hi sinhaa,

Do you know if some kind of certificates check is used for ONTAP module?

I traced communication during load of module, and process tried to access 50.63.243.228 port 80.

3573          184.174793000          10.140.16.45          50.63.243.228          TCP          66          52724 > http [SYN] Seq=0 Win=8192 Len=0 MSS=1460 WS=256 SACK_PERM=1

Following this fact,  I configured proxy in Server.

11:18:14.316 INFO  [Remove volume] ### Command 'Remove volume' ###

11:18:36.499 INFO  [Remove volume] Executing command: ./Remove_volume6766461420913838121.ps1 -Array '10.139.32.11' -VolumeName 'test'

11:18:36.655 INFO  [Remove volume] Get-WfaCredentials -Host 10.139.32.11

11:18:37.014 INFO  [Remove volume] Credentials successfully provided for '10.139.32.11'

11:18:37.139 INFO  [Remove volume] Connect-NaController (with credentials) -Name 10.139.32.11 -Timeout 60000 -ErrorAction Stop

11:18:42.536 INFO  [Remove volume] Connected to controller

11:18:44.861 INFO  [Remove volume] Removing all volume quotas, volume name: test

Workflow speed is miraculous good now

Highlighted

Re: Slow workflow execution

How much of a delay did you have before?

-Alan

Highlighted

Re: Slow workflow execution

Upgrade to 2008R2 earlier today and our 5 minute wait seemed to have  disappeared.  Not sure what fixed because the upgrade kept all the  settings and it wasn't a clean install.

Highlighted

Re: Slow workflow execution

2 minutes

Francois

Highlighted

Re: Slow workflow execution

I'm glad it has  finally worked for both of you.

If this post resolved your issue, help others by selecting ACCEPT AS SOLUTION or adding a KUDO.

Highlighted

Re: Slow workflow execution

sinhaa,

The idea was not to configure proxy settings in WFA server, can you tell me more about this unwanted traffic.

francois

Highlighted

Re: Slow workflow execution

Francois,

         Honestly, I don't know the answer right now. I'll post it once I find out.

If this post resolved your issue, help others by selecting ACCEPT AS SOLUTION or adding a KUDO.

Check out the KB!
Knowledge Base
All Community Forums