-
Notifications
You must be signed in to change notification settings - Fork 130
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
Limits With Subscriptions Server? #97
Comments
At the moment there are constants defined in the server\src\lib.rs here:
This is why the settings are revised. You could fork the source to modify them to another value. I do expose some server settings through a ServerLimits section of the configuration / builder and queue size can be overridden but not the min sampling intervals, so I may expose these too. Note I haven't tried with super fast polling rates so there might be latencies in there. |
Thanks a lot for the hint! I can see minimum sampling interval and publishing interval (ms) being adjustable in the configuration:
On the other hand, the values returned to the client (at least the sampling interval) are set using the constants in lib.rs (via the sanitize method).
When I go down with the settings, for example:
I can see that values are coming more or less in sequence (with some missing in between), but the # of values coming are very different (I'd expect to receive 10 values per publish in average, but it's 80, 19, 38, 142, ...). Also I receive frequently a message on the server side: "Too many publish requests 2 for capacity 2". Actually, I'd like to go down with the polling interval even further (we're developing for the machine industry and I think a Rust based opcua framework should be capable of being on par with C/C++? So I guess it's about optimization here... I'll experiment here, but maybe you have some idea what to improve, or maybe I'm simply wrong... |
Hi, any ideas? |
Yes I think the sanitize should use the configured values. Let me check how complex it is to change that and if its easy I'll do so. |
I've checked in changes to ensure the sanitize functions use the config settings |
Hey there :) |
When I try to set the queue size or sample interval, it seems the opcua-server is sending much lower revised values (queue size becomes 10, if I try to set 100).
The background is that I'm trying to sucbscribe to values that change every 10ms (actually I would like to go down to 1ms).
Is that supposed to work? Why is the sever limiting the queue size to 10?
I can see that in subscription.rs:
Instead of using the values from item_to_create
The text was updated successfully, but these errors were encountered: