[asterisk-users] SIP Mass exodus

2013-11-13 Thread Mike Diehl
Hi all,

I've been seeing some strangeness lately on my 10.2.1 server.  It's
gotten to the point that a few times each day, I see masses of SIP
clients becoming unreachable.  They're not all on the same network,
and we don't see any calls drop.  In a few seconds, they all come
back.

I don't think it's a connectivity issue because we don't drop calls,
and the endpoints aren't on the same networks.  We don't see excessive
CPU load when it happens.

It does SEEM to happen most right after someone accesses their voicemail.

We are using RT SIP registration as well as database voicemail storage
(mysql).  The database is on the same machine as the asterisk server.

Have we grown beyond the ability to host both the db and * on the same
hardware?  Or is this a known issue with a (hopefully) known fix?

TIA,

Mike Diehl.

-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] SIP Mass exodus

2013-11-13 Thread Chris Bagnall
On 13 Nov 2013, at 18:29, Mike Diehl mdiehlena...@gmail.com wrote:
 I've been seeing some strangeness lately on my 10.2.1 server.  It's
 gotten to the point that a few times each day, I see masses of SIP
 clients becoming unreachable.  They're not all on the same network,
 and we don't see any calls drop.  In a few seconds, they all come
 back.
 I don't think it's a connectivity issue because we don't drop calls,
 and the endpoints aren't on the same networks.  We don't see excessive
 CPU load when it happens.
 It does SEEM to happen most right after someone accesses their voicemail.


We saw this happen on a 1.4 server a couple of years ago shortly after 2am each 
day. It was only after a study of the cron schedule we narrowed it down to a 
number of rsync backup jobs which were run at that time.

As in your case, it wasn't a connectivity or bandwidth issue - in the end we 
put it down to a disk I/O bottleneck. It might be worth running something like 
iostat on your box to see if you see a spike in iowait as voicemail is being 
checked. We resolved it simply by rate limiting our rsync jobs. In your case 
with a busy database, you might want to look at your MySQL indexes and/or cache 
settings - this might be something worth asking about on the respective MySQL 
discussion groups as well as here.

Kind regards,

Chris
-- 
This email is made from 100% recycled electrons


-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] SIP Mass exodus

2013-11-13 Thread Markus

Mike,

Am 14.11.2013 01:48, schrieb Chris Bagnall:

As in your case, it wasn't a connectivity or bandwidth issue - in the end we 
put it down to a disk I/O bottleneck. It might be worth running something like 
iostat on your box to see if you see a spike in iowait as voicemail is being 
checked. We resolved it simply by rate limiting our rsync jobs. In your case 
with a busy database, you might want to look at your MySQL indexes and/or cache 
settings - this might be something worth asking about on the respective MySQL 
discussion groups as well as here.


you could also throw in some more stuff like the following and run it 
for 24 hours every second, then check the log for the timestamp to 
figure out what happened:


while true; do echo `date`; asterisk -rx 'sip show peers'; asterisk -rx 
'sip show channelstats'; mysqladmin --password=yourpass processlist; ps 
auxww; vmstat; iostat; echo; echo; echo; sleep 1; done  log.txt


Regards
Markus



--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
  http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users