IgnitionModuleDevelopmentCommunity / IgnitionNode-RED

Adds support for Node-RED
Apache License 2.0
31 stars 7 forks source link

ignition edge lags when using the ignition Node-RED module #25

Closed Grs0918 closed 2 years ago

Grs0918 commented 2 years ago

Hi when I am using ignition Node-RED module , earlier I was able to read all the tags from gateway but when the number of tags in ignition edge is increased the gateway take forever to load and I am unable to read any tags since I am getting connection timeout or Socket hang up error but when I remove ignition Node-red modl the gateway works fine can anybody help me with this

iatraviscox commented 2 years ago

Can you provide a few more details? Which nodes are you using exactly? How many tags are you trying to read?

Grs0918 commented 2 years ago

Hi I am using node-red -contrib- ignition-nodes version 1.5.9 and using the ignition tag read node to read the data from the gateway and I am trying to read around 25,000 tags and more in the future ignition version - ignition-edge 8.1.16 Linux let me know any other details you need Thank you

On Mon, 6 Jun 2022, 9:11 pm Travis Cox, @.***> wrote:

Can you provide a few more details? Which nodes are you using exactly? How many tags are you trying to read?

— Reply to this email directly, view it on GitHub https://github.com/IgnitionModuleDevelopmentCommunity/IgnitionNode-RED/issues/25#issuecomment-1147594179, or unsubscribe https://github.com/notifications/unsubscribe-auth/AZGOLIOWG3T5V7ZION5SVCLVNYL4DANCNFSM5X6GUOQQ . You are receiving this because you authored the thread.Message ID: <IgnitionModuleDevelopmentCommunity/IgnitionNode-RED/issues/25/1147594179@ github.com>

iatraviscox commented 2 years ago

Can you try using the web socket read node instead? The standard read node does polled reads when you call it. The web socket node will subscribe to the tags and only send over updated values to the flow. Much more efficient method. I don't think it will hang Ignition.

Grs0918 commented 2 years ago

Hi I will Try That, is there a limit on how many tags it can read at once or the number of connections can be created so that the performance of the edge gateway won't be affected Thank You

On Tue, Jun 7, 2022 at 11:56 PM Travis Cox @.***> wrote:

Can you try using the web socket read node instead? The standard read node does polled reads when you call it. The web socket node will subscribe to the tags and only send over updated values to the flow. Much more efficient method. I don't think it will hang Ignition.

— Reply to this email directly, view it on GitHub https://github.com/IgnitionModuleDevelopmentCommunity/IgnitionNode-RED/issues/25#issuecomment-1149021745, or unsubscribe https://github.com/notifications/unsubscribe-auth/AZGOLIJQGMGRY4JM34SITR3VN6H55ANCNFSM5X6GUOQQ . You are receiving this because you authored the thread.Message ID: <IgnitionModuleDevelopmentCommunity/IgnitionNode-RED/issues/25/1149021745@ github.com>

--

Thanks & Regards,

Ganesh RS | Trainee Engineer

Axcend Automation & Software Solutions Pvt Ltd

82/1, Krishna Towers, Richmond Road, Bangalore – 560025 | India

Cell: +91-7975807339

@. @.> | www.axcend.com

iatraviscox commented 2 years ago

The read node sends down a set of tags that Ignition will read. It will definitely be more efficient to read in bulk vs individual. There is not a limit but the more you send the more work Ignition has to do. However, the web socket node simply subscribes (like an Ignition client) and receives updates when values change. Much different approach.

Grs0918 commented 2 years ago

Hi So I have tried ws tag read node it seems to be working without hanging up edge gateway, Also does the API token created in edge for node-red expires over a period of time?

On Wed, 8 Jun 2022, 12:15 am Travis Cox, @.***> wrote:

The read node sends down a set of tags that Ignition will read. It will definitely be more efficient to read in bulk vs individual. There is not a limit but the more you send the more work Ignition has to do. However, the web socket node simply subscribes (like an Ignition client) and receives updates when values change. Much different approach.

— Reply to this email directly, view it on GitHub https://github.com/IgnitionModuleDevelopmentCommunity/IgnitionNode-RED/issues/25#issuecomment-1149038995, or unsubscribe https://github.com/notifications/unsubscribe-auth/AZGOLINT4366JOXMOQ4WC3DVN6KE3ANCNFSM5X6GUOQQ . You are receiving this because you authored the thread.Message ID: <IgnitionModuleDevelopmentCommunity/IgnitionNode-RED/issues/25/1149038995@ github.com>

iatraviscox commented 2 years ago

That is great to hear. No, the token doesn't expire.