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
Issues with running go install #44
Comments
I debugged all the error messages when running both the client and server's main.go. Here are the code changes. |
For client/main.go:
|
For server/main.go
|
For hellobender/main.go
outputs after running twice: |
@davlucal Hey, thanks for the interest in bender. This library is in dire need of a massive overhaul, but I haven't found the time to do it (particularly because most of the changes would be breaking, and Go is only recently ready for that kind of thing). If you want to use bender, I highly recommend the more streamlined version available here: https://github.com/cgordon/bender Ignore the README for that repo, as it is out of date. The bender.go and intervals.go are significantly streamlined, and perform quite a lot better than the "official" version. For more details, see the comments here: Thanks. |
Hi @cgordon, thanks for the reply. Does your bender thrift release work for go v0.13.0? |
@davlucal I am not sure, and have not tried recently, sorry. |
Is it possible that you meant Go v1.13? Version 0.13.0 is a pre-v1 release that is pretty ancient now. |
Sorry my bad, what I had meant to say was Thrift version 0.13.0 |
No worries, that should have been obvious to me :) I have not run the 0.13 or 0.14 versions of Thrift, so I don't have any experience with them. The code to integrate Thrift with Bender is pretty simple, so it may not take much to do so, if they have changed their APIs. |
Have one other question, should the values for the interval generator and synthetic requests be the same? |
The interval generator is used to determine how often requests are sent by
the load tester. The synthetic request channel is used to fetch the next
request to be sent. Unless you are sending numbers as your requests, they
cannot be the same.
…On Mon, Jun 7, 2021 at 5:03 PM davlucal ***@***.***> wrote:
Have one other question, should the values for the interval generator and
synthetic requests be the same?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#44 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AABG6F6GHJFSL243M2D4MXDTRVM5DANCNFSM456HB2MA>
.
|
Apologies for the slow reply. The total number of requests sent by the load
tester is controlled by the requests channel (when that channel is closed,
the load tester exits). You are correct about the exponential interval
generator: the parameter is the number of requests per second, on average.
That last bit is important: the exponential generator simulates a "Poisson
process", so on average over a long period of time the request rate will
match the parameter, but for any given second it will be more or less than
that.
…On Tue, Jun 8, 2021 at 10:45 PM davlucal ***@***.***> wrote:
Sry, I meant as in the parameters.
[image: Screen Shot 2021-06-09 at 12 43 09 AM]
<https://user-images.githubusercontent.com/59355541/121299926-b8373f00-c8bb-11eb-9273-01c4aa71e40a.png>
My understanding is that the ExponentialIntervalGenerator function takes
in the desired QPS(for this, it would be testing for a desired 300 QPS) and
the total # of requests sent would be 8000(just an arbitrary large # of
requests).
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#44 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AABG6F6MI3BI7W4QSLUGTITTR35WRANCNFSM456HB2MA>
.
|
Also, when running " thrift --out src/hellothrift --gen go:package_prefix=src/hellothrift src/hellothrift/hello.thrift" , i do not get the exact 3 files in the hello directory.
Any ideas?
The text was updated successfully, but these errors were encountered: