Comments (3)
@wernermorgenstern This is likely coming from the ports of your outgoing sessions (the 2 consumers).
You're probably not yet getting disconnects, though.
I cannot give you an elaborated recipe here, but a couple of keywords to look into:
- configuring adapted TCP buffers (
buffer_sizes
,tcp_listen_options
, maybe increasinghigh_watermark
setting usingtcp_listen_options
) - increasing the non-acked inflight window (but only if your messages use QoS > 0)
- using shared subscriptions to have consumer side load balancing between multiple consumer instances
👉 Thank you for supporting VerneMQ: https://github.com/sponsors/vernemq
👉 Using the binary VerneMQ packages commercially (.deb/.rpm/Docker) requires a paid subscription.
from vernemq.
Thank you.
We do use shared subscriptions. So that is good.
Here is our config:
DOCKER_VERNEMQ_MAX_MESSAGE_RATE = 0
DOCKER_VERNEMQ_MAX_OFFLINE_MESSAGES = 0
DOCKER_VERNEMQ_MAX_ONLINE_MESSAGES = 1000
DOCKER_VERNEMQ_MAX_INFLIGHT_MESSAGES = 1000
DOCKER_VERNEMQ_SHARED_SUBSCRIPTION_POLICY = prefer_local
DOCKER_VERNEMQ_UPGRADE_OUTGOING_QOS = off
DOCKER_VERNEMQ_COORDINATE_REGISTRATIONS = on
DOCKER_VERNEMQ_QUEUE_TYPE = lifo
DOCKER_VERNEMQ_LISTENER__NR_OF_ACCEPTORS = 400
DOCKER_VERNEMQ_TCP_LISTEN_OPTIONS = [{sndbuf, 32768}, {recbuf, 32768}, {buffer, 65536}, {nodelay, true}, {linger, {true, 10}}, {send_timeout, 30000}, {send_timeout_close, true}]
systree_enabled = on
systree_interval = 20000
graphite_interval = 100000
plugins.vmq_bridge = off
plugins.vmq_webhooks = off
vmq_bcrypt.pool_size = 1
erlang.async_threads = 64
erlang.max_ports = 262144
leveldb.maximum_memory.percent = 20
Our QoS is 1.
How would I configure these two options:
- configuring adapted TCP buffers (buffer_sizes, tcp_listen_options, maybe increasing high_watermark setting using tcp_listen_options)
- increasing the non-acked inflight window (but only if your messages use QoS > 0)
from vernemq.
How would I configure these two options:
- configuring adapted TCP buffers (buffer_sizes, tcp_listen_options, maybe increasing high_watermark setting using tcp_listen_options)
- increasing the non-acked inflight window (but only if your messages use QoS > 0)
For the first, by adding values (for high_watermark
and low_watermark
) to tcp_listen_options
, the second is max_inflight_messages
👉 Thank you for supporting VerneMQ: https://github.com/sponsors/vernemq
👉 Using the binary VerneMQ packages commercially (.deb/.rpm/Docker) requires a paid subscription.
from vernemq.
Related Issues (20)
- [Question]: Does VerneMQ support RocksDB in 1.13.0? HOT 12
- [Bug]: Issues with the correct CPU quota detection on k8s v1.26 HOT 12
- [Bug]: Outgoing QoS upgrades not affecting storage of offline messages HOT 5
- [Bug]: vmq_http_pub plugins apis not restricted by api key and bounded to default http listener HOT 7
- Enhancement: MQTT TLS listeners with multiple TLS versions.
- [Bug]: Loss of retained QoS 1 messages across cluster nodes HOT 1
- [Bug]: <title>HIGH CPU for VerneMQ (beam.smp) HOT 3
- Support Alternative TCP listener with proxy protocol enabled by default HOT 6
- VerneMQ HTTPs support HOT 12
- [Bug]: Websockets upgrade request: HTTP 431: Request Header Fields Too Large with big cookies HOT 11
- [Bug]: CRASH REPORT Process with 0 neighbours crashed with reason: bad argument in vmq_cluster_com:process_bytes/3 line 171 HOT 1
- [Bug]: VerneMQ Certificates for testing expired HOT 1
- vernemq-1.13.0.bullseye.arm64.tar.gz support Ubuntu aarch64? HOT 7
- [Bug]: SSL Validation Error with Diversity - Postgresql starting 2.0.0 HOT 17
- [Bug]: Some protocol violations or bugs in VerneMQ HOT 19
- Log format "JSON" also for Console Logging HOT 3
- 500 server error in publish response (vmq_http_pub) HOT 4
- Drop OTP24, add OTP27 support HOT 3
- [Bug]: Node failure causes cluster restart HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vernemq.