blob: c663b708b6e61df9f44eb7e755612a50310ccd70 [file] [log] [blame]
## ---------------------------------------------------------------------------
## Licensed to the Apache Software Foundation (ASF) under one or more
## contributor license agreements. See the NOTICE file distributed with
## this work for additional information regarding copyright ownership.
## The ASF licenses this file to You under the Apache License, Version 2.0
## (the "License"); you may not use this file except in compliance with
## the License. You may obtain a copy of the License at
##
## http://www.apache.org/licenses/LICENSE-2.0
##
## Unless required by applicable law or agreed to in writing, software
## distributed under the License is distributed on an "AS IS" BASIS,
## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
## See the License for the specific language governing permissions and
## limitations under the License.
## ---------------------------------------------------------------------------
server:
port: 8082
# java-chassis configurations
APPLICATION_ID: demo-zeroconfig-schemadiscovery-registry
service_description:
name: demo-zeroconfig-schemadiscovery-registry-client
version: 0.0.2
servicecomb:
rest:
address: 0.0.0.0:8082
config:
client:
# for testing dynamic configuration
# serverUri: http://127.0.0.1:30113
refreshMode: 0
# refresh_interval: 5000
# refreshPort: 30114
handler:
chain:
Consumer:
default: loadbalance
Provider:
default: governance-provider
governance:
GovernanceEndpoint.helloRpc:
matchType: rpc
demo-zeroconfig-schemadiscovery-registry-server.GovernanceEndpoint.retryRpc:
matchType: rpc
matchGroup:
demo-rateLimiting: |
matches:
- apiPath:
exact: "/governance/hello"
demo-rateLimiting-rpc: |
matches:
- apiPath:
exact: "GovernanceEndpoint.helloRpc"
demo-retry: |
matches:
- apiPath:
exact: "/governance/retry"
demo-retry-rpc: |
matches:
- apiPath:
exact: "demo-zeroconfig-schemadiscovery-registry-server.GovernanceEndpoint.retryRpc"
demo-circuitBreaker: |
matches:
- apiPath:
exact: "/governance/circuitBreaker"
demo-bulkhead: |
matches:
- apiPath:
exact: "/governance/bulkhead"
rateLimiting:
demo-rateLimiting: |
rate: 10
## services is optional in configuration file
services: demo-zeroconfig-schemadiscovery-registry-client
demo-rateLimiting-rpc: |
rate: 10
## services is optional in configuration file
services: demo-zeroconfig-schemadiscovery-registry-client
retry:
demo-retry: |
maxAttempts: 3
## services is optional in configuration file
services: demo-zeroconfig-schemadiscovery-registry-client
demo-retry-rpc: |
maxAttempts: 3
## services is optional in configuration file
services: demo-zeroconfig-schemadiscovery-registry-client
circuitBreaker:
demo-circuitBreaker: |
minimumNumberOfCalls: 10
slidingWindowSize: 10
failureRateThreshold: 20
## services is optional in configuration file
services: demo-zeroconfig-schemadiscovery-registry-client
bulkhead:
demo-bulkhead: |
maxConcurrentCalls: 5
## services is optional in configuration file
services: demo-zeroconfig-schemadiscovery-registry-client