Class: IControl::LocalLB::ProfileFastHttp
- Inherits:
-
Base
- Object
- Base
- IControl::LocalLB::ProfileFastHttp
- Defined in:
- lib/icontrol/local_lb/profile_fast_http.rb,
lib/icontrol/local_lb.rb
Overview
The ProfileFastHttp interface enables you to manipulate a local load balancer’s Fast HTTP profile.
Defined Under Namespace
Classes: ProfileFastHttpStatisticEntry, ProfileFastHttpStatisticEntrySequence, ProfileFastHttpStatistics
Instance Method Summary collapse
-
#all_statistics ⇒ ProfileFastHttpStatistics
Gets the statistics for all the Fast HTTP profile.
-
#client_close_timeout ⇒ ProfileULong
Gets the idle timeout override when waiting for the client to close.
-
#connection_pool_idle_timeout ⇒ ProfileULong
Gets the idle timeout override for unspliced serverside flows in the reuse pool.
-
#connection_pool_maximum_reuse ⇒ ProfileULong
Gets the maximum number of times a serverside flow will be reused.
-
#connection_pool_maximum_size ⇒ ProfileULong
Gets the maximum number of connections to any given LB pool.
-
#connection_pool_minimum_size ⇒ ProfileULong
Gets the minimum number of connections to any given LB pool.
-
#connection_pool_ramp_increment ⇒ ProfileULong
Gets the connection ramp-up increments for this Fast HTTP profile.
-
#connection_pool_replenish_state ⇒ ProfileEnabledState
Gets the state that specifies whether the connpool should be replenished to its prior number of connections when a connection is closed by the server.
-
#create ⇒ Object
Creates this Fast HTTP profile.
-
#default_profile ⇒ String
Gets the names of the default profile from which this profile will derive default values for its attributes.
-
#delete_all_profiles ⇒ Object
Deletes all Fast HTTP profile.
-
#delete_profile ⇒ Object
Deletes this Fast HTTP profile.
-
#force_http10_response_state ⇒ ProfileEnabledState
Gets the state that if true, rewrite server’s HTTP version to 1.0 in status line in order to dissuade the client from pipelining or chunking.
-
#header_insert ⇒ ProfileString
Gets the strings to be inserted as headers for this HTTP profile.
-
#http11_close_workarounds_state ⇒ ProfileEnabledState
Gets the state that if true, work around problems with certain brands of benchmarking software that cannot handle FIN-PUSH on HTTP/1.1 responses.
-
#idle_timeout ⇒ ProfileULong
Gets the idle timeout for this Fast HTTP profile.
-
#insert_xforwarded_for_header_mode ⇒ ProfileProfileMode
Gets the mode to indicate whether to insert X-Forwarded-For headers for this profile.
-
#is_base_profile ⇒ boolean
Determines whether this profile are base/pre-configured profile, or user-defined profile.
-
#layer7_state ⇒ ProfileEnabledState
Gets the state that if false, we will not parse the HTTP requests.
-
#list ⇒ String
Gets a list of all Fast HTTP profile.
-
#maximum_header_size ⇒ ProfileULong
Gets the maximum amount of data that will be buffered in order to make a content-switching decision.
-
#maximum_requests ⇒ ProfileULong
Gets the maximum number of requests on a clientside flow before the flow is shutdown.
-
#mss_override ⇒ ProfileULong
Gets the MSS override values for this profile.
-
#reset_on_timeout_state ⇒ ProfileEnabledState
Gets the reset on timeout states for this Fast HTTP profile.
-
#reset_statistics ⇒ Object
Resets the statistics for this Fast HTTP profile.
-
#server_close_timeout ⇒ ProfileULong
Gets the idle timeout override when waiting for the server to close.
-
#set_client_close_timeout(opts) ⇒ Object
Sets the idle timeout override when waiting for the client to close.
-
#set_connection_pool_idle_timeout(opts) ⇒ Object
Sets the idle timeout override for unspliced serverside flows in the reuse pool.
-
#set_connection_pool_maximum_reuse(opts) ⇒ Object
Sets the maximum number of times a serverside flow will be reused.
-
#set_connection_pool_maximum_size(opts) ⇒ Object
Sets the maximum number of connections to any given LB pool.
-
#set_connection_pool_minimum_size(opts) ⇒ Object
Sets the minimum number of connections to any given LB pool.
-
#set_connection_pool_ramp_increment(opts) ⇒ Object
Sets the connection ramp-up increments for this Fast HTTP profile.
-
#set_connection_pool_replenish_state(opts) ⇒ Object
Sets the state that specifies whether the connpool should be replenished to its prior number of connections when a connection is closed by the server.
-
#set_default_profile(opts) ⇒ Object
Sets the names of the default profile from which this profile will derive default values for its attributes.
-
#set_force_http10_response_state(opts) ⇒ Object
Sets the state that if true, rewrite server’s HTTP version to 1.0 in status line in order to dissuade the client from pipelining or chunking.
-
#set_header_insert(opts) ⇒ Object
Insert the given string as a header.
-
#set_http11_close_workarounds_state(opts) ⇒ Object
Sets the state that if true, work around problems with certain brands of benchmarking software that cannot handle FIN-PUSH on HTTP/1.1 responses.
-
#set_idle_timeout(opts) ⇒ Object
Sets the idle timeout for this Fast HTTP profile.
-
#set_insert_xforwarded_for_header_mode(opts) ⇒ Object
Sets the mode to indicate whether to insert X-Forwarded-For headers for this profile.
-
#set_layer7_state(opts) ⇒ Object
Sets the state that if false, we will not parse the HTTP requests.
-
#set_maximum_header_size(opts) ⇒ Object
Sets the maximum amount of data that will be buffered in order to make a content-switching decision.
-
#set_maximum_requests(opts) ⇒ Object
Sets the maximum number of requests on a clientside flow before the flow is shutdown.
-
#set_mss_override(opts) ⇒ Object
Sets the MSS override values for this profile.
-
#set_reset_on_timeout_state(opts) ⇒ Object
Sets the reset on timeout states for this Fast HTTP profile.
-
#set_server_close_timeout(opts) ⇒ Object
Sets the idle timeout override when waiting for the server to close.
-
#set_unclean_shutdown_mode(opts) ⇒ Object
Sets the mode to indicate whether to do unclean shutdown for client connections.
-
#statistics ⇒ ProfileFastHttpStatistics
Gets the statistics for this Fast HTTP profile.
-
#unclean_shutdown_mode ⇒ ProfileUncleanShutdownMode
Gets the mode to indicate whether to do unclean shutdown for client connections.
-
#version ⇒ String
Gets the version information for this interface.
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class IControl::Base
Instance Method Details
#all_statistics ⇒ ProfileFastHttpStatistics
Gets the statistics for all the Fast HTTP profile.
48 49 50 |
# File 'lib/icontrol/local_lb/profile_fast_http.rb', line 48 def all_statistics super end |
#client_close_timeout ⇒ ProfileULong
Gets the idle timeout override when waiting for the client to close. This occurs after a client FIN is received or after a FIN is sent.
60 61 62 |
# File 'lib/icontrol/local_lb/profile_fast_http.rb', line 60 def client_close_timeout super end |
#connection_pool_idle_timeout ⇒ ProfileULong
Gets the idle timeout override for unspliced serverside flows in the reuse pool. 0 is disabled, i.e. use the default idle timeout.
72 73 74 |
# File 'lib/icontrol/local_lb/profile_fast_http.rb', line 72 def connection_pool_idle_timeout super end |
#connection_pool_maximum_reuse ⇒ ProfileULong
Gets the maximum number of times a serverside flow will be reused. 0 for unlimited.
83 84 85 |
# File 'lib/icontrol/local_lb/profile_fast_http.rb', line 83 def connection_pool_maximum_reuse super end |
#connection_pool_maximum_size ⇒ ProfileULong
Gets the maximum number of connections to any given LB pool. 0 for unlimited.
94 95 96 |
# File 'lib/icontrol/local_lb/profile_fast_http.rb', line 94 def connection_pool_maximum_size super end |
#connection_pool_minimum_size ⇒ ProfileULong
Gets the minimum number of connections to any given LB pool. 0 is an acceptable value.
105 106 107 |
# File 'lib/icontrol/local_lb/profile_fast_http.rb', line 105 def connection_pool_minimum_size super end |
#connection_pool_ramp_increment ⇒ ProfileULong
Gets the connection ramp-up increments for this Fast HTTP profile. Must be greater than 0.
117 118 119 |
# File 'lib/icontrol/local_lb/profile_fast_http.rb', line 117 def connection_pool_ramp_increment super end |
#connection_pool_replenish_state ⇒ ProfileEnabledState
Gets the state that specifies whether the connpool should be replenished to its prior number of connections when a connection is closed by the server. If this is disabled, then we will only replenish a closed server side connection residing in the connpool if there are less than connpool_min_size connections in the pool.
131 132 133 |
# File 'lib/icontrol/local_lb/profile_fast_http.rb', line 131 def connection_pool_replenish_state super end |
#create ⇒ Object
Creates this Fast HTTP profile.
17 18 19 |
# File 'lib/icontrol/local_lb/profile_fast_http.rb', line 17 def create super end |
#default_profile ⇒ String
Gets the names of the default profile from which this profile will derive default values for its attributes.
143 144 145 |
# File 'lib/icontrol/local_lb/profile_fast_http.rb', line 143 def default_profile super end |
#delete_all_profiles ⇒ Object
Deletes all Fast HTTP profile.
27 28 29 |
# File 'lib/icontrol/local_lb/profile_fast_http.rb', line 27 def delete_all_profiles super end |
#delete_profile ⇒ Object
Deletes this Fast HTTP profile.
37 38 39 |
# File 'lib/icontrol/local_lb/profile_fast_http.rb', line 37 def delete_profile super end |
#force_http10_response_state ⇒ ProfileEnabledState
Gets the state that if true, rewrite server’s HTTP version to 1.0 in status line in order to dissuade the client from pipelining or chunking.
155 156 157 |
# File 'lib/icontrol/local_lb/profile_fast_http.rb', line 155 def force_http10_response_state super end |
#header_insert ⇒ ProfileString
Gets the strings to be inserted as headers for this HTTP profile.
166 167 168 |
# File 'lib/icontrol/local_lb/profile_fast_http.rb', line 166 def header_insert super end |
#http11_close_workarounds_state ⇒ ProfileEnabledState
Gets the state that if true, work around problems with certain brands of benchmarking software that cannot handle FIN-PUSH on HTTP/1.1 responses.
178 179 180 |
# File 'lib/icontrol/local_lb/profile_fast_http.rb', line 178 def http11_close_workarounds_state super end |
#idle_timeout ⇒ ProfileULong
Gets the idle timeout for this Fast HTTP profile. The number of seconds without traffic before a connection is eligible for deletion.
190 191 192 |
# File 'lib/icontrol/local_lb/profile_fast_http.rb', line 190 def idle_timeout super end |
#insert_xforwarded_for_header_mode ⇒ ProfileProfileMode
Gets the mode to indicate whether to insert X-Forwarded-For headers for this profile.
201 202 203 |
# File 'lib/icontrol/local_lb/profile_fast_http.rb', line 201 def insert_xforwarded_for_header_mode super end |
#is_base_profile ⇒ boolean
Determines whether this profile are base/pre-configured profile, or user-defined profile.
327 328 329 |
# File 'lib/icontrol/local_lb/profile_fast_http.rb', line 327 def is_base_profile super end |
#layer7_state ⇒ ProfileEnabledState
Gets the state that if false, we will not parse the HTTP requests. This is useful for providing SYN-proxy protection for L4 connections through a SNAT where the client sends data to the server before the server responds.
214 215 216 |
# File 'lib/icontrol/local_lb/profile_fast_http.rb', line 214 def layer7_state super end |
#list ⇒ String
Gets a list of all Fast HTTP profile.
225 226 227 |
# File 'lib/icontrol/local_lb/profile_fast_http.rb', line 225 def list super end |
#maximum_header_size ⇒ ProfileULong
Gets the maximum amount of data that will be buffered in order to make a content-switching decision.
237 238 239 |
# File 'lib/icontrol/local_lb/profile_fast_http.rb', line 237 def maximum_header_size super end |
#maximum_requests ⇒ ProfileULong
Gets the maximum number of requests on a clientside flow before the flow is shutdown.
248 249 250 |
# File 'lib/icontrol/local_lb/profile_fast_http.rb', line 248 def maximum_requests super end |
#mss_override ⇒ ProfileULong
Gets the MSS override values for this profile. If non-zero and less than the default value, this value overrides the maximum segment size for serverside flows.
260 261 262 |
# File 'lib/icontrol/local_lb/profile_fast_http.rb', line 260 def mss_override super end |
#reset_on_timeout_state ⇒ ProfileEnabledState
Gets the reset on timeout states for this Fast HTTP profile. If true and a TCP connection exceeds its idle timeout, send a reset in addition to deleting the connection.
272 273 274 |
# File 'lib/icontrol/local_lb/profile_fast_http.rb', line 272 def reset_on_timeout_state super end |
#reset_statistics ⇒ Object
Resets the statistics for this Fast HTTP profile.
337 338 339 |
# File 'lib/icontrol/local_lb/profile_fast_http.rb', line 337 def reset_statistics super end |
#server_close_timeout ⇒ ProfileULong
Gets the idle timeout override when waiting for the server to close. This occurs if the server flow is not suitable for reuse or after a FIN is received on an unspliced server connection.
285 286 287 |
# File 'lib/icontrol/local_lb/profile_fast_http.rb', line 285 def server_close_timeout super end |
#set_client_close_timeout(opts) ⇒ Object
Sets the idle timeout override when waiting for the client to close. This occurs after a client FIN is received or after a FIN is sent.
350 351 352 353 |
# File 'lib/icontrol/local_lb/profile_fast_http.rb', line 350 def set_client_close_timeout(opts) opts = check_params(opts,[:timeouts]) super(opts) end |
#set_connection_pool_idle_timeout(opts) ⇒ Object
Sets the idle timeout override for unspliced serverside flows in the reuse pool. 0 is disabled, i.e. use the default idle timeout.
364 365 366 367 |
# File 'lib/icontrol/local_lb/profile_fast_http.rb', line 364 def set_connection_pool_idle_timeout(opts) opts = check_params(opts,[:timeouts]) super(opts) end |
#set_connection_pool_maximum_reuse(opts) ⇒ Object
Sets the maximum number of times a serverside flow will be reused. 0 for unlimited.
377 378 379 380 |
# File 'lib/icontrol/local_lb/profile_fast_http.rb', line 377 def set_connection_pool_maximum_reuse(opts) opts = check_params(opts,[:reuses]) super(opts) end |
#set_connection_pool_maximum_size(opts) ⇒ Object
Sets the maximum number of connections to any given LB pool. 0 for unlimited.
390 391 392 393 |
# File 'lib/icontrol/local_lb/profile_fast_http.rb', line 390 def set_connection_pool_maximum_size(opts) opts = check_params(opts,[:sizes]) super(opts) end |
#set_connection_pool_minimum_size(opts) ⇒ Object
Sets the minimum number of connections to any given LB pool. 0 is an acceptable value.
403 404 405 406 |
# File 'lib/icontrol/local_lb/profile_fast_http.rb', line 403 def set_connection_pool_minimum_size(opts) opts = check_params(opts,[:sizes]) super(opts) end |
#set_connection_pool_ramp_increment(opts) ⇒ Object
Sets the connection ramp-up increments for this Fast HTTP profile. Must be greater than 0.
417 418 419 420 |
# File 'lib/icontrol/local_lb/profile_fast_http.rb', line 417 def set_connection_pool_ramp_increment(opts) opts = check_params(opts,[:increments]) super(opts) end |
#set_connection_pool_replenish_state(opts) ⇒ Object
Sets the state that specifies whether the connpool should be replenished to its prior number of connections when a connection is closed by the server. If this is disabled, then we will only replenish a closed server side connection residing in the connpool if there are less than connpool_min_size connections in the pool.
433 434 435 436 |
# File 'lib/icontrol/local_lb/profile_fast_http.rb', line 433 def set_connection_pool_replenish_state(opts) opts = check_params(opts,[:states]) super(opts) end |
#set_default_profile(opts) ⇒ Object
Sets the names of the default profile from which this profile will derive default values for its attributes.
447 448 449 450 |
# File 'lib/icontrol/local_lb/profile_fast_http.rb', line 447 def set_default_profile(opts) opts = check_params(opts,[:defaults]) super(opts) end |
#set_force_http10_response_state(opts) ⇒ Object
Sets the state that if true, rewrite server’s HTTP version to 1.0 in status line in order to dissuade the client from pipelining or chunking.
461 462 463 464 |
# File 'lib/icontrol/local_lb/profile_fast_http.rb', line 461 def set_force_http10_response_state(opts) opts = check_params(opts,[:states]) super(opts) end |
#set_header_insert(opts) ⇒ Object
Insert the given string as a header. If the header already exists, it is not replaced. Unlike HTTP, this string does not support rule command expansion.
475 476 477 478 |
# File 'lib/icontrol/local_lb/profile_fast_http.rb', line 475 def set_header_insert(opts) opts = check_params(opts,[:headers]) super(opts) end |
#set_http11_close_workarounds_state(opts) ⇒ Object
Sets the state that if true, work around problems with certain brands of benchmarking software that cannot handle FIN-PUSH on HTTP/1.1 responses.
489 490 491 492 |
# File 'lib/icontrol/local_lb/profile_fast_http.rb', line 489 def set_http11_close_workarounds_state(opts) opts = check_params(opts,[:states]) super(opts) end |
#set_idle_timeout(opts) ⇒ Object
Sets the idle timeout for this Fast HTTP profile. The number of seconds without traffic before a connection is eligible for deletion.
503 504 505 506 |
# File 'lib/icontrol/local_lb/profile_fast_http.rb', line 503 def set_idle_timeout(opts) opts = check_params(opts,[:timeouts]) super(opts) end |
#set_insert_xforwarded_for_header_mode(opts) ⇒ Object
Sets the mode to indicate whether to insert X-Forwarded-For headers for this profile.
516 517 518 519 |
# File 'lib/icontrol/local_lb/profile_fast_http.rb', line 516 def set_insert_xforwarded_for_header_mode(opts) opts = check_params(opts,[:modes]) super(opts) end |
#set_layer7_state(opts) ⇒ Object
Sets the state that if false, we will not parse the HTTP requests. This is useful for providing SYN-proxy protection for L4 connections through a SNAT where the client sends data to the server before the server responds.
531 532 533 534 |
# File 'lib/icontrol/local_lb/profile_fast_http.rb', line 531 def set_layer7_state(opts) opts = check_params(opts,[:states]) super(opts) end |
#set_maximum_header_size(opts) ⇒ Object
Sets the maximum amount of data that will be buffered in order to make a content-switching decision.
545 546 547 548 |
# File 'lib/icontrol/local_lb/profile_fast_http.rb', line 545 def set_maximum_header_size(opts) opts = check_params(opts,[:sizes]) super(opts) end |
#set_maximum_requests(opts) ⇒ Object
Sets the maximum number of requests on a clientside flow before the flow is shutdown.
558 559 560 561 |
# File 'lib/icontrol/local_lb/profile_fast_http.rb', line 558 def set_maximum_requests(opts) opts = check_params(opts,[:maximum_requests]) super(opts) end |
#set_mss_override(opts) ⇒ Object
Sets the MSS override values for this profile. If non-zero and less than the default value, this value overrides the maximum segment size for serverside flows.
572 573 574 575 |
# File 'lib/icontrol/local_lb/profile_fast_http.rb', line 572 def set_mss_override(opts) opts = check_params(opts,[:mss_overrides]) super(opts) end |
#set_reset_on_timeout_state(opts) ⇒ Object
Sets the reset on timeout states for this Fast HTTP profile. If true and a TCP connection exceeds its idle timeout, send a reset in addition to deleting the connection.
586 587 588 589 |
# File 'lib/icontrol/local_lb/profile_fast_http.rb', line 586 def set_reset_on_timeout_state(opts) opts = check_params(opts,[:states]) super(opts) end |
#set_server_close_timeout(opts) ⇒ Object
Sets the idle timeout override when waiting for the server to close. This occurs if the server flow is not suitable for reuse or after a FIN is received on an unspliced server connection.
601 602 603 604 |
# File 'lib/icontrol/local_lb/profile_fast_http.rb', line 601 def set_server_close_timeout(opts) opts = check_params(opts,[:timeouts]) super(opts) end |
#set_unclean_shutdown_mode(opts) ⇒ Object
Sets the mode to indicate whether to do unclean shutdown for client connections.
614 615 616 617 |
# File 'lib/icontrol/local_lb/profile_fast_http.rb', line 614 def set_unclean_shutdown_mode(opts) opts = check_params(opts,[:modes]) super(opts) end |
#statistics ⇒ ProfileFastHttpStatistics
Gets the statistics for this Fast HTTP profile.
296 297 298 |
# File 'lib/icontrol/local_lb/profile_fast_http.rb', line 296 def statistics super end |
#unclean_shutdown_mode ⇒ ProfileUncleanShutdownMode
Gets the mode to indicate whether to do unclean shutdown for client connections.
307 308 309 |
# File 'lib/icontrol/local_lb/profile_fast_http.rb', line 307 def unclean_shutdown_mode super end |
#version ⇒ String
Gets the version information for this interface.
315 316 317 |
# File 'lib/icontrol/local_lb/profile_fast_http.rb', line 315 def version super end |