[JDEV] Setting karma to disabled

Keith Minkler kminkler at jabber.com
Thu May 10 14:11:39 CDT 2001


rate.c has nothing to do with karma.. 

there are two different types of rate limiting in the server..

jlimits, (rate.c) and the <rate/> tag in jabberd.xml have been around
since pre 1.0 in the server.. they only rate limit incoming connections,
by limiting how fast a certain IP can connect per a given amount of seconds..

karma, (karma.c) and the <karma/> tag in jabberd.xml was added to the server
around 1.1 or 1.2.. they limit the ammount of bytes a connection can send per
a given amount of time.. but it's done it a flexable manner than is fully
configurable (read: a pain to configure).

If you are trying to run a simulator, or stress test, you will need to disable
the connection rate limits, not the karma limits.. 

Hope this helps!

Keith


On Thu, May 03, 2001 at 10:07:43AM -0500, Dustin Puryear wrote:
> > "Harold E. Gottschalk Jr." wrote:
> > 
> > Dustin,
> > I spent most of my day looking through the jabberd code and found some
> > code that was misleading mio.c that I will present later after I come
> > up with a fix.
> > 
> > If you set the following you will disable karma, go to the service c2s
> > and set the <dec> to zero there.
> 
> Odd. I have the following and I still get rate-limited when I remove my
> "fix" to rate.c:
> 
>  <service id="c2s">
>     <load>
>       <pthsock_client>./pthsock/pthsock_client.so</pthsock_client>
>     </load>
>     <pthcsock xmlns='jabber:config:pth-csock'>
>       <authtime/>
>     <karma>
>       <heartbeat>2</heartbeat>
>       <init>1024</init>
>       <max>4096</max>
>       <inc>6</inc>
>       <dec>0</dec>
>       <penalty>0</penalty>
>       <restore>1024</restore>
>     </karma>
> 
> Regards, Dustin
> 
> 
> > 
> >   <service id="c2s">
> >     <load>
> >       <pthsock_client>./pthsock/pthsock_client.so</pthsock_client>
> >     </load>
> >     <pthcsock xmlns='jabber:config:pth-csock'>
> >       <authtime/>
> >       <karma>
> >         <init>10</init>
> >         <max>10</max>
> >         <inc>1</inc>
> >         <dec>0</dec>
> >         <penalty>-6</penalty>
> >         <restore>10</restore>
> >       </karma>
> > 
> > I did this and it worked for me.  If it does not work then I might
> > have fixed something in mio.c that made it work.  But the hacks I did
> > there did not make it work unil I played with the above karma.  I
> > played with the karma in <io> to no avail.
> > 
> > I hope this helps you out.
> > 
> > heg
> > 
> > "If at first the idea is not absurd, then there is no hope for it." -
> > Albert Einstein
> > 
> > 
> 
> -- 
> Dustin Puryear <dpuryear at usa.net>
> http://members.telocity.com/~dpuryear
> In the beginning the Universe was created. 
> This has been widely regarded as a bad move. - Douglas Adams
> _______________________________________________
> jdev mailing list
> jdev at jabber.org
> http://mailman.jabber.org/listinfo/jdev
Keith Minkler

-------
Software Developer
Jabber.COM, Inc.
-------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 232 bytes
Desc: not available
URL: <https://www.jabber.org/jdev/attachments/20010510/40bcd046/attachment-0002.pgp>


More information about the JDev mailing list