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

CASSANDRA-17423 Add Native Transport Rate Limiter Options to Example cassandra.yaml and Expose Metric for Dispatch Rate #1500

Closed
wants to merge 2 commits into from

Conversation

maedhroz
Copy link
Contributor

No description provided.

…and expose metric for dispatch rate

patch by Caleb Rackliffe; reviewed by ? for CASSANDRA-17423
@maedhroz
Copy link
Contributor Author

Copy link
Contributor

@jmckenzie-dev jmckenzie-dev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 With one minor question about our default value

# enabled, the server will stop consuming messages from the channel/socket, putting backpressure on
# the client while already dispatched messages are processed.
# native_transport_rate_limiting_enabled: false
# native_transport_max_requests_per_second: 1000000
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why this default value? Thinking of an operator that might see this, say "Oh, I like this feature", and enable it thinking it's going to help them when 1M seems... high. :)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, the idea was that I wanted to make sure that even if an operator accidentally enabled the feature, it would still have a very high limit, something that wouldn't disrupt operations, until set explicitly. Then, once a reasonable limit for a workload is established, the enable switch is there to activate and deactivate that limit. WDYT?

@maedhroz
Copy link
Contributor Author

Committed in 4ea3e4c

@maedhroz maedhroz closed this Mar 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants