-
Notifications
You must be signed in to change notification settings - Fork 13
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
openfeature-provider-flagd unexpected behaviour #198
Comments
Hey @julianocosta89, we'll take a look. FYI @aepfli |
I tried to debug this. Thanks to this great explanation, i can reproduce this easily based on the steps. I will check on monday if I find some more ideas. things i tried:
for debugging i used: I will continue digging ;) first discovery, we are missing a dependency within our dependency definitions 😱 |
it is related with: Lines 126 to 133 in b0dac08
it hangs on the time.sleep - i am not sure if there is a nicer way to wait for this, or if we can actually remove this part of the code. Anyways this seems to be some sort of strange issue which correlates with the execution with locust. we should definitely inspect this, and see if this is something, which we might need to handle differently. //EDIT: |
Hey @aepfli, it looks like Locust uses |
i can try, but this means, we need to have a flexible way, or rely on a library which handles this in the future |
Yeah, it's just another interesting data point. It looks like Locust may add interesting runtime restrictions. Perhaps a simple http call to flagd would be better in this load gen script. |
even with gevent.sleep it is problematic. maybe the ofrep endpoint will be a better option for this tool to fetch feature flags. seems like the monkeypatching from gevents is not working either. But i learned about gevents, and this looks really interesting ;) |
summary of findings:
Further suggestions:The otel demo is great, and utilizes OpenFeature and FlagD heavily. We should utilize this, and generate usecases for different configurations and communication options. Currently we are only using "rpc" mode. soon we are using OFREP too. but we should also highlight other scenarios and describe them in the docs of otel:
We would never be able to run/maintain/create such a great demo, and we could also add benefit, as it clearly shows the observability highlights which you can introduce with openFeature. - i will extract this into an own issue ;) |
Hello all 👋🏽
I wish I had more details, but unfortunately I don't have any logs about it.
We recently got an issue in the OTel Demo with the user reporting that the Load-Generator wasn't producing load.
I went through all updates and all dependencies bump and got down to
openfeature-provider-flagd
as the culprit.There is something going on with the update from
0.1.5
to0.2.0
, BUT just for the load-generator.We have 2 Python services in the Demo:
Recommendation uses OTel auto-instrumentation and Load-Generator uses OTel instrumentation libraries.
Here are the steps to reproduce:
docker compose build load-generator
)make start
)Now, stop the Demo:
make stop
.0.2.0
.docker compose build load-generator
)make start
)NOTE that recommendation is on version
0.2.0
and working fine, so this seems to be some race condition or call order in the load-generator service.The text was updated successfully, but these errors were encountered: