Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Low TPS! #1168

Open
vaska94 opened this issue Dec 19, 2023 · 1 comment
Open

Low TPS! #1168

vaska94 opened this issue Dec 19, 2023 · 1 comment

Comments

@vaska94
Copy link

vaska94 commented Dec 19, 2023

Hello, we are getting super low TPS 15-20 on Jasmin, we have Gigabit VPN Directly to Mobile Operator.
I have found that changing:
yield self.amqpBroker.chan.basic_qos(prefetch_count=1)
from 1 too 100 in jasmin/managers/clients.py boosted speed to around 40-50 TPS.
increasing submit_throughput doesn't help either.
Any Ideas how to speed up even more?
on Mobile operator side there are no limits. Hardware is also quite decent jasmin runs on NVME, 32 RAM, New Xeon CPUs.
p.s: we are sending messages via HTTP api to smpp

@magojr
Copy link

magojr commented Dec 19, 2023

We also experienced slow HTTP TPS but we tried to "remove" the Jasmin part and bench just the http overhead founding that it's the bottleneck.
Switching from HTPP to SMPP we speed up from 18 to 140 TPS.
The point is HTTP api must re-enstablish the connection for every message, SMPP take the connection active and reuse it;
messages flows on the (already opened) connection and the (slow) network and I/O resources are not anymore the bottleneck.

I'm not sure if it is also your case, hope it may be helpful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants