New option in HttpRetriver datasource [Scada-LTS]
New option in HttpRetriver datasource
Issue: #715
The task involved:
Adding the option to disable the HttpRetriver when the remote server from which we retrieve data is not available.
We need this functionality because a datasource that can not connect to the server repeatedly (downloading data after http) creates a lot of events and unnecessary logs into the system.
How options stop in HttpRetriver works.
Examples:
The program attempts to connect and waits up to 30 seconds for the server to respond; when not connected, it turns off the data source, because the option stop is true.
URL: http://localhost:8080/greeting Timeout: 30 [s] Retries: 0 Stop: trueRemote server is available but not responding:
Remote server is not available:
The program attempts to connect and waits up to 30 seconds for the server to respond;
and retries 3 times, when not connected, it turns off the data source, because the option stop is true.URL: “http://localhost:8080/greeting” Timeout: 30 (s) Retries: 3 Stop: trueWARNING: When the program is trying to connect, so for approximately 90 sec. (3*30”), datasource cannot be switched off or updated.
Resolve: To prevent this situation, set the timeout as little possible.
Remote server is available but not responding:
Remote server is not available:
Changes have been introduced to the released version 0.0.9.7
https://github.com/SCADA-LTS/Scada-LTS/releases
Pull request:
Leave New option in HttpRetriver datasource [Scada-LTS] to:
Read more #utopian-io posts
Best Posts From grzesiek
We have not curated any of grzesiekb's posts yet. But you can encourage our curation team to review posts by visiting them regularly and by referring other readers. Because we give priority to frequently read content.
More Posts From grzesiek
- Bash script - challenge [part 3]. Authentication test (token) using the curl program.
- Bash script challenge [part 2]. Authentication test (session) using the curl program.
- Bash script - challenge. Writing API tests using the curl program
- Adding description for datasource state [develop Scada-LTS]
- New option in HttpRetriver datasource [Scada-LTS]
- New Export/Import pointHierarchy. [ScadaLTS]
- [Scada-LTS] The possibility to add image sets without requiring a reboot
- [Scada-LTS] The possibility to add image sets without a restart
- New Project “shop-at-everything”.
- A successful attempt on adding switch language option in the angular app and integrating it with crowdin.com