-
Notifications
You must be signed in to change notification settings - Fork 8
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
Inconsistent display of stdout #13
Comments
I've noticed this as well. Root of this problem is in the fact that Sometimes that timing apparently doesn't line up correctly, and I don't really know what causes that at the moment. |
That root behavior hasn't changed in 0.4.1. Do you spin up a now node container for every request sent? If so would capturing the output for a little while longer help? If it's the same node for all requests is there a chance that my output will step on someone else's if we submit requests at the same time? |
It uses the same node (actually one of 5 load balanced nodes at the moment) as you already realised in #14 I believe. Spinning up a new node would be way too slow, since it has a startup time of anywhere between 15-30 seconds, plus nodes currently use quite a lot of compute resources, so for the amount of users we currently have that isn't quite an option. Capturing the output for slightly longer might already resolve part of the problem indeed, and I hope that as the RNode versions progress there might be more consistency in the moment and way that |
What about spinning up a new node every night or every hour? And display the node start time. |
Or adding a "restart node" button? (with a limitation that it can't be used again for 5 minutes) |
True, that would work, or even after X requests. With the load balancer in place, we could even take that node temporarily out of rotation for use on rchain.cloud. Currently really busy, but will try to implement something like this in the next few weeks. Thanks for the input @dckc and @JoshOrndorff! |
What if you capture and display both stdout and stderr. Users who really want their output clearly can send it to stderr so it doesn't conflict with the other stuff coming on stdout. Not a bad workaround in the meantime. |
I think this is only a display problem. In a later stage we might decide to indeed capture Since this issue was opened, however, we've made quite some improvements, and while still not 100% consistent, this seems to be less of a problem then it was before. Feel free to close this issue once it's at a point where you consider it acceptable. |
@8lcarte the thing you're flagging is slightly different from @JoshOrndorff original issue. Your Rholang code should look like this to work as you expect it to:
In my (simplified) version of your example, |
The "output" section does not consistently display the names sent to
stdout
andstdoutAck
.If I load the site and click run I usually see the expected output
But sometimes I get none of the output, or only some of it. Running the example code three to five times will usually produce at least one incorrect output.
See the attached screenshot.

The text was updated successfully, but these errors were encountered: