server.yaml 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. ######################################################################################################
  2. #
  3. # 用于配置:数据接入迁移&弹性伸缩、分布式治理模式、权限、代理属性.
  4. #
  5. ######################################################################################################
  6. #scaling:
  7. # blockQueueSize: 10000 # 数据传输通道队列大小
  8. # workerThread: 40 # 工作线程池大小,允许同时运行的迁移任务线程数
  9. # clusterAutoSwitchAlgorithm:
  10. # type: IDLE
  11. # props:
  12. # incremental-task-idle-minute-threshold: 30
  13. # dataConsistencyCheckAlgorithm:
  14. # type: DEFAULT
  15. #
  16. #mode:
  17. # type: Cluster
  18. # repository:
  19. # type: ZooKeeper
  20. # props:
  21. # namespace: governance_ds
  22. # server-lists: localhost:2181
  23. # retryIntervalMilliseconds: 500
  24. # timeToLiveSeconds: 60
  25. # maxRetries: 3
  26. # operationTimeoutMilliseconds: 500
  27. # overwrite: false
  28. #
  29. rules:
  30. - !AUTHORITY
  31. users:
  32. - root@%:root
  33. - sharding@:sharding
  34. provider:
  35. type: ALL_PRIVILEGES_PERMITTED
  36. - !TRANSACTION
  37. defaultType: XA
  38. providerType: Atomikos
  39. props:
  40. max-connections-size-per-query: 1
  41. kernel-executor-size: 16 # Infinite by default.
  42. proxy-frontend-flush-threshold: 128 # The default value is 128.
  43. # proxy-opentracing-enabled: false
  44. # proxy-hint-enabled: false
  45. sql-show: true
  46. # check-table-metadata-enabled: false
  47. # show-process-list-enabled: false
  48. # # Proxy backend query fetch size. A larger value may increase the memory usage of ShardingSphere Proxy.
  49. # # The default value is -1, which means set the minimum value for different JDBC drivers.
  50. # proxy-backend-query-fetch-size: -1
  51. check-duplicate-table-enabled: true
  52. # sql-comment-parse-enabled: false
  53. # proxy-frontend-executor-size: 0 # Proxy frontend executor size. The default value is 0, which means let Netty decide.
  54. # # Available options of proxy backend executor suitable: OLAP(default), OLTP. The OLTP option may reduce time cost of writing packets to client, but it may increase the latency of SQL execution
  55. # # if client connections are more than proxy-frontend-netty-executor-size, especially executing slow SQL.
  56. # proxy-backend-executor-suitable: OLAP
  57. # proxy-frontend-max-connections: 0 # Less than or equal to 0 means no limitation.
  58. # sql-federation-enabled: false