Comments (10)
Thanks a lot for reporting this @lachie83, much appreciated!
A quick look at the responsible code segment suggests that I'm overloading the API server with requests, hence the HTTP 429 response code and due to that, rather than sending JSON back the API server sends some error message in plain-text that the library tries to decode because it thinks it's actually JSON.
This is not super surprising since I don't have any rate limiting in the code creation part. My hunch (or working hypothesis, if you prefer): adding some short, random delays in the ms
range after go pr.launch()
should address this issue.
from kboom.
Yeah, handling 429 from API server, in addition, wouldn't hurt. Nevertheless, not hammering the API server like a berserker would prolly not be a bad thing to do, in the first place ;)
from kboom.
Or, even better, three scale testing strategies: berserker
(the current implementation), good-citizen
(rate limiting), and graceful
(handling 429
s). WDYT?
from kboom.
I agree but it's probably quickest to implement the good-citizen
based on your original proposal and ship it.
from kboom.
@lachie83 are you working on this? We also see this issue in our test setup (and would like to fix it).
from kboom.
I can take a look next week :)
from kboom.
This sounds like a reasonable approach. Just out of interest would it be better to make the go routine handle a 429 from api server?
from kboom.
Thanks for the reminder, will try to put a fix together for this over the weekend
from kboom.
@johscheuer given your overall contributions, I mean, if you wanna fix that as well … :)
from kboom.
OK, super @johscheuer … let's see who's faster, LOL ;)
from kboom.
Related Issues (9)
- serviceaccount kboom-sa and ImagePullBackOff HOT 7
- Set up build automation
- Installation & Packaging HOT 1
- [BUG] Running on OpenShift gives HOT 1
- scale target over time HOT 2
- Option to include PVC creation and volumeMounts in the Pod
- custom image instead of busybox HOT 2
- Use Pod watch instead of polling
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kboom.