Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.

config_apollo.json 3.0 KiB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. {
  2. "servers": [
  3. {
  4. "default_log_path": "stdout",
  5. "default_log_level": "DEBUG",
  6. "listeners": [
  7. {
  8. "name": "grpc",
  9. "address": "127.0.0.1:34904",
  10. "bind_port": true,
  11. "filter_chains": [
  12. {
  13. "filters": [
  14. {
  15. "type": "tcpcopy",
  16. "config": {
  17. "strategy": {
  18. "switch": "ON",
  19. "interval": 30,
  20. "duration": 10,
  21. "cpu_max_rate": 80,
  22. "mem_max_rate": 80
  23. }
  24. }
  25. },
  26. {
  27. "type": "grpc",
  28. "config": {
  29. "server_name": "runtime",
  30. "grpc_config": {
  31. "hellos": {
  32. "helloworld": {
  33. "type": "helloworld",
  34. "hello": "greeting"
  35. }
  36. },
  37. "config_store": {
  38. "config_demo": {
  39. "type": "apollo",
  40. "address": [
  41. "http://106.54.227.205:8080"
  42. ],
  43. "metadata": {
  44. "app_id": "testApplication_yang",
  45. "cluster": "default",
  46. "namespace_name": "dubbo,product.joe,application",
  47. "is_backup_config": "true",
  48. "secret": "6ce3ff7e96a24335a9634fe9abca6d51",
  49. "open_api_token": "947b0db097d2931ba5bf503f1e33c10394f90d11",
  50. "open_api_address": "http://106.54.227.205",
  51. "open_api_user": "apollo"
  52. }
  53. }
  54. }
  55. }
  56. }
  57. }
  58. ]
  59. }
  60. ]
  61. }
  62. ]
  63. }
  64. ],
  65. "dynamic_resources": {
  66. "lds_config": {
  67. "ads": {},
  68. "initial_fetch_timeout": "0s",
  69. "resource_api_version": "V3"
  70. },
  71. "cds_config": {
  72. "ads": {},
  73. "initial_fetch_timeout": "0s",
  74. "resource_api_version": "V3"
  75. },
  76. "ads_config": {
  77. "api_type": "GRPC",
  78. "set_node_on_first_message_only": true,
  79. "transport_api_version": "V3",
  80. "grpc_services": [{
  81. "envoy_grpc": {
  82. "cluster_name": "xds-grpc"
  83. }
  84. }]
  85. }
  86. },
  87. "static_resources": {
  88. "clusters": [{
  89. "name": "xds-grpc",
  90. "type": "STATIC",
  91. "connect_timeout": "1s",
  92. "lb_policy": "ROUND_ROBIN",
  93. "load_assignment": {
  94. "cluster_name": "xds-grpc",
  95. "endpoints": [{
  96. "lb_endpoints": [{
  97. "endpoint": {
  98. "address": {
  99. "socket_address": {"address": "127.0.0.1", "port_value": 30681}
  100. }
  101. }
  102. }
  103. ]
  104. }]
  105. }
  106. }]
  107. }
  108. }