GithubHelp home page GithubHelp logo

Comments (3)

ioolkos avatar ioolkos commented on May 27, 2024

@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 increasing high_watermark setting using tcp_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.

wernermorgenstern avatar wernermorgenstern commented on May 27, 2024

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.

ioolkos avatar ioolkos commented on May 27, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.