You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by GitBox <gi...@apache.org> on 2021/01/19 10:01:36 UTC

[GitHub] [servicecomb-service-center] diwenzheng removed a comment on issue #833: 关于服务报出 httpserver failed 以及 The request is rejected. Cannot process the request due to STATUS = STOPPING

diwenzheng removed a comment on issue #833:
URL: https://github.com/apache/servicecomb-service-center/issues/833#issuecomment-762733308


   以下是我yaml的配置 我们采用三个etcd 三个service-center 利用docker-swarm部署的分布式集群.
   > APPLICATION_ID: redtea-es
   > service_description:
   > name: SiteMgr
   > version: 1.1.0
   > environment: development
   > properties:
   > allowCrossApp: true # enable cross app invocation
   > servicecomb:
   > uploads:
   > directory: /tmp/upload
   > handler:
   > chain:
   > Provider:
   > default: qps-flowcontrol-provider,bizkeeper-provider
   > Consumer:
   > default: bizkeeper-consumer,tracing-consumer,loadbalance # 降级策略配置 隔离
   > 
   > isolation: # 降级策略配置 隔离
   > Provider:
   > timeout:
   > enabled: true
   > timeoutInMilliseconds: 300000
   > Consumer:
   > timeout:
   > enabled: true
   > timeoutInMilliseconds: 300000
   > circuitBreaker:
   > Provider:
   > enabled: true
   > sleepWindowInMilliseconds: 150000
   > requestVolumeThreshold: 20
   > Consumer:
   > enabled: true
   > sleepWindowInMilliseconds: 150000
   > requestVolumeThreshold: 20
   > fallback:
   > Provider:
   > enabled: true
   > Consumer:
   > enabled: true
   > fallbackpolicy:
   > Provider:
   > policy: throwexception
   > Consumer:
   > policy: throwexception
   > 
   > flowcontrol: # 流控
   > Provider:
   > qps:
   > enabled: true
   > global:
   > limit: 10000 # provider接受请求流量的全局配置 没有具体的流控配置时,此配置生效
   > rest:
   > address: 0.0.0.0:${LOCAL_LISNTENING_PORT} # ?sslEnabled=true
   > server:
   > connection-limit: 1000 # Max allowed client connections
   > # thread-count: 8 # rest server verticle instance count(Deprecated)
   > verticle-count: 8 # rest server verticle instance count
   > compression: false # Wether the server support compression
   > idleTimeoutInSeconds: 60 # Timeout for server's idle connection, The idle connections will be closed
   > client:
   > # thread-count: 8 # rest server verticle instance count(Deprecated)
   > verticle-count: 2 # rest server verticle instance count
   > connection:
   > maxPoolSize: 1000 # The maximum number of connections in each connection pool for an IP:port combination
   > idleTimeoutInSeconds: 30 # Timeout for client's idle connection, The idle connections will be closed
   > keepAlive: true # Whether to use long connections
   > compression: false # Wether the client support compression
   > maxHeaderSize: 8192 # The max header size of the response the client can process, unit is Byte
   > service:
   > registry:
   > address: ${REGISTRY_ADDRESS}
   > client:
   > timeout:
   > idle: 60
   > watch: 60
   > instance:
   > healthCheck:
   > interval: 60
   > times: 6
   > pull:
   > interval: 30
   > watch: false
   > empty:
   > pretection: true
   > autodiscovery: true
   > codec:
   > printErrorMessage: true
   > 
   > cse:
   > service:
   > registry:
   > address: ${REGISTRY_ADDRESS}
   > 
   > spring:
   > resttemplate:
   > maxTotalConnect: 1000
   > maxConnectPerRoute: 1000
   > connectTimeout: 3000
   > connectionRequestTimeout: 3000
   > readTimeout: 30000
   > 
   > logging:
   > config: classpath:logback-spring.xml
   
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org