eea3f46e1c885fa5107e376c58b39338cb4bfb09takashi<!DOCTYPE modulesynopsis SYSTEM "/style/modulesynopsis.dtd">
eea3f46e1c885fa5107e376c58b39338cb4bfb09takashi<?xml-stylesheet type="text/xsl" href="/style/manual.en.xsl"?>
eea3f46e1c885fa5107e376c58b39338cb4bfb09takashi<!-- $LastChangedRevision$ -->
eea3f46e1c885fa5107e376c58b39338cb4bfb09takashi Licensed to the Apache Software Foundation (ASF) under one or more
eea3f46e1c885fa5107e376c58b39338cb4bfb09takashi contributor license agreements. See the NOTICE file distributed with
eea3f46e1c885fa5107e376c58b39338cb4bfb09takashi this work for additional information regarding copyright ownership.
eea3f46e1c885fa5107e376c58b39338cb4bfb09takashi The ASF licenses this file to You under the Apache License, Version 2.0
eea3f46e1c885fa5107e376c58b39338cb4bfb09takashi (the "License"); you may not use this file except in compliance with
eea3f46e1c885fa5107e376c58b39338cb4bfb09takashi the License. You may obtain a copy of the License at
eea3f46e1c885fa5107e376c58b39338cb4bfb09takashi Unless required by applicable law or agreed to in writing, software
eea3f46e1c885fa5107e376c58b39338cb4bfb09takashi distributed under the License is distributed on an "AS IS" BASIS,
eea3f46e1c885fa5107e376c58b39338cb4bfb09takashi WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
eea3f46e1c885fa5107e376c58b39338cb4bfb09takashi See the License for the specific language governing permissions and
eea3f46e1c885fa5107e376c58b39338cb4bfb09takashi limitations under the License.
eea3f46e1c885fa5107e376c58b39338cb4bfb09takashi<modulesynopsis metafile="mod_lbmethod_bytraffic.xml.meta">
eea3f46e1c885fa5107e376c58b39338cb4bfb09takashi<description>Weighted Traffic Counting load balancer scheduler algorithm for <module
eea3f46e1c885fa5107e376c58b39338cb4bfb09takashi<compatibility>Split off from <module>mod_proxy_balancer</module> in 2.3</compatibility>
a357a8bf5e65ac967c6faea297fbd6d1f8373c05rbowen<p>This module does not provide any configuration directives of its own.
a357a8bf5e65ac967c6faea297fbd6d1f8373c05rbowenIt requires the services of <module>mod_proxy_balancer</module>, and
a357a8bf5e65ac967c6faea297fbd6d1f8373c05rbowenprovides the <code>bytraffic</code> load balancing method..</p>
eea3f46e1c885fa5107e376c58b39338cb4bfb09takashi<seealso><module>mod_proxy_balancer</module></seealso>
eea3f46e1c885fa5107e376c58b39338cb4bfb09takashi <p>Enabled via <code>lbmethod=bytraffic</code>, the idea behind this
eea3f46e1c885fa5107e376c58b39338cb4bfb09takashi scheduler is very similar to the Request Counting method, with
eea3f46e1c885fa5107e376c58b39338cb4bfb09takashi the following changes:</p>
eea3f46e1c885fa5107e376c58b39338cb4bfb09takashi <p><dfn>lbfactor</dfn> is <em>how much traffic, in bytes, we want
eea3f46e1c885fa5107e376c58b39338cb4bfb09takashi this worker to handle</em>. This is also a normalized value
eea3f46e1c885fa5107e376c58b39338cb4bfb09takashi representing their "share" of the amount of work to be done,
eea3f46e1c885fa5107e376c58b39338cb4bfb09takashi but instead of simply counting the number of requests, we take
a6f5eeb5143ca0a2857af609084f6a325f437ac4jim into account the amount of traffic this worker has either seen
a6f5eeb5143ca0a2857af609084f6a325f437ac4jim or produced.</p>
eea3f46e1c885fa5107e376c58b39338cb4bfb09takashi <p>Then we mean that we want <var>b</var> to process twice the
eea3f46e1c885fa5107e376c58b39338cb4bfb09takashi amount of bytes than <var>a</var> or <var>c</var> should. It does
eea3f46e1c885fa5107e376c58b39338cb4bfb09takashi not necessarily mean that <var>b</var> would handle twice as
eea3f46e1c885fa5107e376c58b39338cb4bfb09takashi many requests, but it would process twice the I/O. Thus, the
eea3f46e1c885fa5107e376c58b39338cb4bfb09takashi size of the request and response are applied to the weighting
eea3f46e1c885fa5107e376c58b39338cb4bfb09takashi and selection algorithm.</p>
a6f5eeb5143ca0a2857af609084f6a325f437ac4jim <p>Note: input and output bytes are weighted the same.</p>
eea3f46e1c885fa5107e376c58b39338cb4bfb09takashi</modulesynopsis>