-
Notifications
You must be signed in to change notification settings - Fork 316
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
jetcd use only one event-loop thread #1297
Comments
This is the code source of the problem I found. When the jetcd creates a managedChannel for the first time, the vertx related methods are used.(io.etcd.jetcd.impl.ClientConnectionManager#getChannel)
The implementation of the build method is as follows(io.vertx.grpc.VertxChannelBuilder#build):
This code( I haven't figured out why vertx is doing this yet. But I wonder why jetcd switched from grpc to vertx? Or if there's something we're using incorrectly? |
This had to do with maintenance, as I'm almost the only contributor left, I had to make some decision and switch to vert.x helped me to reduce some boilerplate and maintenance troubles.
Any help to figure it out would be really appreciated. |
Is this issu solved? I have the same problem |
@barryzhang-cloud no it is not, any help would be very appreciated |
I suspect that there is a problem with the way jetcd integrates vert.x-grpc. So I asked for help in the vert.x user group, but no response. So I don't have any other ideas. |
Jetcd-core-0.7. X changes grpc to vertx, which results in the change from multi-thread to single-thread operation such as add-delete read-write monitor which involves jetcd, it is easy to cause a single-thread exception jam, resulting in jetcd is not available.Will you fix shi problem?
reproduce:
|
Versions
Describe the bug
There is only one event-loop thread, which may cause performance and other problems.
To Reproduce
Code:
Result:
Similar problem here
Expected behavior
The number of event-loop threads should be the number of CPU cores * 2.
Additional context
The text was updated successfully, but these errors were encountered: