<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'><span id="result_box" lang="en"><span class="hps">OK</span> <span class="hps">I</span> <span class="hps">think I'll</span> <span class="hps">define</span> <span class="hps">a large</span> <span class="hps">value</span> <span class="hps">to be quiet</span><span>!</span> <span class="hps">But</span> <span class="hps">200000</span> <span class="hps">is very large</span><span>?</span> <span class="hps">They are</span> <span class="hps">the consequences of a</span> <span class="hps">too large value</span><span>?</span> <br><br><span class="hps">In the logs</span> <span class="hps">I spotted</span> <span class="hps">a few lines</span><span>:<br><br>Tue Jul 15 20:46:41 2014 : Error: Discarding duplicate request from client localhost:2054 - ID: 0 due to unfinished request 442908<br>Tue Jul 15 21:06:54 2014 : Error: Discarding duplicate request from client localhost:2056 - ID: 0 due to unfinished request 443583<br>Tue Jul 15 21:06:55 2014 : Error: Discarding duplicate request from client localhost:32768 - ID: 156 due to unfinished request 443584</span></span><span id="result_box" lang="en"><span><span id="result_box" lang="en"><span></span></span></span> <br><br><span class="hps">There is a</span> <span class="hps">relation with</span> <span class="hps">max_rquest</span> <span class="hps">or</span> <span class="hps">is something else</span><span>?</span></span><br><br><div><hr id="stopSpelling">From: nicolas.chaigneau@capgemini.com<br>To: freeradius-users@lists.freeradius.org<br>Subject: RE: radiusd.conf max request ?<br>Date: Fri, 18 Jul 2014 09:18:37 +0000<br><br>



<style><!--
.ExternalClass .ecxshape {
}
--></style><style><!--
.ExternalClass p.ecxMsoNormal, .ExternalClass li.ecxMsoNormal, .ExternalClass div.ecxMsoNormal {
font-size:12.0pt;
font-family:"Times New Roman","serif";
}

.ExternalClass a:link, .ExternalClass span.ecxMsoHyperlink {
color:blue;
text-decoration:underline;
}

.ExternalClass span.ecxMsoHyperlinkFollowed {
color:purple;
text-decoration:underline;
}

.ExternalClass p {
font-size:12.0pt;
font-family:"Times New Roman","serif";
}

.ExternalClass pre {
font-size:10.0pt;
font-family:"Courier New";
}

.ExternalClass p.ecxMsoAcetate, .ExternalClass li.ecxMsoAcetate, .ExternalClass div.ecxMsoAcetate {
font-size:8.0pt;
font-family:"Tahoma","sans-serif";
}

.ExternalClass span.ecxita-kd-inputtools-div {
}

.ExternalClass span.ecxhps {
}

.ExternalClass span.ecxPrformatHTMLCar {
font-family:Consolas;
}

.ExternalClass p.ecxmsonormal, .ExternalClass li.ecxmsonormal, .ExternalClass div.ecxmsonormal {
font-size:12.0pt;
font-family:"Times New Roman","serif";
}

.ExternalClass p.ecxmsochpdefault, .ExternalClass li.ecxmsochpdefault, .ExternalClass div.ecxmsochpdefault {
font-size:12.0pt;
font-family:"Times New Roman","serif";
}

.ExternalClass span.ecxmsohyperlink {
}

.ExternalClass span.ecxmsohyperlinkfollowed {
}

.ExternalClass span.ecxemailstyle20 {
}

.ExternalClass span.ecxprformathtmlcar {
}

.ExternalClass p.ecxmsonormal1, .ExternalClass li.ecxmsonormal1, .ExternalClass div.ecxmsonormal1 {
font-size:12.0pt;
font-family:"Times New Roman","serif";
}

.ExternalClass span.ecxmsohyperlink1 {
color:blue;
text-decoration:underline;
}

.ExternalClass span.ecxmsohyperlinkfollowed1 {
color:purple;
text-decoration:underline;
}

.ExternalClass span.ecxemailstyle201 {
font-family:"Calibri","sans-serif";
color:#1F497D;
}

.ExternalClass span.ecxprformathtmlcar1 {
font-family:"Courier New";
}

.ExternalClass p.ecxmsochpdefault1, .ExternalClass li.ecxmsochpdefault1, .ExternalClass div.ecxmsochpdefault1 {
font-size:10.0pt;
font-family:"Times New Roman","serif";
}

.ExternalClass span.ecxhps {
}

.ExternalClass span.ecxEmailStyle35 {
font-family:"Calibri","sans-serif";
color:#1F497D;
}

.ExternalClass span.ecxTextedebullesCar {
font-family:"Tahoma","sans-serif";
}

.ExternalClass .ecxMsoChpDefault {
font-size:10.0pt;
}

.ExternalClass div.ecxWordSection1 {
}

--></style>


<div class="ecxWordSection1">
<p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;" lang="EN-US"> </span></p>
<p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;" lang="EN-US">The traffic your server has to serve depends on your clients, only you can estimate that.</span></p>
<p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;" lang="EN-US"> </span></p>
<p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;" lang="EN-US">As Alan said, you can set max_requests to an arbitrary large value, e.g. 200000.</span></p>
<p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;" lang="EN-US">FreeRADIUS doesn’t consume much memory anyway, it probably won’t make any difference if it’s larger than necessary.</span></p>
<p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;" lang="EN-US"> </span></p>
<p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;" lang="EN-US"> </span></p>
<p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;" lang="EN-US"> </span></p>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm;">
<p class="ecxMsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";">De :</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";"> freeradius-users-bounces+nicolas.chaigneau=capgemini.com@lists.freeradius.org [mailto:freeradius-users-bounces+nicolas.chaigneau=capgemini.com@lists.freeradius.org]
<b>De la part de</b> Arnaud .<br>
<b>Envoyé :</b> vendredi 18 juillet 2014 10:56<br>
<b>À :</b> FreeRadius users mailing list<br>
<b>Objet :</b> RE: radiusd.conf max request ?</span></p>
</div>
</div>
<p class="ecxMsoNormal"> </p>
<div>
<div id="ecxgt-res-content">
<div>
<p class="ecxMsoNormal"><span class="ecxhps"><span style="font-family:"Calibri","sans-serif";" lang="EN">Thank you</span></span><span style="font-family:"Calibri","sans-serif";" lang="EN">
<span class="ecxhps">and where</span> <span class="ecxhps">can we see</span> <span class="ecxhps">
the maximum total requests/s rate</span>? <br>
<br>
<span class="ecxhps">Because it</span> <span class="ecxhps">is difficult to</span> <span class="ecxhps">
see the maximum</span> <span class="ecxhps">queries</span> <span class="ecxhps">to a</span>
<span class="ecxhps">given</span> <span class="ecxhps">order to determine</span> <span class="ecxhps">
the correct value</span> <span class="ecxhps">now?</span></span><span style="font-family:"Calibri","sans-serif";"></span></p>
</div>
</div>
<p class="ecxMsoNormal" style=""><span style="font-family:"Calibri","sans-serif";"><br>
</span><span style="font-family:"Calibri","sans-serif";" lang="EN">best Regards</span><span style="font-family:"Calibri","sans-serif";"></span></p>
<div>
<div class="ecxMsoNormal" style="text-align:center;" align="center"><span style="font-family:"Calibri","sans-serif";">
<hr id="ecxstopSpelling" align="center" size="2" width="100%">
</span></div>
<p class="ecxMsoNormal" style=""><span style="font-family:"Calibri","sans-serif";">From:
<a href="mailto:nicolas.chaigneau@capgemini.com">nicolas.chaigneau@capgemini.com</a><br>
To: <a href="mailto:freeradius-users@lists.freeradius.org">freeradius-users@lists.freeradius.org</a><br>
Subject: RE: radiusd.conf max request ?<br>
Date: Fri, 18 Jul 2014 08:29:51 +0000</span></p>
<div>
<p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;" lang="EN-US">A client is not limited to 256 ongoing requests.
</span><span style="font-family:"Calibri","sans-serif";"></span></p>
<p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;" lang="EN-US">One client can (and will, if need be) use multiple source ports (for each source port, 256 requests can be ongoing), hence sending as many requests
 as it needs at a given time.</span><span style="font-family:"Calibri","sans-serif";"></span></p>
<p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;" lang="EN-US"> </span><span style="font-family:"Calibri","sans-serif";"></span></p>
<p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;" lang="EN-US">This is not exact science.</span><span style="font-family:"Calibri","sans-serif";"></span></p>
<p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;" lang="EN-US">You need to do is evaluate the maximum total requests/s rate your server will have to serve.</span><span style="font-family:"Calibri","sans-serif";"></span></p>
<p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;" lang="EN-US">Multiply that by your max request time, and you have the max requests FreeRADIUS will be handling at a given time.</span><span style="font-family:"Calibri","sans-serif";"></span></p>
<p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;" lang="EN-US"> </span><span style="font-family:"Calibri","sans-serif";"></span></p>
<p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;" lang="EN-US">BTW, the following comment in radiusd.conf is misleading, it should probably be updated :</span><span style="font-family:"Calibri","sans-serif";"></span></p>
<p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;" lang="EN-US"> </span><span style="font-family:"Calibri","sans-serif";"></span></p>
<p class="ecxMsoNormal" style="line-height:13.5pt;"><span style="font-size:9.0pt;font-family:Consolas;color:#333333;" lang="EN-US">#  max_requests: The maximum number of requests which the server keeps</span><span style="font-family:"Calibri","sans-serif";"></span></p>
<p class="ecxMsoNormal" style="line-height:13.5pt;"><span style="font-size:9.0pt;font-family:Consolas;color:#333333;" lang="EN-US">#  track of.  This should be 256 multiplied by the number of clients.</span><span style="font-family:"Calibri","sans-serif";"></span></p>
<p class="ecxMsoNormal" style="line-height:13.5pt;"><span style="font-size:9.0pt;font-family:Consolas;color:#333333;" lang="EN-US">#  e.g. With 4 clients, this number should be 1024.</span><span style="font-family:"Calibri","sans-serif";"></span></p>
<p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;" lang="EN-US"> </span><span style="font-family:"Calibri","sans-serif";"></span></p>
<p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;" lang="EN-US"> </span><span style="font-family:"Calibri","sans-serif";"></span></p>
<p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;" lang="EN-US"> </span><span style="font-family:"Calibri","sans-serif";"></span></p>
<p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;" lang="EN-US"> </span><span style="font-family:"Calibri","sans-serif";"></span></p>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm;">
<p class="ecxMsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";">De :</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";">
<a href="mailto:freeradius-users-bounces+nicolas.chaigneau=capgemini.com@lists.freeradius.org">
freeradius-users-bounces+nicolas.chaigneau=capgemini.com@lists.freeradius.org</a> [<a href="mailto:freeradius-users-bounces+nicolas.chaigneau=capgemini.com@lists.freeradius.org">mailto:freeradius-users-bounces+nicolas.chaigneau=capgemini.com@lists.freeradius.org</a>]
<b>De la part de</b> Arnaud .<br>
<b>Envoyé :</b> vendredi 18 juillet 2014 09:36<br>
<b>À :</b> FreeRadius users mailing list<br>
<b>Objet :</b> RE: radiusd.conf max request ?</span><span style="font-family:"Calibri","sans-serif";"></span></p>
</div>
</div>
<p class="ecxMsoNormal"><span style="font-family:"Calibri","sans-serif";"> </span></p>
<div>
<p class="ecxMsoNormal"><span style="font-family:"Calibri","sans-serif";">Hello</span></p>
<div id="ecxgt-res-content">
<div>
<p class="ecxMsoNormal" style=""><span class="ecxhps"><span style="font-family:"Calibri","sans-serif";" lang="EN">So</span></span><span style="font-family:"Calibri","sans-serif";" lang="EN">
<span class="ecxhps">if I have</span> <span class="ecxhps">274</span> <span class="ecxhps">
routers</span> <span class="ecxhps">connected to</span> <span class="ecxhps">Hotspot</span>
<span class="ecxhps">Radius</span> <span class="ecxhps">server,</span> <span class="ecxhps">
I need</span> <span class="ecxhps">to put in</span> <span class="ecxhps">max-</span>request:
<span class="ecxhps">70144</span> <span class="ecxhps">(256</span> <span class="ecxhps">
queries</span> <span class="ecxhps">* number of</span> <span class="ecxhps">clients)</span>
<br>
<br>
<span class="ecxhps">Is this correct</span>?<br>
<br>
best Regards</span><span style="font-family:"Calibri","sans-serif";"></span></p>
</div>
</div>
<p class="ecxMsoNormal"><span style="font-family:"Calibri","sans-serif";"> </span></p>
<div>
<p class="ecxMsoNormal"><span style="font-family:"Calibri","sans-serif";">> Date: Thu, 17 Jul 2014 16:43:45 -0400<br>
> From: <a href="mailto:aland@deployingradius.com">aland@deployingradius.com</a><br>
> To: <a href="mailto:freeradius-users@lists.freeradius.org">freeradius-users@lists.freeradius.org</a><br>
> Subject: Re: radiusd.conf max request ?<br>
> <br>
> Arnaud . wrote:<br>
> > Hello,<br>
> > <br>
> > How should settle in "radiusd.conf" max_request_time, cleanup_delay and<br>
> > max_requests?<br>
> <br>
> The configuration files document what they're for, and what they do.<br>
> <br>
> > Currently I max_request_time = 30 cleanup_delay = 2 and max_requests =<br>
> > 50432<br>
> > <br>
> > Is it set? If it is misconfigured what can happen?<br>
> <br>
> Don't change max_request_time or cleanup_delay. Set max_requests to<br>
> some large value.<br>
> <br>
> If you get it wrong, error messages will appear in the log. The<br>
> messages will tell you to increase max_request_time.<br>
> <br>
> Alan DeKok.<br>
> -<br>
> List info/subscribe/unsubscribe? See <a href="http://www.freeradius.org/list/users.html" target="_blank">
http://www.freeradius.org/list/users.html</a></span></p>
</div>
</div>
</div>
<p class="ecxMsoNormal"><span style="font-size:7.0pt;font-family:"Calibri","sans-serif";">This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed.
 If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of
 this message.</span><span style="font-family:"Calibri","sans-serif";"> <br>
- List info/subscribe/unsubscribe? See <a href="http://www.freeradius.org/list/users.html" target="_blank">
http://www.freeradius.org/list/users.html</a></span></p>
</div>
</div>
</div>


<br>-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html</div>                                        </div></body>
</html>