You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
211 lines
7.2 KiB
211 lines
7.2 KiB
{
|
|
"properties": [
|
|
{
|
|
"name": "spring.cloud.polaris.discovery.service",
|
|
"type": "java.lang.String",
|
|
"defaultValue": "${spring.application.name}",
|
|
"description": "the service name to register, default value is ${spring.application.name}."
|
|
},
|
|
{
|
|
"name": "spring.cloud.polaris.discovery.namespace",
|
|
"type": "java.lang.String",
|
|
"defaultValue": "default",
|
|
"description": "the namespace of service, default value is \"default\"."
|
|
},
|
|
{
|
|
"name": "spring.cloud.polaris.discovery.enabled",
|
|
"type": "java.lang.Boolean",
|
|
"defaultValue": true,
|
|
"description": "enable polaris discovery or not."
|
|
},
|
|
{
|
|
"name": "spring.cloud.polaris.discovery.register",
|
|
"type": "java.lang.Boolean",
|
|
"defaultValue": true,
|
|
"description": "enable polaris registration or not."
|
|
},
|
|
{
|
|
"name": "spring.cloud.polaris.discovery.heartbeat-interval",
|
|
"type": "java.lang.Integer",
|
|
"defaultValue": "5",
|
|
"description": "Seconds interval of Heart beat. Default: 5."
|
|
},
|
|
{
|
|
"name": "spring.cloud.polaris.discovery.health-check-url",
|
|
"type": "java.lang.String",
|
|
"defaultValue": "",
|
|
"description": "heal check url."
|
|
},
|
|
{
|
|
"name": "spring.cloud.polaris.discovery.token",
|
|
"type": "java.lang.String",
|
|
"defaultValue": "${spring.cloud.polaris.token}",
|
|
"description": "polaris discovery service's username to authenticate."
|
|
},
|
|
{
|
|
"name": "spring.cloud.polaris.discovery.version",
|
|
"type": "java.lang.String",
|
|
"defaultValue": "${spring.cloud.polaris.version}",
|
|
"description": "polaris discovery service's username to authenticate."
|
|
},
|
|
{
|
|
"name": "spring.cloud.polaris.protocol",
|
|
"type": "java.lang.String",
|
|
"defaultValue": "${spring.cloud.polaris.protocol}",
|
|
"description": "the protocol of polaris instance ."
|
|
},
|
|
{
|
|
"name": "spring.cloud.polaris.weight",
|
|
"type": "java.lang.Integer",
|
|
"defaultValue": 100,
|
|
"description": "the weight of polaris instance , use to load-balance."
|
|
},
|
|
{
|
|
"name": "spring.cloud.polaris.discovery.service-list-refresh-interval",
|
|
"type": "java.lang.Long",
|
|
"defaultValue": 60000,
|
|
"description": "Millis interval of refresh of service info list. Default: 60000."
|
|
},
|
|
{
|
|
"name": "spring.cloud.polaris.discovery.zero-protection.enabled",
|
|
"type": "java.lang.Boolean",
|
|
"defaultValue": false,
|
|
"description": "Zero protection switch. Default: false."
|
|
},
|
|
{
|
|
"name": "spring.cloud.polaris.discovery.zero-protection.is-need-test-connectivity",
|
|
"type": "java.lang.Boolean",
|
|
"defaultValue": false,
|
|
"description": "Zero protection test connectivity switch. Default: false."
|
|
},
|
|
{
|
|
"name": "spring.cloud.polaris.discovery.prefer-ipv6",
|
|
"type": "java.lang.Boolean",
|
|
"defaultValue": false,
|
|
"description": "if prefer ipv6. Default: false."
|
|
},
|
|
{
|
|
"name": "spring.cloud.polaris.discovery.all-recover-enabled",
|
|
"type": "java.lang.Boolean",
|
|
"defaultValue": true,
|
|
"description": "is all recover enable. Default: true."
|
|
},
|
|
{
|
|
"name": "spring.cloud.polaris.discovery.eager-load.enabled",
|
|
"type": "java.lang.Boolean",
|
|
"defaultValue": false,
|
|
"description": "Eager load switch. Default: false."
|
|
},
|
|
{
|
|
"name": "spring.cloud.polaris.discovery.eager-load.feign.enabled",
|
|
"type": "java.lang.Boolean",
|
|
"defaultValue": true,
|
|
"description": "Feign eager load switch. Default: true."
|
|
},
|
|
{
|
|
"name": "spring.cloud.nacos.discovery.enabled",
|
|
"type": "java.lang.Boolean",
|
|
"sourceType": "com.tencent.cloud.polaris.extend.nacos.NacosContextProperties",
|
|
"defaultValue": false
|
|
},
|
|
{
|
|
"name": "spring.cloud.nacos.discovery.group",
|
|
"type": "java.lang.String",
|
|
"description": "group name for nacos.",
|
|
"sourceType": "com.tencent.cloud.polaris.extend.nacos.NacosContextProperties",
|
|
"defaultValue": "DEFAULT_GROUP"
|
|
},
|
|
{
|
|
"name": "spring.cloud.nacos.discovery.namespace",
|
|
"type": "java.lang.String",
|
|
"description": "namespace id for nacos.",
|
|
"sourceType": "com.tencent.cloud.polaris.extend.nacos.NacosContextProperties",
|
|
"defaultValue": "public"
|
|
},
|
|
{
|
|
"name": "spring.cloud.nacos.discovery.password",
|
|
"type": "java.lang.String",
|
|
"description": "the nacos authentication password.",
|
|
"sourceType": "com.tencent.cloud.polaris.extend.nacos.NacosContextProperties"
|
|
},
|
|
{
|
|
"name": "spring.cloud.nacos.discovery.register-enabled",
|
|
"type": "java.lang.Boolean",
|
|
"description": "if you just want to subscribe on nacos , but don't want to register your service, set it to false.",
|
|
"sourceType": "com.tencent.cloud.polaris.extend.nacos.NacosContextProperties",
|
|
"defaultValue": false
|
|
},
|
|
{
|
|
"name": "spring.cloud.nacos.discovery.server-addr",
|
|
"type": "java.lang.String",
|
|
"description": "nacos discovery server address.",
|
|
"sourceType": "com.tencent.cloud.polaris.extend.nacos.NacosContextProperties"
|
|
},
|
|
{
|
|
"name": "spring.cloud.nacos.discovery.username",
|
|
"type": "java.lang.String",
|
|
"description": "the nacos authentication username.",
|
|
"sourceType": "com.tencent.cloud.polaris.extend.nacos.NacosContextProperties"
|
|
},
|
|
{
|
|
"name": "spring.cloud.nacos.discovery.cluster-name",
|
|
"type": "java.lang.String",
|
|
"description": "the nacos authentication cluster-name.",
|
|
"sourceType": "com.tencent.cloud.polaris.extend.nacos.NacosContextProperties"
|
|
},
|
|
{
|
|
"name": "spring.cloud.polaris.loadbalancer.enabled",
|
|
"type": "java.lang.Boolean",
|
|
"defaultValue": "true",
|
|
"description": "polaris loadbalancer."
|
|
},
|
|
{
|
|
"name": "spring.cloud.loadbalancer.strategy",
|
|
"type": "java.lang.String",
|
|
"defaultValue": "polarisWeightedRoundRobin",
|
|
"description": "loadbalancer strategy."
|
|
},
|
|
{
|
|
"name": "spring.cloud.polaris.loadbalancer.shortest-response-time.slide-period",
|
|
"type": "java.lang.Long",
|
|
"defaultValue": 30000,
|
|
"description": "The length of the average response time calculation window for instances in milliseconds. The default is 30000 milliseconds."
|
|
}
|
|
],
|
|
"hints": [
|
|
{
|
|
"name": "spring.cloud.loadbalancer.strategy",
|
|
"values": [
|
|
{
|
|
"value": "polarisWeightedRoundRobin",
|
|
"description": "polaris weighted round robin load balancer."
|
|
},
|
|
{
|
|
"value": "roundRobin",
|
|
"description": "round robin load balancer."
|
|
},
|
|
{
|
|
"value": "random",
|
|
"description": "random load balancer."
|
|
},
|
|
{
|
|
"value": "polarisWeightedRandom",
|
|
"description": "polaris weighted random load balancer."
|
|
},
|
|
{
|
|
"value": "polarisShortestResponseTime",
|
|
"description": "polaris shortest response time load balancer."
|
|
},
|
|
{
|
|
"value": "polarisRingHash",
|
|
"description": "polaris ring hash load balancer."
|
|
},
|
|
{
|
|
"value": "polarisLeastConnection",
|
|
"description": "polaris least connection load balancer."
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|