This configuration page is used to add an LLB link or modifies the bandwidth threshold for an existing LLB link. After this command is executed, the system will automatically generate an Eroute with the priority of 2 for the new LLB link.
| Field Group Name | Field Name | Type | Description |
|---|---|---|---|
| default | name | string | |
| default | route_ip | ipaddr | |
| default | weight | uint32 | Sets the weight for LLB method weighted round robin and hash ip. |
| default | hc_scrip | ipaddr | Sets the source IP address of the LLB health check packets. If the default value is specified, the system will automatically select the interface IP address that is in the same subnet as the gateway as the source IP address. |
| default | bw_threshold | string | Sets the maximum bandwidth allowed for this link, in Mbps or Gbps. This value is not a strict limit. If the real traffic load exceeds the allowed maximum bandwidth, the packets will not be lost but forwarded via other links. If no available link is found, the packets will still be forwarded using this link. |
| default | enable | boolean | |
| default | health_check | asso | |
| link_stats | resp_time | StorableField |
{
"LLBLinkRoute": {
"meta": {
"abstract": false,
"verbose_name": LLB Link Route,
},
"fieldgroups": [
{
"fields": [
{
"verbose_name": field_verbose_name1,
"field_name": field_name1
},
...
],
"group_name": field_group_name1
},
...
]
}
}
{
<param1>:<value1>,
<param2>:<value2>,
...
}
| Parameter | Type | Description | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| name | string | ||||||||||
| route_ip | ipaddr (Nested Field. It should be a dict.)
|
||||||||||
| weight | uint32 | Sets the weight for LLB method weighted round robin and hash ip. | |||||||||
| hc_scrip | ipaddr (Nested Field. It should be a dict.)
|
Sets the source IP address of the LLB health check packets. If the default value is specified, the system will automatically select the interface IP address that is in the same subnet as the gateway as the source IP address. | |||||||||
| bw_threshold | string | Sets the maximum bandwidth allowed for this link, in Mbps or Gbps. This value is not a strict limit. If the real traffic load exceeds the allowed maximum bandwidth, the packets will not be lost but forwarded via other links. If no available link is found, the packets will still be forwarded using this link. | |||||||||
| enable | boolean |
{
"LLBLinkRoute": {
"instance_id":<instance_id>,
<param1>:<value1>,
<param2>:<value2>,
...
}
}
{
"LLBLinkRoute": [
{
"instance_id":<instance_id>,
<param1>:<value1>,
<param2>:<value2>,
...
},
...
]
}
| Parameter | Type | Description |
|---|---|---|
| instance_id | URI | ID of the instance |
| field_group_name | URI | (optional) Target field group name to query. Available names are: default, link_stats, Notice: There could only be one field_group_name or field_name in the URL. And if both field_group_name and field_name are not specified, will try to query default field_group data. |
| field_name | URI | (optional) Target field name to query. Available names are: name, route_ip, weight, hc_scrip, bw_threshold, enable, health_check, resp_time, Notice: There could only be one field_group_name or field_name in the URL. |
| Field Group Name | Field Name | Type | Description |
|---|---|---|---|
| default | name | string | |
| default | route_ip | ipaddr | |
| default | weight | uint32 | Sets the weight for LLB method weighted round robin and hash ip. |
| default | hc_scrip | ipaddr | Sets the source IP address of the LLB health check packets. If the default value is specified, the system will automatically select the interface IP address that is in the same subnet as the gateway as the source IP address. |
| default | bw_threshold | string | Sets the maximum bandwidth allowed for this link, in Mbps or Gbps. This value is not a strict limit. If the real traffic load exceeds the allowed maximum bandwidth, the packets will not be lost but forwarded via other links. If no available link is found, the packets will still be forwarded using this link. |
| default | enable | boolean | |
| default | health_check | asso | |
| link_stats | resp_time | StorableField |
{
"LLBLinkRoute": {
"instance_id":<instance_id>,
<field1>:<value1>,
<field2>:<value2>,
...
}
}
When some field_group name is provided:
{
"LLBLinkRoute": {
"instance_id":<instance_id>,
<field1>:<value1>,
<field2>:<value2>,
...
}
}
When some field name is provided:
{
"LLBLinkRoute": {
"instance_id":<instance_id>,
<field>:<value>,
}
}
{
"msg": <success-or-error-msg>
}
{
<field_name>:<value>
}
When field name is not specified in URL:
Notice: The fields not provided are left untouched.
{
<field_name1>:<value1>,
<field_name2>:<value2>,
...
}
| Parameter | Type | Description |
|---|---|---|
| instance_id | URI | ID of the instance |
| field_name | URI | (optional) Target field name to update. Available field names are: weight, bw_threshold, enable, |
| Field Name | Type | Description |
|---|---|---|
| weight | uint32 | Sets the weight for LLB method weighted round robin and hash ip. |
| bw_threshold | string | Sets the maximum bandwidth allowed for this link, in Mbps or Gbps. This value is not a strict limit. If the real traffic load exceeds the allowed maximum bandwidth, the packets will not be lost but forwarded via other links. If no available link is found, the packets will still be forwarded using this link. |
| enable | boolean |
All configuration fields and their values are replied:
{
"LLBLinkRoute": {
"instance_id":<instance_id>,
<field1>:<value1>,
<field2>:<value2>,
...
<field_group1>: {
<field3>:<value3>,
<field4>:<value4>,
...
},
<field_group2>: {
<field5>:<value5>,
<field6>:<value6>,
...
},
...
}
}
| Parameter | Type | Description |
|---|---|---|
| instance_id | URI | ID of the instance |
{
"LLBLinkRoute": {
"instance_id":<instance_id>,
"health_check":[
{
<field1>:<value1>,
<field2>:<value2>,
...
}
]
}
}
{
<param1>:<value1>,
<param2>:<value2>,
...
}
| Parameter | Type | Description |
|---|---|---|
| host | UnionField | Sets the host name or IP address of the destination host. |
| interval | int | Sets the time interval between health checks. |
| timeout | int | Sets the maximum time that the system waiting the health check response. |
| hc_up | uint32 | |
| hc_down | uint32 | |
| domain | string |
{
"LLBLinkDNSHealthChecker": {
"instance_id":<instance_id>,
<param1>:<value1>,
<param2>:<value2>,
...
}
}
{
"msg": <success-or-error-msg>
}
{
<param1>:<value1>,
<param2>:<value2>,
...
}
| Parameter | Type | Description |
|---|---|---|
| host | UnionField | Sets the host name or IP address of the destination host. |
| interval | int | Sets the time interval between health checks. |
| timeout | int | Sets the maximum time that the system waiting the health check response. |
| hc_up | uint32 | |
| hc_down | uint32 | |
| port | uint16 |
{
"LLBLinkTCPHealthChecker": {
"instance_id":<instance_id>,
<param1>:<value1>,
<param2>:<value2>,
...
}
}
{
"msg": <success-or-error-msg>
}
{
<param1>:<value1>,
<param2>:<value2>,
...
}
| Parameter | Type | Description |
|---|---|---|
| host | UnionField | Sets the host name or IP address of the destination host. |
| interval | int | Sets the time interval between health checks. |
| timeout | int | Sets the maximum time that the system waiting the health check response. |
| hc_up | uint32 | |
| hc_down | uint32 |
{
"LLBLinkICMPHealthChecker": {
"instance_id":<instance_id>,
<param1>:<value1>,
<param2>:<value2>,
...
}
}
{
"msg": <success-or-error-msg>
}