haproxy_backend_create
Create a new HAProxy backend by specifying name, mode, load balancing algorithm, and server details for optimized traffic distribution and management.
Instructions
Create a new HAProxy backend
Input Schema
Name | Required | Description | Default |
---|---|---|---|
balance | Yes | Load balancing algorithm | |
description | No | ||
mode | Yes | Backend mode | |
name | Yes | Backend name | |
servers | No | List of backend servers |
Input Schema (JSON Schema)
{
"properties": {
"balance": {
"description": "Load balancing algorithm",
"enum": [
"roundrobin",
"leastconn",
"source",
"uri",
"hdr",
"random"
],
"type": "string"
},
"description": {
"type": "string"
},
"mode": {
"description": "Backend mode",
"enum": [
"http",
"tcp"
],
"type": "string"
},
"name": {
"description": "Backend name",
"type": "string"
},
"servers": {
"description": "List of backend servers",
"items": {
"properties": {
"address": {
"type": "string"
},
"name": {
"type": "string"
},
"port": {
"type": "number"
},
"ssl": {
"type": "boolean"
},
"verify": {
"enum": [
"none",
"required"
],
"type": "string"
}
},
"required": [
"name",
"address",
"port"
],
"type": "object"
},
"type": "array"
}
},
"required": [
"name",
"mode",
"balance"
],
"type": "object"
}