【Azure API 管理】APIM Self-Host Gateway 自建本地环境中的网关数量超过10个且它们的出口IP为同一个时出现的429错误
问题描述
Azure API Management服务支持使用自建网关来实现API服务,这样APIM的所有请求都可以走在自管理的企业内网中。流量都更加安全。当根据官网文档搭建后,如果在本地环境中部署超过10个Self-host gateway,并且这些Self-host gateway的主机出口IP地址(公网IP)都是同一个的时候,就会遇见429错误: [HeartbeatError], exception: System.Net.Http.HttpRequestException: Response status code does not indicate success: 429 ().
更多的错误消息
(c) Microsoft Corporation. All rights reserved. This software is licensed to you as part of your or your company's subscription license for Microsoft Azure Services.
You may only use the software with Microsoft Azure Services and subject to the terms and conditions of the agreement under which you obtained Microsoft Azure Services.
If you do not have an active subscription license for Microsoft Azure Services, you may not use the software.
See Microsoft Azure Legal Information: https://azure.microsoft.com/en-us/support/legal/ __ __ ___ __ __ ___ ___ ___
/\ / | | |__) |__ /\ |__) | |\/| /\ |\ | /\ / _` |__ |\/| |__ |\ | |
/~~\ /_ \__/ | \ |___ /~~\ | | | | /~~\ | \| /~~\ \__> |___ | | |___ | \| | ____ _ __ _ _ _ _ ____ _
/ ___| ___ | | / _| | | | | ___ ___ | |_ ___ __| | / ___| __ _ | |_ ___ __ __ __ _ _ _
\___ \ / _ \ | | | |_ _____ | |_| | / _ \ / __| | __| / _ \ / _` | | | _ / _` | | __| / _ \ \ \ /\ / / / _` | | | | |
___) | | __/ | | | _| |_____| | _ | | (_) | \__ \ | |_ | __/ | (_| | | |_| | | (_| | | |_ | __/ \ V V / | (_| | | |_| |
|____/ \___| |_| |_| |_| |_| \___/ |___/ \__| \___| \__,_| \____| \__,_| \__| \___| \_/\_/ \__,_| \__, |
|___/ .%*
/##(
#####.
,%%%#%%/
#%%%%%%%%
(((#####((((#/
((((##(((//////((
((((##(///*******//.
/(((%#(//**,,..,,,*//
%%%%%%%%############(/############%%%%%%%%%%%%%%%%%((/**,.. ..,,**
.**(/%/%%%%%%((/**,... ..,***
(((%#((/**,,,,,,**/.
(((%#((//****,,//
((%##((((///(*
,%%####
%%%%%,
*%%#%
(###
##(
,#/
(, _ _
| |__ ___ ___ _ __ | |__ ___ ___ _ __
| '_ \ / _ \ / _ \ | '_ \ _____ | '_ \ / _ \ / _ \ | '_ \
| |_) | | __/ | __/ | |_) | |_____| | |_) | | __/ | __/ | |_) |
|_.__/ \___| \___| | .__/ |_.__/ \___| \___| | .__/
|_| |_| version: 1.2.5.0
commit: 2781a2bc38328bb1f9b425342e847a683105b7fa
[Warn] 2021-12-7T10:26:33.418 [LoadBackupLocationNotFound], message: /apim/config, source: BackupMetadataProvider
[Info] 2021-12-7T10:26:33.471 [HostBootstrapperStarting]
[Info] 2021-12-7T10:26:33.471 [ComponentStarting], message: EventListenerComponent
[Info] 2021-12-7T10:26:33.471 [ComponentStarted], message: EventListenerComponent
[Info] 2021-12-7T10:26:33.471 [ComponentStarting], message: EndPointEventListenerHost
[Info] 2021-12-7T10:26:33.473 [ComponentStarted], message: EndPointEventListenerHost
[Info] 2021-12-7T10:26:33.492 [LoadingConfiguration], message: https://apim-restry.management.azure-api.cn/subscriptions/6630b017-4a45-44cc-a150-5e413bf22091/resourceGroups/RG-APIM/providers/Microsoft.ApiManagement/service/apim-restry/gateways/getConfiguration?api-version=2018-06-01-preview, source: ServiceConfigurationSource
[Info] 2021-12-7T10:26:34.364 [ConfigurationUpdated], message: Updated settings: tenant.id, tenant.name, config.enc, config.enc.keys.primary, config.enc.keys.secondary, config.cert.privatekey.password, deployment.dataset.id, logs.applicationinsights.endpoint, policy.qouta.sync.table.connection, events.snapshot.initial.connection, events.snapshot.private.master.connection, events.table.connection, inspector.container.connection, deployment.instance.region, deployment.instance.gateway-id, deployment.id, deployment.name, config.mode, source: ServiceConfigurationSource
[Info] 2021-12-7T10:26:34.371 [ComponentStarting], message: ExternalConfigurationHeartbeat
[Info] 2021-12-7T10:26:34.372 [ComponentStarted], message: ExternalConfigurationHeartbeat
[Info] 2021-12-7T10:26:34.372 [ComponentStarting], message: ExternalConfigurationMonitor
[Info] 2021-12-7T10:26:34.372 [ComponentStarted], message: ExternalConfigurationMonitor
[Info] 2021-12-7T10:26:34.372 [ComponentStarting], message: P2PRateLimitSignalSenderService
[Info] 2021-12-7T10:26:34.373 [ComponentStarted], message: P2PRateLimitSignalSenderService
[Info] 2021-12-7T10:26:34.373 [ComponentStarting], message: P2PRateLimitSignalListenerService
[Info] 2021-12-7T10:26:34.374 [ComponentStarted], message: P2PRateLimitSignalListenerService
[Info] 2021-12-7T10:26:34.374 [ComponentStarting], message: StubHostableComponent
[Info] 2021-12-7T10:26:34.374 [ComponentStarted], message: StubHostableComponent
[Info] 2021-12-7T10:26:34.374 [ComponentStarting], message: StubHostableComponent
[Info] 2021-12-7T10:26:34.374 [ComponentStarted], message: StubHostableComponent
[Info] 2021-12-7T10:26:34.374 [ComponentStarting], message: NeighborDiscoveryService
[Info] 2021-12-7T10:26:34.384 [NeighborhoodChangeDetected], message: [] --> [255.255.255.255: 255.255.255.255], source: UdpHeartbeatSender
[Info] 2021-12-7T10:26:34.385 [NeighborhoodChangeDetected], message: [] --> [255.255.255.255: 255.255.255.255], source: P2PRateLimitSignalSenderService
[Info] 2021-12-7T10:26:34.385 [ComponentStarted], message: NeighborDiscoveryService
[Info] 2021-12-7T10:26:34.385 [ComponentStarting], message: DotNettyBootstrapper
[Info] 2021-12-7T10:26:34.393 [SelfAddressDiscovery], message: Rate limit is running in UDP broadcast mode. Discovering local node addresses to ignore loopback datagrams..., source: P2PRateLimitSignalListenerService
[Info] 2021-12-7T10:26:34.420 [ComponentStarted], message: DotNettyBootstrapper
[Info] 2021-12-7T10:26:34.420 [ComponentStarting], message: AspNetCoreBootstrapper
[Info] 2021-12-7T10:26:34.463 [MyAddresses], message: 127.0.0.1, 172.18.0.12, source: P2PRateLimitSignalListenerService
[Info] 2021-12-7T10:26:34.466 [SignalListenerStarting], message: 0.0.0.0:4290, source: P2PRateLimitSignalListenerService
[Info] 2021-12-7T10:26:34.470 [SignalListenerStarted], message: 0.0.0.0:4290, source: P2PRateLimitSignalListenerService
Hosting environment: Production
Content root path: /app
Now listening on: http://0.0.0.0:8080
Now listening on: https://0.0.0.0:8081
[Info] 2021-12-7T10:26:34.665 [ComponentStarted], message: AspNetCoreBootstrapper
[Info] 2021-12-7T10:26:34.665 [HostBootstrapperStarted]
[Info] 2021-12-7T10:26:34.954 [TenantStarting], message: 61af36da3aaab00001747dc7
[Info] 2021-12-7T10:26:35.501 [KubernetesIngressModeDisabled], source: KubernetesConfigurationRepositoryProvider
[Warn] 2021-12-7T10:26:35.599 [LoadBackupLocationNotFound], message: /apim/config, source: FileBackupProvider
[Info] 2021-12-7T10:26:35.901 [LegacyBackendUpdated], source: BackendService
[Info] 2021-12-7T10:26:36.314 [BootstrapperStarting], source: Bootstrapper
[Info] 2021-12-7T10:26:36.314 [ComponentStarting], message: PolicyMapBuilder, source: Bootstrapper
[Info] 2021-12-7T10:26:36.315 [ComponentStarted], message: PolicyMapBuilder, source: Bootstrapper
[Info] 2021-12-7T10:26:36.315 [ComponentStarting], message: RequestHandlerContainer, source: Bootstrapper
[Info] 2021-12-7T10:26:36.315 [ComponentStarted], message: RequestHandlerContainer, source: Bootstrapper
[Info] 2021-12-7T10:26:36.315 [ComponentStarting], message: RequestHandlerContainer, source: Bootstrapper
[Info] 2021-12-7T10:26:36.315 [ComponentStarted], message: RequestHandlerContainer, source: Bootstrapper
[Info] 2021-12-7T10:26:36.315 [ComponentStarting], message: RequestHandlerContainer, source: Bootstrapper
[Info] 2021-12-7T10:26:36.315 [ComponentStarted], message: RequestHandlerContainer, source: Bootstrapper
[Info] 2021-12-7T10:26:36.315 [ComponentStarting], message: RequestHandlerContainer, source: Bootstrapper
[Info] 2021-12-7T10:26:36.315 [ComponentStarted], message: RequestHandlerContainer, source: Bootstrapper
[Info] 2021-12-7T10:26:36.315 [ComponentStarting], message: ValidateMessageService, source: Bootstrapper
[Info] 2021-12-7T10:26:36.369 [ComponentStarted], message: ValidateMessageService, source: Bootstrapper
[Info] 2021-12-7T10:26:36.369 [ComponentStarting], message: MetricPublisher, source: Bootstrapper
[Info] 2021-12-7T10:26:36.450 [MetricPublicationStarted], source: MetricsPublisher
[Info] 2021-12-7T10:26:36.450 [ComponentStarted], message: MetricPublisher, source: Bootstrapper
[Info] 2021-12-7T10:26:36.450 [ComponentStarting], message: QuotaComponent, source: Bootstrapper
[Info] 2021-12-7T10:26:36.451 [ComponentStarted], message: QuotaComponent, source: Bootstrapper
[Info] 2021-12-7T10:26:36.451 [ComponentStarting], message: CloudMetricConnection, source: Bootstrapper
[Info] 2021-12-7T10:26:36.477 [ComponentStarted], message: CloudMetricConnection, source: Bootstrapper
[Info] 2021-12-7T10:26:36.479 [ConfigStarted], source: CompositeConfigurationRepositoryProvider
[Info] 2021-12-7T10:26:36.479 [ConfigStarted], message: Connected service is enabled. 'config.service.endpoint' is set., source: CompositeConfigurationRepositoryProvider
[Info] 2021-12-7T10:26:36.488 [ConfigInitialSyncStarted], source: ConfigurationRepositoryProvider
[Info] 2021-12-7T10:26:36.752 [CounterInitialSyncStarted], source: QuotaByKeyCounterService
[Info] 2021-12-7T10:26:36.776 [CounterInitialSyncCompleted], source: QuotaByKeyCounterService
[Info] 2021-12-7T10:26:37.170 [EventSnapshotElected], message: provider: storage, uri: https://apimstqax0aibucxyvra4cdf.blob.core.chinacloudapi.cn/gatewaysnapshotsrxwmzisgzzfiv7r/snapshot-2019-10-11.Proxy.Host.WebRole_IN_0.json.gzip, rev: 225, source: events.snapshot
[Info] 2021-12-7T10:26:37.180 [ConfigurationRetrieving], message: https://apimstqax0aibucxyvra4cdf.blob.core.chinacloudapi.cn/gatewaysnapshotsrxwmzisgzzfiv7r/snapshot-2019-10-11.Proxy.Host.WebRole_IN_0.json.gzip, source: events.snapshot.storage.private
[Info] 2021-12-7T10:26:37.266 [ConfigurationLoaded], message: https://apimstqax0aibucxyvra4cdf.blob.core.chinacloudapi.cn/gatewaysnapshotsrxwmzisgzzfiv7r/snapshot-2019-10-11.Proxy.Host.WebRole_IN_0.json.gzip, source: events.snapshot.storage.private
[Info] 2021-12-7T10:26:37.712 [ConfigurationRetrieved], message: https://apimstqax0aibucxyvra4cdf.blob.core.chinacloudapi.cn/gatewaysnapshotsrxwmzisgzzfiv7r/snapshot-2019-10-11.Proxy.Host.WebRole_IN_0.json.gzip, source: events.snapshot.storage.private
[Info] 2021-12-7T10:26:37.721 [LocalLoggerAddedToTenant], message: apim-restry.azure-api.cn, source: DefaultLocalLoggerConfigurationFilter
[Info] 2021-12-7T10:26:37.723 [LocalDiagnosticAddedtoTenant], message: apim-restry.azure-api.cn, source: DefaultTenantDiagnosticConfigurationFilter
[Warn] 2021-12-7T10:26:37.811 [Logger azuremonitor with unknown type azureMonitor detected], source: LoggerResolver
[Info] 2021-12-7T10:26:37.885 [OperationRouteTableRebuildStarted], message: echo-api;rev=1, source: ApiRouter
[Info] 2021-12-7T10:26:37.973 [OperationRouteTableRebuildCompleted], message: echo-api;rev=1, source: ApiRouter
[Info] 2021-12-7T10:26:37.981 [OperationRouteTableRebuildStarted], message: auction;rev=1, source: ApiRouter
[Info] 2021-12-7T10:26:37.989 [OperationRouteTableRebuildCompleted], message: auction;rev=1, source: ApiRouter
[Info] 2021-12-7T10:26:37.990 [OperationRouteTableRebuildStarted], message: todo-api;rev=1, source: ApiRouter
[Info] 2021-12-7T10:26:37.994 [OperationRouteTableRebuildCompleted], message: todo-api;rev=1, source: ApiRouter
[Info] 2021-12-7T10:26:37.994 [OperationRouteTableRebuildStarted], message: apim;rev=1, source: ApiRouter
[Info] 2021-12-7T10:26:37.994 [OperationRouteTableRebuildCompleted], message: apim;rev=1, source: ApiRouter
[Info] 2021-12-7T10:26:37.994 [OperationRouteTableRebuildStarted], message: api101;rev=1, source: ApiRouter
[Info] 2021-12-7T10:26:37.994 [OperationRouteTableRebuildCompleted], message: api101;rev=1, source: ApiRouter
[Info] 2021-12-7T10:26:37.994 [OperationRouteTableRebuildStarted], message: api103;rev=1, source: ApiRouter
[Info] 2021-12-7T10:26:37.995 [OperationRouteTableRebuildCompleted], message: api103;rev=1, source: ApiRouter
[Info] 2021-12-7T10:26:37.995 [OperationRouteTableRebuildStarted], message: api112;rev=1, source: ApiRouter
[Info] 2021-12-7T10:26:37.995 [OperationRouteTableRebuildCompleted], message: api112;rev=1, source: ApiRouter
[Info] 2021-12-7T10:26:37.995 [OperationRouteTableRebuildStarted], message: api114;rev=1, source: ApiRouter
[Info] 2021-12-7T10:26:37.995 [OperationRouteTableRebuildCompleted], message: api114;rev=1, source: ApiRouter
[Info] 2021-12-7T10:26:37.995 [OperationRouteTableRebuildStarted], message: apiID_self-getway;rev=1, source: ApiRouter
[Info] 2021-12-7T10:26:37.995 [OperationRouteTableRebuildCompleted], message: apiID_self-getway;rev=1, source: ApiRouter
[Info] 2021-12-7T10:26:37.995 [OperationRouteTableRebuildStarted], message: apiID_dev-nm-domestic;rev=1, source: ApiRouter
[Info] 2021-12-7T10:26:37.995 [OperationRouteTableRebuildCompleted], message: apiID_dev-nm-domestic;rev=1, source: ApiRouter
[Info] 2021-12-7T10:26:37.995 [OperationRouteTableRebuildStarted], message: apiid-dev-bj-domestic;rev=1, source: ApiRouter
[Info] 2021-12-7T10:26:37.995 [OperationRouteTableRebuildCompleted], message: apiid-dev-bj-domestic;rev=1, source: ApiRouter
[Info] 2021-12-7T10:26:37.995 [OperationRouteTableRebuildStarted], message: api-self-getway;rev=1, source: ApiRouter
[Info] 2021-12-7T10:26:37.995 [OperationRouteTableRebuildCompleted], message: api-self-getway;rev=1, source: ApiRouter
[Info] 2021-12-7T10:26:38.230 [LegacyBackendUpdated], source: BackendService
[Info] 2021-12-7T10:26:38.231 [EventSnapshotRestored], message: revision: 000000e1, datasetId: rxwmzisgzzfiv7r, source: ConfigurationRepositoryProvider
[Info] 2021-12-7T10:26:38.246 [WaitingForRemainingEvents], message: snapshot-rev: 000000e1, source: ConfigurationRepositoryProvider
[Info] 2021-12-7T10:26:38.249 [EventLoopStopped], source: TableStorageEventLoopFactory
[Info] 2021-12-7T10:26:38.249 [EventLoopStarted], source: TableStorageEventLoopFactory
[Info] 2021-12-7T10:26:38.713 [NewEventsRead], message: count: 1, source: TableStorageEventLoopFactory
[Info] 2021-12-7T10:26:38.714 [EventProcessing], message: partitionkey: apim-restry.azure-api.cn, rowkey: 000000e2, etag: W/"datetime'2021-12-07T10%3A24%3A59.458422Z'", source: TableStorageEventLoopFactory
[Info] 2021-12-7T10:26:38.729 [EntityEventProcessing], message: id: 000000e2, entity-id: /gateways/61af367b58ac0a10a44e6e85, public-entity-id: /gateways/dev-gateway-03, type: created, entity-rev: 8010, source: ConfigurationRepositoryProvider
[Info] 2021-12-7T10:26:39.138 [EntityEventProcessed], message: id: 000000e2, entity-id: /gateways/61af367b58ac0a10a44e6e85, public-entity-id: /gateways/dev-gateway-03, type: created, entity-rev: 8010, source: ConfigurationRepositoryProvider
[Info] 2021-12-7T10:26:39.138 [EventProcessed], message: partitionkey: apim-restry.azure-api.cn, rowkey: 000000e2, etag: W/"datetime'2021-12-07T10%3A24%3A59.458422Z'", source: TableStorageEventLoopFactory
[Info] 2021-12-7T10:26:39.139 [EventsSuccessfullyRestored], source: ConfigurationRepositoryProvider
[Info] 2021-12-7T10:26:39.142 [ConfigInitialSyncCompleted], source: ConfigurationRepositoryProvider
[Info] 2021-12-7T10:26:39.143 [BootstrapperStarted], source: Bootstrapper
[Info] 2021-12-7T10:26:39.144 [TenantStarted], message: 61af36da3aaab00001747dc7 00:00:04.4720580
[Error]2021-12-7T10:27:33.543 [HeartbeatError], exception: System.Net.Http.HttpRequestException: Response status code does not indicate success: 429 ().
at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode()
at Gateway.Host.AspNetCore.ExternalConfiguration.ExternalConfigurationHeartbeat.<SendHeartbeat>g__Send|11_1(CancellationToken cancellation) in D:\a\1\s\Proxy\Gateway.Host.AspNetCore\ExternalConfiguration\ExternalConfigurationHeartbeat.cs:line 105, source: ConfigService
[Error]2021-12-7T10:28:33.550 [HeartbeatError], exception: System.Net.Http.HttpRequestException: Response status code does not indicate success: 429 ().
at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode()
at Gateway.Host.AspNetCore.ExternalConfiguration.ExternalConfigurationHeartbeat.<SendHeartbeat>g__Send|11_1(CancellationToken cancellation) in D:\a\1\s\Proxy\Gateway.Host.AspNetCore\ExternalConfiguration\ExternalConfigurationHeartbeat.cs:line 105, source: ConfigService
[Error]2021-12-7T10:29:33.562 [HeartbeatError], exception: System.Net.Http.HttpRequestException: Response status code does not indicate success: 429 ().
at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode()
at Gateway.Host.AspNetCore.ExternalConfiguration.ExternalConfigurationHeartbeat.<SendHeartbeat>g__Send|11_1(CancellationToken cancellation) in D:\a\1\s\Proxy\Gateway.Host.AspNetCore\ExternalConfiguration\ExternalConfigurationHeartbeat.cs:line 105, source: ConfigService
[Error]2021-12-7T10:30:33.678 [HeartbeatError], exception: System.Net.Http.HttpRequestException: Response status code does not indicate success: 429 ().
at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode()
at Gateway.Host.AspNetCore.ExternalConfiguration.ExternalConfigurationHeartbeat.<SendHeartbeat>g__Send|11_1(CancellationToken cancellation) in D:\a\1\s\Proxy\Gateway.Host.AspNetCore\ExternalConfiguration\ExternalConfigurationHeartbeat.cs:line 105, source: ConfigService
[Error]2021-12-7T10:31:33.691 [HeartbeatError], exception: System.Net.Http.HttpRequestException: Response status code does not indicate success: 429 ().
at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode()
at Gateway.Host.AspNetCore.ExternalConfiguration.ExternalConfigurationHeartbeat.<SendHeartbeat>g__Send|11_1(CancellationToken cancellation) in D:\a\1\s\Proxy\Gateway.Host.AspNetCore\ExternalConfiguration\ExternalConfigurationHeartbeat.cs:line 105, source: ConfigService
[Error]2021-12-7T10:32:33.702 [HeartbeatError], exception: System.Net.Http.HttpRequestException: Response status code does not indicate success: 429 ().
at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode()
at Gateway.Host.AspNetCore.ExternalConfiguration.ExternalConfigurationHeartbeat.<SendHeartbeat>g__Send|11_1(CancellationToken cancellation) in D:\a\1\s\Proxy\Gateway.Host.AspNetCore\ExternalConfiguration\ExternalConfigurationHeartbeat.cs:line 105, source: ConfigService
[Error]2021-12-7T10:33:33.711 [HeartbeatError], exception: System.Net.Http.HttpRequestException: Response status code does not indicate success: 429 ().
at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode()
at Gateway.Host.AspNetCore.ExternalConfiguration.ExternalConfigurationHeartbeat.<SendHeartbeat>g__Send|11_1(CancellationToken cancellation) in D:\a\1\s\Proxy\Gateway.Host.AspNetCore\ExternalConfiguration\ExternalConfigurationHeartbeat.cs:line 105, source: ConfigService
[Error]2021-12-7T10:34:33.719 [HeartbeatError], exception: System.Net.Http.HttpRequestException: Response status code does not indicate success: 429 ().
at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode()
at Gateway.Host.AspNetCore.ExternalConfiguration.ExternalConfigurationHeartbeat.<SendHeartbeat>g__Send|11_1(CancellationToken cancellation) in D:\a\1\s\Proxy\Gateway.Host.AspNetCore\ExternalConfiguration\ExternalConfigurationHeartbeat.cs:line 105, source: ConfigService
[Error]2021-12-7T10:35:33.725 [HeartbeatError], exception: System.Net.Http.HttpRequestException: Response status code does not indicate success: 429 ().
at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode()
at Gateway.Host.AspNetCore.ExternalConfiguration.ExternalConfigurationHeartbeat.<SendHeartbeat>g__Send|11_1(CancellationToken cancellation) in D:\a\1\s\Proxy\Gateway.Host.AspNetCore\ExternalConfiguration\ExternalConfigurationHeartbeat.cs:line 105, source: ConfigService
[Info] 2021-12-7T10:35:49.546 [NewEventsRead], message: count: 1, source: TableStorageEventLoopFactory
[Info] 2021-12-7T10:35:49.546 [EventProcessing], message: partitionkey: apim-restry.azure-api.cn, rowkey: 000000e3, etag: W/"datetime'2021-12-07T10%3A35%3A43.601638Z'", source: TableStorageEventLoopFactory
[Info] 2021-12-7T10:35:49.546 [EntityEventProcessing], message: id: 000000e3, entity-id: /gateways/61af38ff58ac0a10a44e6f13, public-entity-id: /gateways/dev-gateway-04, type: created, entity-rev: 8015, source: ConfigurationRepositoryProvider
[Info] 2021-12-7T10:35:49.547 [EntityEventProcessed], message: id: 000000e3, entity-id: /gateways/61af38ff58ac0a10a44e6f13, public-entity-id: /gateways/dev-gateway-04, type: created, entity-rev: 8015, source: ConfigurationRepositoryProvider
[Info] 2021-12-7T10:35:49.547 [EventProcessed], message: partitionkey: apim-restry.azure-api.cn, rowkey: 000000e3, etag: W/"datetime'2021-12-07T10%3A35%3A43.601638Z'", source: TableStorageEventLoopFactory
[Error]2021-12-7T10:36:33.730 [HeartbeatError], exception: System.Net.Http.HttpRequestException: Response status code does not indicate success: 429 ().
at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode()
at Gateway.Host.AspNetCore.ExternalConfiguration.ExternalConfigurationHeartbeat.<SendHeartbeat>g__Send|11_1(CancellationToken cancellation) in D:\a\1\s\Proxy\Gateway.Host.AspNetCore\ExternalConfiguration\ExternalConfigurationHeartbeat.cs:line 105, source: ConfigService
部署架构图
问题解答
多方查询无果后,咨询官方。得知这个是APIM 版本限制问题,升级APIM服务的版本(Azure自动维护)后,同一个公网IP地址最大的10个连接限制问题消失。
The issue is fixed starting version 0.23.1400.0 and above
参考资料
自托管网关概述:https://docs.azure.cn/zh-cn/api-management/self-hosted-gateway-overview
【Azure API 管理】APIM Self-Host Gateway 自建本地环境中的网关数量超过10个且它们的出口IP为同一个时出现的429错误的更多相关文章
- 【Azure API 管理】在APIM中使用客户端证书验证API的请求,但是一直提示错误"No client certificate received."
API 管理 (APIM) 是一种为现有后端服务创建一致且现代化的 API 网关的方法. 问题描述 在设置了APIM客户端证书,用户保护后端API,让请求更安全. 但是,最近发现使用客户端证书的API ...
- 【Azure API 管理】Azure APIM服务集成在内部虚拟网络后,在内部环境中打开APIM门户使用APIs中的TEST功能失败
问题描述 使用微软API管理服务(Azure API Management),简称APIM. 因为公司策略要求只能内部网络访问,所以启用了VNET集成.集成方式见: (在内部模式下使用 Azure A ...
- 【Azure API 管理】APIM集成内网虚拟网络后,启用自定义路由管理外出流量经过防火墙(Firewall),遇见APIs加载不出来问题
问题描述 使用 Azure 虚拟网络,Azure APIM 可以管理无法通过 Internet 访问的 API,达到以保护企业内部的后端API的目的.在虚拟网络中,启用网络安全组(NSG:Networ ...
- 【Azure API 管理】在APIM 中添加 log-to-eventhub 策略,把 Request Body 信息全部记录在Event Hub中
问题描述 根据文档 https://docs.azure.cn/zh-cn/api-management/api-management-howto-log-event-hubs, 可以将Azure A ...
- 【Azure API 管理】为调用APIM的请求启用Trace -- 调试APIM Policy的利器
问题描述 在APIM中,通过门户上的 Test 功能,可以非常容易的查看请求的Trace信息,帮助调试 API 对各种Policy,在Inbound,Backend, Outbound部分的耗时问题, ...
- 【API管理 APIM】APIM集成内部VNet时,常遇见的关于自定义DNS服务问题。
问题描述 Azure 的APIM集成虚拟网络有两种方式,外部VNET, 内部VNET. 外部VNET,要求低,可以通过APIM访问VNET中的VM等资源,不需要配置自定义DNS服务器,这种方式下,AP ...
- 【API管理 APIM】如何查看APIM中的Request与Response详细信息,如Header,Body中的参数内容
问题描述 通过APIM门户或者是Developer门户,我们可以通过Test功能测试某一个接口,通过Trace可以获取非常详细的Request,Response的信息,包含Header,X-Forwa ...
- 【Azure API 管理】API Management如何有效且快速更新呢?如对APIs/Policy等设置内容
问题描述 APIM中的内容(API, Policy)等内容,如果有需要更新时候,通常可以在Azure APIM门户上操作,通过一个接口一个设置的修改,也可以针对一个接口导入/导出的方式修改.当APIM ...
- 【Azure API 管理】解决API Management添加AAD Group时遇见的 Failed to query Azure Active Directory graph due to error 错误
问题描述 为APIM添加AAD Group时候,等待很长很长的时间,结果添加失败.错误消息为: Write Groups ValidationError :Failed to query Azure ...
- 【Azure API 管理】解决调用REST API操作APIM(API Management)需要认证问题(Authentication failed, The 'Authorization' header is missing)
问题描述 在通过REST API的方式来管理APIM资源,需要调用Azure提供的management接口.而这所有的接口,都是需要有Token并且还需要正确的Token.如若不然,就会获取到如下的错 ...
随机推荐
- DPText-DETR: 基于动态点query的场景文本检测,更高更快更鲁棒 | 京东探索研究院
针对场景文本检测任务,近期基于DEtection TRansformer (DETR) 框架预测控制点的研究工作较为活跃.在基于DETR的检测器中,query的构建方式至关重要,现有方法中较为粗糙的位 ...
- 【解决一个小问题】golang 的 `-race`选项导致 unsafe代码 panic
作者:张富春(ahfuzhang),转载时请注明作者和引用链接,谢谢! cnblogs博客 zhihu Github 公众号:一本正经的瞎扯 为了提升性能,使用 unsafe 代码来重构了凯撒加密的代 ...
- 安装和定位vimrc
在上一篇文章中,我们简单开了一个头,阐述了下学习vim的必要性,这章开始,会慢慢由浅入深的学习它的一套完整的,高效的文本编辑方式方法.废话不多说,咱们正式开始吧 安装NeoVim 相对于vim来说,n ...
- 年末将至,Java 开发者必须了解的 16 个Java 顶级开源项目!
年末将至,值得你关注的16个Java 开源项目! 本文已经收录自笔者开源的 JavaGuide: https://github.com/Snailclimb/JavaGuide ([Java学习+面试 ...
- HTTP请求头引发的注入问题 (SQL注入)
关于请求头中注入问题的演示,这里我写了一些测试案例,用来测试请求头中存在的问题.我们常见的会发生注入的点有 Referer.X-Forwarded-For.Cookie.X-Real-IP.Accep ...
- STM32CubeMX教程30 USB_DEVICE - MSC外设_读卡器
1.准备材料 正点原子stm32f407探索者开发板V2.4 STM32CubeMX软件(Version 6.10.0) keil µVision5 IDE(MDK-Arm) ST-LINK/V2驱动 ...
- ESXi6.5导入虚拟机提示缺少所需的磁盘镜像
环境 esxi6.7 错误提示 解决方案 原因:这是因为导出虚拟机的时候,没有把"CD/DVD驱动器"删掉,在导入的时候,找不到这个磁盘映像. 编辑.ovf文件,找到ovf:hre ...
- 对未来的自己的一个提醒。关于打表答题的思路,洛谷P5731
P5731 [深基5.习6]蛇形方阵 - 洛谷 | 计算机科学教育新生态 (luogu.com.cn) 这道题就是纯纯找规律的模拟题,但是在比赛或者思维比较松散的情况下紧张的时候会想不出模拟思路 这时 ...
- 深入浅出 testing-library
我们是袋鼠云数栈 UED 团队,致力于打造优秀的一站式数据中台产品.我们始终保持工匠精神,探索前端道路,为社区积累并传播经验价值. 本文作者:佳岚 The more your tests resemb ...
- 《ASP.NET Core 微服务实战》-- 读书笔记(第12章)
第 12 章 设计汇总 微服务开发并不是要学习 C#.Java 或者 Go 编程--而是要学习如何开发应用以适应并充分利用弹性伸缩环境的优势,它们对托管环境没有偏好,并能瞬间启停 换句话说,我们要学习 ...