The SoftLayer_Network_LoadBalancer_Service data type contains all the information relating to a specific service (destination) on a particular load balancer.
Information retained on the object itself is the the source and destination of the service, routing type, weight, and whether or not the service is currently enabled.
The IP Address of the real server you wish to direct traffic to. Your account must own this IP
Type:
string
The port on the real server to direct the traffic. This can be different than the source port. If you wish to obfuscate your HTTP traffic, you can accept requests on port 80 on the load balancer, then redirect them to port 932 on your real server.
Type:
int
A flag (either true or false) that determines if this particular service should be enabled on the load balancer. Set to false to bring the server out of rotation without losing your configuration
Type:
boolean
The health check type for this service. If one is supplied, the load balancer will occasionally ping your server to determine if it is still up. Servers that are down are removed from the queue and will not be used to handle requests until their status returns to “up”. The value of the health check is determined directly by what option you have selected for the routing type.
{ |
---|
! Type |
! Valid Health Checks |
- |
HTTP |
HTTP, TCP, ICMP |
- |
TCP |
HTTP, TCP, ICMP |
- |
FTP |
TCP, ICMP |
- |
DNS |
DNS, ICMP |
- |
UDP |
None |
} |
The URL provided here (starting with /) is what the load balancer will request in order to perform a custom HTTP health check. You must specify either “GET /location/of/file.html” or “HEAD /location/of/file.php”
Type:
string
The expected response from the custom HTTP health check. If the requested page contains this response, the check succeeds.
Type:
string
Unique ID for this object, used for the getObject method, and must be set if you are editing this object.
Type:
int
Holds whether this server is up or down. Does not affect load balancer configuration at all, just for the customer’s informational purposes
Type:
string
Peak historical connections since the creation of this service. Is reset any time you make a configuration change
Type:
int
The port on the load balancer that this service maps to. This is the port for incoming traffic, it needs to be shared with other services to form a group.
Type:
int
The connection type of this service. Valid values are HTTP, FTP, TCP, UDP, and DNS. The value of this variable affects available values of healthCheck, listed in that variable’s description
Type:
string
Unique ID for this object’s parent. Probably not useful in the API, as this object will always be a child of a VirtualIpAddress anyway.
Type:
int
Weight affects the choices the load balancer makes between your services. The weight of each service is expressed as a percentage of the TOTAL CONNECTION LIMIT on the virtual IP Address. All services draw from the same pool of connections, so if you expect to have 4 times as much HTTP traffic as HTTPS, your weights for the above example routes would be 40%, 40%, 10%, 10% respectively. The weights should add up to 100% If you go over 100%, an exception will be thrown. Weights must be whole numbers, no fractions or decimals are accepted.
Type:
int
The load balancer that this service belongs to.
Type:
SoftLayer_Network_LoadBalancer_VirtualIpAddress