liuxiran edited a comment on issue #2080:
URL:
https://github.com/apache/apisix-dashboard/issues/2080#issuecomment-910407181
```json
nodes: {
"anyOf": [{
"patternProperties": {
".*": {
"description": "weight of node",
"minimum": 0,
"type": "integer"
}
},
"type": "object"
}, {
"items": {
"properties": {
"host": {
"pattern": "^\\*?[0-9a-zA-Z-._]+$",
"type": "string"
},
"metadata": {
"description": "metadata of node",
"type": "object"
},
"port": {
"description": "port of node",
"minimum": 1,
"type": "integer"
},
"priority": {
"default": 0,
"description": "priority of node",
"type": "integer"
},
"weight": {
"description": "weight of node",
"minimum": 0,
"type": "integer"
}
},
"required": ["host", "port", "weight"],
"type": "object"
},
"type": "array"
}]
}
```
Hi @foolwc here is our upstream nodes schema, you can see that we support
two type of nodes:
* currently we use the second one, which required `host` `port` and `weight`
* when we use FQDN, we can switch to the first one, that is:
```json
{
${host1}: ${weight1},
${host2}: ${weight2},
...
}
```
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]