Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Persistent/Reliable sessions #2363

Open
Haeavar opened this issue Nov 5, 2024 · 0 comments
Open

Persistent/Reliable sessions #2363

Haeavar opened this issue Nov 5, 2024 · 0 comments
Labels
feature request New feature or request
Milestone

Comments

@Haeavar
Copy link
Contributor

Haeavar commented Nov 5, 2024

We would like to use the OpcPublisher for reliable OPC UA telemetry transfer. Currently, if the OpcPublisher is restarted (due to update/maintenance or others) the session and subscriptions are gone and the OpcPublisher reconnects to the OPC UA server with a new session. This (might) result in lost OPC UA data - for all data occurred between the disconnect and new connect (with the same subscriptions).

What we need is a call to TransferSubscriptions on OpcPublisher start as well. This would reactivated the old session (as long as the OPC UA server has the sessions as well) and all queued data would be available.

Of course, this could only work if in the meantime the subscriptions has not changed and so on.

Describe the solution you'd like

  • A commandline option PersistentSessions (default: false) which activates the persistance of sessions
  • The session information should be stored in the file system (a commandline option for the PersistentSessionsPath)
  • On OpcPublisher start the session information should be loaded (if available and active)
  • Create the session with these information and call the TransferSubscriptions
  • If possible, apply the pn.json if its changed in the meantime
  • For any error, create a new session
@marcschier marcschier added this to the 2.9.13 milestone Nov 5, 2024
@marcschier marcschier added the feature request New feature or request label Nov 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants