General Match Expressions and Match Bodies
Equalizer Installation and Administration Guide
213
Match Rule Definitions
Match rules are defined in the file
/var/eq/eq.conf
with the definition of the cluster to which the match rule applies.
A match rule as it appears in
eq.conf
looks like the following example:
match ma01 {
client_ip("10.0.0.19")
} then {
flags = !spoof;
servers = sv_01;
}
In this example (the match rule is named “ma01”), the match function,
client_ip
, has an argument that matches
all requests from IP address
10.0.0.19
, which are all sent to server sv_01. Additionally, this rule disables the
spoof
flag (that is, when the connection is made to the server, the server sees a connection to the Equalizer, not to
the client). This rule looks as follow in the Administrative Interface:
Figure 43 Example match rule
The
expression
section of the screen shows the expression that is evaluated against the incoming request. If the
expression evaluates to
true
, the
servers and options
section specifies the servers that will be used to satisfy the
incoming request, as well as the options that will be set for the request. The next section of this document explains
all the match rule settings in detail.
If the incoming client IP address
matches this expression...
...then, load balance the request
across the selected servers...
...and disable the spoof option
(leave all other options set to
the cluster settings).
Содержание 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 ...