Example Match Rules
Equalizer Installation and Administration Guide
229
Changing Persistence Settings Using Match Rules
By default, a client request that matches a match rule expression is load balanced using the same load balancing
parameters and options that are currently set on the cluster. This section shows you how to change load balancing
parameters and flags in a match rule.
For example, persistent connections to servers are enabled by the
persist
cluster flag, which is enabled by default
when you create a cluster. While you could select the
dont persist
option for a server, this means that
all
connections to that server will not be persistent. Let’s assume that you only want to disable persistence for incoming
requests that have a URI containing a hostname in the following format:
xxx
.testexample.com
We’ll use the
host_suffix()
match rule function to test for the above hostname format. For this example, we
assume that a cluster with three servers (
sv00
,
sv01
,
sv02
) has already been defined. We will construct a match rule
that turn off
persist
for any request that contains the host suffix “
testexample.com
”; this request will be balanced
across all three servers in the cluster.
1. Log into the Administrative Interface using a login that has
add/del
access for the cluster (see “Logging In” on
page 52).
2. In the left frame, right-click the name of the Layer 7 cluster to which you want to add the rule, and select
Add
Match Rule
. The
Add Match Rule
dialog appears:
a.
Type
nopersist
into the
match name
text box.
b. Select all the servers in the
servers
list using the
Ctrl
or
Shift
key and the left mouse button
c.
Select
commit
.
The match rule is created, added to the object tree, and its
Configuration
tab is opened, as shown on the
following page:
3. In the
expression
field, select
any()
to open the
Select function
dialog:
a.
Select
replace with host_suffix
from the drop-down box.
Содержание E350GX
Страница 18: ...Chapter Preface 18 Equalizer Installation and Administration Guide ...
Страница 38: ...Chapter 1 Equalizer Overview 38 Equalizer Installation and Administration Guide ...
Страница 50: ...Chapter 2 Installing and Configuring Equalizer Hardware 50 Equalizer Installation and Administration Guide ...
Страница 62: ...Chapter 3 Using the Administration Interface 62 Equalizer Installation and Administration Guide ...
Страница 80: ...Chapter 4 Equalizer Network Configuration 80 Equalizer Installation and Administration Guide ...
Страница 110: ...Chapter 5 Configuring Equalizer Operation 110 Equalizer Installation and Administration Guide ...
Страница 208: ...Chapter 7 Monitoring Equalizer Operation 208 Equalizer Installation and Administration Guide ...
Страница 240: ...Chapter 8 Using Match Rules 238 Equalizer Installation and Administration Guide ...
Страница 258: ...Chapter 9 Administering GeoClusters 254 Equalizer Installation and Administration Guide Envoy Configuration Worksheet ...
Страница 262: ...Appendix A Server Agent Probes 258 Equalizer Installation and Administration Guide ...
Страница 274: ...Appendix B Timeout Configuration 270 Equalizer Installation and Administration Guide ...
Страница 280: ...Appendix D Regular Expression Format 276 Equalizer Installation and Administration Guide ...
Страница 296: ...Appendix E Using Certificates in HTTPS Clusters 292 Equalizer Installation and Administration Guide ...
Страница 310: ...Appendix F Equalizer VLB 306 Equalizer Installation and Administration Guide ...
Страница 318: ...Appendix G Troubleshooting 314 Equalizer Installation and Administration Guide ...