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 2020/07/24 04:08:21 UTC

[GitHub] [servicecomb-service-center] liubao68 edited a comment on issue #644: servicecomb 服务无法注册

liubao68 edited a comment on issue #644:
URL: https://github.com/apache/servicecomb-service-center/issues/644#issuecomment-663337929


   这种情况通常发生在将其他框架的代码修改为 java-chassis的情况, 比如使用 @RestController 的 spring mvc 服务。 java-chassis 默认的标签是 @RestSchema 或者 @RpcSchema, 要求指定可阅读的 schema id。 但是为了支持老系统改造, 也支持扫描 @RestController, schema id 是默认自动生成的, 就比较长了。 建议自定 schema id, 这样有个好处, 就是 java-chassis 的所有治理功能, 多数都支持对于 schema/operation生效,简单的名字可以让这些配置更加简单。 
   
   比如限流配置 : `servicecomb.flowcontrol.Provider.qps.limit.[ServiceName].[Schema].[operation]`
   
   SC 限制 body 大小为 2M, 这个一般是处于安全考虑, 更大的 body ,容易导致 DOS 攻击。 所以尽可能不要超过这个限制。 


----------------------------------------------------------------
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