st2 icon indicating copy to clipboard operation
st2 copied to clipboard

with item is taking more time in stackstorm and workflow is getting failed if the size is more than 500

Open itsmano1993 opened this issue 5 years ago • 4 comments

SUMMARY

When we use with items in stackstorm its taking more time. And the workflow is getting failed if the list contains more than 500 elements.

STACKSTORM VERSION

Paste the output of st2 3.4dev:

OS, environment, install method

Deployed st2 in HA in amazon Kubernetes

Steps to reproduce the problem

  1. Create a workflow with two actions. a. one read data from database b. iterate the values and print
  2. for list size 100 it took 3 mins, for 200 it took 15 mins. For 500 the workflow got failed This is the error message coming { ""type"": ""error"", ""message"": ""Execution failed. See result for details."", ""task_id"": ""task2"" }, { ""type"": ""error"", ""message"": ""ToozConnectionError: Timeout reading from socket"", ""task_id"": ""task2"", ""route"": 0 } ]

Thanks! Mano Prakadeesh

itsmano1993 avatar May 27 '21 06:05 itsmano1993

Not sure if you came across this, but thought it would help. I really loved the details provided in the link below: https://www.cypherint.com/post/stackstorm-faster-with-items

arms11 avatar May 27 '21 19:05 arms11

Hi @arms11 yeah, I saw this doc.

Getting errors in this piece of code. it says st2baseurl is not available. might bcoz of config coming as None. Do we need to replace this with IP hardcoded?

self.client = Client(base_url=config["st2baseurl"], auth_url=config["st2authurl"], api_key=self.api_key, api_url=config["st2apiurl"] )

Thanks Mano

itsmano1993 avatar May 28 '21 12:05 itsmano1993

You need to run the pack configuration.

guzzijones avatar Jun 24 '21 13:06 guzzijones

The user needs to run the st2 pack config

guzzijones avatar Sep 07 '21 20:09 guzzijones