Disk or Database Bottleneck

Brief: https://privatebin.net/?1e99499390c18451#A6mhwNCDbw5FLtq8JGJiVgePjrY7rqDD4J4pN5iwLt9W

Full: PrivateBin

Locks: PrivateBin

Thread1: PrivateBin

That was it. grep asterisk messages

Still looks like it’s waiting on your database.

Just for fun:

asterisk -rx "cel show status"

1 Like

Oh how I wish :slight_smile:

 # asterisk -rx "cel show status"
CEL Logging: Disabled
1 Like

Should I try to batch CDR? I cannot imagine this is the issue with only 17 calls/ 32 channels at the high point.

I would first look for misconfiguration or a bug in your Sangomaconnect, of which I have no knowledge or interest in.

1 Like

Yeah, and sorry, that’s all I got. It just really has that “CEL is tying up the database” smell so I had to double check.

1 Like

I have the module installed, but no licenses for this server. I can uninstall the module.

afs-app-p12 as a systemd service is suspiciously appley, no?

Then do that

Hahaha, that the server name, but no apple relation.

Please explain

  • SangomaConnect 16.0.44.27 uninstalled

And afs-app-p12 stopped?

I don’t know what to do with this (out of my element).

afs-app-p12 shows up in every line in that column in the /var/log/messages file.

afs-app-p12 is the name of the server.
Asterisk Feature Server - Application - Production unit 12

Your logs show you have a systemd afs-app-p12.service that is running, find that file in it is an ExecStart line , also

systemctl status afs-app-p12

Will be helpful, (that is a very strange name for a server, how and where did you concoct it from?)

Edit: Perhaps I misinterpreted your messages file

1 Like
# systemctl status afs-app-p12
Unit afs-app-p12.service could not be found.

I have an eccentric boss :slight_smile: that likes what he likes.

Yeah, i led you wrong, sorry

1 Like

All good, you’re right far more often and I appreciate the help.

The backtrace shows a lot of waiting on the underlying AstDB database access. Normally this is fast, but at the point in time the backtrace was taken an AMI connection was doing a database show and was blocking all the other access. AstDB is also used by the custom device state functionality, which was being queried from the dialplan at the time too and blocked waiting for access. There’s also some direct AstDB access from the dialplan that was blocked.

Either something on the FreePBX side is causing a slow down of handling of the responses and AMI connection connectivity, or the AstDB is having issues. It feels like underlying storage issues to me, but that’s just a gut feeling.

1 Like