|Oracle GlassFish Server Reference Manual
Part Number E24938-01
creates a configuration for the load balancer
create-http-lb-config [--help] [--responsetimeout 60] [httpsrouting=false] [--reloadinterval 60] [--monitor=false] [--property (name=value)[:name=value]*] --target target | config_name
create-http-lb-config subcommand to create a load balancer configuration. This configuration applies to load balancing in the HTTP path. After using this subcommand to create the load balancer configuration file, create the load balancer by running
You must specify either a target or a configuration name, or both. If you do not specify a target, the configuration is created without a target and you add one later using
create-http-lb-ref. If you don't specify a configuration name, a name is created based on the target name. If you specify both, the configuration is created with the specified name, referencing the specified target.
This subcommand is only applicable to Oracle GlassFish Server. This subcommand is not applicable to GlassFish Server Open Source Edition.
Displays the help text for the subcommand.
The time in seconds within which a server instance must return a response. If no response is received within the time period, the server is considered unhealthy. If set to a positive number, and the request is idempotent, the request is retried. If the request is not idempotent, an error page is returned. If set to 0 no timeout is used. The default is 60.
If set to
true, HTTPS requests to the load balancer result in HTTPS requests to the server instance. If set to
false, HTTPS requests to the load balancer result in HTTP requests to the server instance. The default is
The interval between checks for changes to the load balancer configuration file
loadbalancer.xml. When the check detects changes, the configuration file is reloaded. A value of
0 disables reloading.
Specifies whether monitoring is enabled. The default is
This option is deprecated. The value is always
Optional attribute name/value pairs for configuring the load balancer.
Specifies the target to which the load balancer configuration applies. If you don't specify a target, the load balancer configuration is created without a target. You can specify targets later using the subcommand
Valid values are:
cluster_name- Specifies that requests for this cluster will be handled by the load balancer.
stand-alone_instance_name- Specifies that requests for this standalone instance will be handled by the load balancer.
The name of the new load balancer configuration. This name must not conflict with any other load balancer groups, agents, configurations, clusters, or sever instances in the domain. If you don't specify a name, the load balancer configuration name is based on the target name, target_name
This example creates a load balancer configuration on a target named
mycluster and load balancer configuration named
asadmin> create-http-lb-config --target mycluster mylbconfigname Command create-http-lb-config executed successfully.
subcommand executed successfully
error in executing the subcommand