-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Two problems in Ocelot Service Discovery using Consul #1304
Comments
I can confirm. I have Ocelot configured with Consul as service discovery. I have one service configured for load-balancing with When I start the service it always gives 404 Note - this issue SOMETIMES disappears after a few minutes. It is only on version 16.0.1. I was running 14.1.0 until now - but had to upgrade because load balancing was not working at all. My consul config: EDIT: looks like general problem with Consul service discovery, because even when I remove the load balancing it is the same result... |
Same problem here. When I hit an API for the first time, always returns 404 |
@cdyhj @stann1 @matteoPhre |
…ements and fix errors (#1670) * fixing some issues in poll consul: - Timer is not thread safe, avoiding usage of it - No Ressources are returned for first call - Using a providers pool, instead of creating a new provider instance * line endings * adding some test cases * Using a lock instead of SemaphoreSlim * Improve code readability * CA2211: Non-constant fields should not be visible * Use IOcelotLogger to remove warnings & messages of static code analysis (aka IDE0052) * Fix errors with unit tests discovery. Remove legacy life hacks of discovering tests on .NET Core * Update unit tests * Also refactoring the kubernetes provider factory (like consul and eureka) * shorten references... * const before... * Some minor fixes, using Equals Ordinal ignore case and a string constant for provider type definition instead of string litterals. Fixing usings. * waiting a bit longer then? * @RaynaldM code review * renaming PollKubernetes to PollKube * ... odd... * ... very odd, we have an issue with configuration update duration... * IDE0002: Name can be simplified * All tests passing locally, hopefully it works online * just a bit of cleanup * Some missing braces and commas * Update servicediscovery.rst: Review and update "Consul" section --------- Co-authored-by: Guillaume Gnaegi <[email protected]> Co-authored-by: raman-m <[email protected]>
Expected Behavior / New Feature
Ocelot uses Consul for service discovery.
Actual Behavior / Motivation for New Feature
Ocelot uses Consul for service discovery.
Steps to Reproduce the Problem
Ocelot.Provider.Consul
Version 16.0.1Modification
Ocelot.Provider.Consul
The
BuildService
method of the Consul class is as follows:And
Ocelot.Provider.Consul
publicTask<List<Service>> Get()
ofPollConsul
class is as follows:Specifications
The text was updated successfully, but these errors were encountered: