keep the configuration as simple as possible, no qos, no cache

This commit is contained in:
geffzhang
2019-01-30 07:36:19 +08:00
parent 7427968261
commit bd7e18ca42
4 changed files with 1 additions and 16 deletions

View File

@ -14,7 +14,6 @@
<ItemGroup>
<ProjectReference Include="..\..\..\src\Ocelot.Provider.Kubernetes\Ocelot.Provider.Kubernetes.csproj" />
<ProjectReference Include="..\..\..\src\Ocelot.Provider.Polly\Ocelot.Provider.Polly.csproj" />
<ProjectReference Include="..\..\..\src\Ocelot\Ocelot.csproj" />
</ItemGroup>

View File

@ -9,7 +9,6 @@ using Microsoft.Extensions.DependencyInjection;
using Ocelot.DependencyInjection;
using Ocelot.Middleware;
using Ocelot.Provider.Kubernetes;
using Ocelot.Provider.Polly;
namespace ApiGateway
{
@ -20,7 +19,6 @@ namespace ApiGateway
public void ConfigureServices(IServiceCollection services)
{
services.AddOcelot()
.AddPolly()
.AddKubernetes();
}

View File

@ -5,13 +5,7 @@
"DownstreamScheme": "http",
"UpstreamPathTemplate": "/values",
"ServiceName": "downstreamservice",
"UpstreamHttpMethod": [ "Get" ],
"QoSOptions": {
"ExceptionsAllowedBeforeBreaking": 3,
"DurationOfBreak": 10000,
"TimeoutValue": 5000
},
"FileCacheOptions": { "TtlSeconds": 15 }
"UpstreamHttpMethod": [ "Get" ]
}
],
"GlobalConfiguration": {