Why Match Rules?
Equalizer Installation and Administration Guide
209
Figure 42 Conceptual Example of Match Rule Processing
Most client requests are a mix of requests for text and graphics. Layer 7 processing without Match Rules (top
diagram in Figure 42) balances requests across all the available servers in the cluster, so that each server will see a
mix of text and graphics requests. This means that all text and graphics must be available on each server.
Some sites may want to have one system serve only requests for graphics, and one system serve only text requests.
By adding appropriate Match Rules (bottom diagram in Figure 42), Equalizer can examine each request to determine
if the content requested is Text or Graphics, and send the request to the appropriate server. In this example, the
servers need only hold the content they are serving, text or graphics.
Match Rule Processing
A match rule is like an if-then statement: an expression is evaluated and if it evaluates to true the body of the match
rule applies to the request.
A match expression is a combination of match functions with logical operators, and can be arbitrarily complex. This
allows for matching requests that have, for example:
(attribute A) AND NOT (attribute B)
If the match expression evaluates to
true
, then the data in the request has selected the match rule, and the match
body applies. The
match body
contains statements that affect the subsequent handling of the request.
Multiple match rules are checked in order. Once the data in the request selects a match rule -- that is, the match rule
expression evaluates to
true
-- no further match rules are checked against the request.
Equalizer makes a load balancing decision as follows:
1. If the request headers contain a cookie that specifies a server in the match rule’s server list, Equalizer sends the
request to the server in the cookie.
2. Otherwise, Equalizer sends the request to the server in the match rule’s server list that is selected by the load
balancing policy in effect for the match rule.
Содержание 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 ...