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

Add a blockchain_enabled flag #325

Open
arturgontijo opened this issue Aug 19, 2019 · 0 comments
Open

Add a blockchain_enabled flag #325

arturgontijo opened this issue Aug 19, 2019 · 0 comments

Comments

@arturgontijo
Copy link
Contributor

We should add a flag to these tools to make users able to test their services without using a blockchain.

If I call my service that has the Daemon's flag "blockchain_enabled": false, CLI spends about 11 seconds to get the response.
If I call it directly, using the gRPC module, it spends about 4 seconds.

Another important issue is that I've figured out that if I spawn a bunch of threads that call snet cliente call ... at the same time, just a few (like 3/10) got a response. All the others 7/10 will output this ERROR:

...
requests.exceptions.HTTPError: 429 Client Error: Too Many Requests for url: https://ropsten.infura.io/

So I think that this huge delay and error are coming from interaction with the Blockchain (for some validations).
So this is "blocking" a concise load test, that should involve the snet-cli and snetd without blockchain.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant