<div dir="ltr"><div class="gmail_quote">
<blockquote style="BORDER-LEFT:#ccc 1px solid;MARGIN:0px 0px 0px 0.8ex;PADDING-LEFT:1ex" class="gmail_quote">
<div dir="ltr">
<div> </div>
<div>&gt;How do you reload your htable? Is it using the exec( ) function to call the<br>&gt;mi command sht_reload? Or do you have another method?</div>
<div> </div>
<div>I use the exec() to run a shell script with the relevant mi command. the shell script return code is used to make sure all went OK.</div>
<div><br>&gt;Thanks<br><br>&gt;Reda<br><br><br><br>On Mon, Mar 26, 2012 at 14:56, Uri Shacked &lt;<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">ushacked at gmail.com</a>&gt; wrote:<br>
<br>&gt;<i>  Hi,<br></i>&gt;<i><br></i>&gt;<i><br></i>&gt;<i><br></i>&gt;<i> I made these kinds of tests before. I have two tips for you to pay<br></i>&gt;<i> attention to:<br></i>&gt;<i><br></i>&gt;<i> 1.      Read about the [routes] on SIPp, It is tricky to satisfy kamailio<br>
</i>&gt;<i> with SIPp scenarios.<br></i>&gt;<i><br></i>&gt;<i> 2.      Make sure your DB table is well build (use less varchars and more<br></i>&gt;<i> integers).<br></i>&gt;<i><br></i>&gt;<i> I found out that there are many kamailio modules I can use to load data in<br>
</i>&gt;<i> to memory and I hardly use the DB (only for ACC). I use MTREE, HTABLE,<br></i>&gt;<i> DIALPLAN, CARRIERROUTE, DROUTING, and so to store the information I need.<br></i>&gt;<i> And I get it with the simple functions of the module.<br>
</i>&gt;<i><br></i>&gt;<i> I load around 6 million numbers and other data which takes about 1.5 Gb of<br></i>&gt;<i> the memory.<br></i>&gt;<i><br></i>&gt;<i> For getting around the real-time changes that I need to deal with (In DB<br>
</i>&gt;<i> the data changes are immediately made on your service…). I have a RTIMER<br></i>&gt;<i> every 120 sec that check is a reload is needed. If so, it reloads the<br></i>&gt;<i> relevant data (very fast).<br></i>&gt;<i><br>
</i>&gt;<i> BR,<br></i>&gt;<i><br></i>&gt;<i> Uri<br></i>&gt;<i><br></i>&gt;<i><br></i>&gt;<i><br></i>&gt;<i><br></i>&gt;<i> Hello,<br></i>&gt;<i><br></i>&gt;<i> On 3/20/12 12:12 PM, Stephen Dodge (Bistech) wrote:<br></i>&gt;<i> &gt;*<br>
</i>&gt;<i> *&gt;* Hello,<br></i>&gt;<i> *&gt;*<br></i>&gt;<i> *&gt;* I am running Kamailio 3.1.5 with a MySQL backend on CentOS.   A<br></i>&gt;<i> *&gt;* connection to MySQL (an off box MySQL cluster) is required for every<br>
</i>&gt;<i> *&gt;* call, sqlops is used to determine destinations and acc to record CDR *<br></i>&gt;<i> &gt;* information.<br></i>&gt;<i> *&gt;*<br></i>&gt;<i> *&gt;* I am planning to load test our server using SIPp to generate calls, I<br>
</i>&gt;<i> *&gt;* was wondering if anyone has done something similar and could provide<br></i>&gt;<i> *&gt;* advice on what we should monitor on our Kamailio Server.  i.e Server<br></i>&gt;<i> *&gt;* CPU &amp; Memory<br>
</i>&gt;<i> *&gt;*<br></i>&gt;<i> *&gt;* Thanks in advance for your help.<br></i>&gt;<i> *&gt;*<br></i>&gt;<i> *if you do a lot of direct DB interactions, perhaps latency of the<br></i>&gt;<i> queries will be relevant. You can use benchmark module to see how long<br>
</i>&gt;<i> it takes to execute part of the config file.<br></i>&gt;<i><br></i>&gt;<i> I think you don&#39;t fetch lot of records from db in config, so memory<br></i>&gt;<i> should be no problem, however you can dump private/shared memory usage<br>
</i>&gt;<i> via RPC commands within sercmd cli. CPU is a good metric always and easy<br></i>&gt;<i> to watch with systems tools.<br></i>&gt;<i><br></i>&gt;<i> Cheers,<br></i>&gt;<i> Daniel<br></i>&gt;<i> &gt;*<br></i>&gt;<i> *&gt;* Steve.<br>
</i>&gt;<i> *<br></i></div></div></blockquote></div><br></div>