All Products
Search
Document Center

RPC Property Configuration

Last Updated: Aug 21, 2020

In application scenarios of SOFABoot, the RPC framework provides some configuration parameters at the application level. The supported application-level parameters, such as port number and thread pool information, are all bound through @ConfigurationProperties of Spring Boot. The corresponding class is com.alipay.sofa.rpc.boot.config.SofaBootRpcProperties. The prefix configuration is as follows:

  1. static final String PREFIX = "com.alipay.sofa.rpc";

In the application.properties file, you can configure the following options. Depending on your coding practices, you can also write code using camel case or hyphens (-), following the Spring Boot specifications.

  1. # Node fault elimination
  2. com.alipay.sofa.rpc.aft.regulation.effective # Specifies whether to enable the node fault elimination feature.
  3. com.alipay.sofa.rpc.aft.degrade.effective # Specifies whether to enable the downgrading feature.
  4. com.alipay.sofa.rpc.aft.time.window # The time window.
  5. com.alipay.sofa.rpc.aft.least.window.count # The minimum number of calls.
  6. com.alipay.sofa.rpc.aft.least.window.exception.rate.multiple # The minimum exception rate.
  7. com.alipay.sofa.rpc.aft.weight.degrade.rate # The downgrading rate.
  8. com.alipay.sofa.rpc.aft.weight.recover.rate # The recovery rate.
  9. com.alipay.sofa.rpc.aft.degrade.least.weight # The minimum weight after downgrading.
  10. com.alipay.sofa.rpc.aft.degrade.max.ip.count # The maximum number of IP addresses whose weights are downgraded.
  11. # bolt
  12. com.alipay.sofa.rpc.bolt.port # The Bolt port.
  13. com.alipay.sofa.rpc.bolt.thread.pool.core.size # The number of core Bolt threads.
  14. com.alipay.sofa.rpc.bolt.thread.pool.max.size # The maximum number of Bolt threads.
  15. com.alipay.sofa.rpc.bolt.thread.pool.queue.size # The queue in the Bolt thread pool.
  16. com.alipay.sofa.rpc.bolt.accepts.size # The number of client connections that the server allows.
  17. # rest
  18. com.alipay.sofa.rpc.rest.hostname # The REST host name.
  19. com.alipay.sofa.rpc.rest.port # The REST port number.
  20. com.alipay.sofa.rpc.rest.io.thread.size # The number of REST I/O threads.
  21. com.alipay.sofa.rpc.rest.context.path # rest context path
  22. com.alipay.sofa.rpc.rest.thread.pool.core.size # The number of core REST threads.
  23. com.alipay.sofa.rpc.rest.thread.pool.max.size # The maximum number of REST threads.
  24. com.alipay.sofa.rpc.rest.max.request.size # The maximum request size for REST.
  25. com.alipay.sofa.rpc.rest.telnet # Specifies whether to allow the REST Telnet.
  26. com.alipay.sofa.rpc.rest.daemon # Specifies whether the port is held. If the value is true, the system releases the port when the main thread is closed.
  27. # dubbo
  28. com.alipay.sofa.rpc.dubbo.port # The Dubbo port.
  29. com.alipay.sofa.rpc.dubbo.io.thread.size # The size of the Dubbo I/O thread.
  30. com.alipay.sofa.rpc.dubbo.thread.pool.max.size # The maximum number of Dubbo business threads.
  31. com.alipay.sofa.rpc.dubbo.accepts.size # The number of client connections that the Dubbo server allows.
  32. com.alipay.sofa.rpc.dubbo.thread.pool.core.size # The number of core Dubbo threads.
  33. com.alipay.sofa.rpc.dubbo.thread.pool.queue.size # The maximum number of Dubbo threads.
  34. # registry
  35. com.alipay.sofa.rpc.registry.address # The registry address.
  36. com.alipay.sofa.rpc.virtual.host # The virtual host.
  37. com.alipay.sofa.rpc.bound.host # The bound host.
  38. com.alipay.sofa.rpc.virtual.port # The virtual port.
  39. com.alipay.sofa.rpc.enabled.ip.range # The IP range for multiple network interfaces.
  40. com.alipay.sofa.rpc.bind.network.interface # The bound network interface.
  41. # h2c
  42. com.alipay.sofa.rpc.h2c.port # The H2C port.
  43. com.alipay.sofa.rpc.h2c.thread.pool.core.size # The number of core H2C threads.
  44. com.alipay.sofa.rpc.h2c.thread.pool.max.size # The maximum number of H2C threads.
  45. com.alipay.sofa.rpc.h2c.thread.pool.queue.size # The size of the H2C queue.
  46. com.alipay.sofa.rpc.h2c.accepts.size # The number of client connections that the server allows.
  47. # Extension
  48. com.alipay.sofa.rpc.lookout.collect.disable # Specifies whether to disable the Lookout.
  49. # Proxy
  50. com.alipay.sofa.rpc.consumer.repeated.reference.limit # The number of proxies the client is allowed to generate for the same service. The default value is 3.