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

Add "couch_server" aggregate to _system output #3370

Merged
merged 1 commit into from
Feb 15, 2021

Conversation

rnewson
Copy link
Member

@rnewson rnewson commented Feb 15, 2021

Overview

This helps ease transition from singleton couch_server to
multiple. The "couch_server" message queue is simply the sum of the
couch_server_X message queues.

Testing recommendations

N/A

Related Issues or Pull Requests

#3366

Checklist

  • Code is written and works correctly
  • Changes are covered by tests
  • Any new configurable parameters are documented in rel/overlay/etc/default.ini
  • A PR for documentation changes has been made in https://github.com/apache/couchdb-documentation

Copy link
Member

@davisp davisp left a comment

Choose a reason for hiding this comment

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

Couple nits.

@@ -937,6 +938,14 @@ num_servers() ->
erlang:system_info(schedulers).


aggregate_queue_len() ->
N = couch_server:num_servers(),
Copy link
Member

Choose a reason for hiding this comment

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

Are you using the fully qualified external call on purpose for reasons I'm not thinking of?

Copy link
Member Author

Choose a reason for hiding this comment

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

erm, nope. In the first commit it was in chttpd_node

@@ -289,6 +290,7 @@ message_queues(Registered) ->
{Name, Length}
end, Registered).


Copy link
Member

Choose a reason for hiding this comment

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

White space only hunks are not awesome.

@rnewson rnewson force-pushed the couch_server_system_aggregate branch from 9eaa75d to 379bf55 Compare February 15, 2021 17:58
@rnewson rnewson requested a review from davisp February 15, 2021 19:00
@rnewson rnewson force-pushed the couch_server_system_aggregate branch from 379bf55 to 21bc72c Compare February 15, 2021 19:34
This helps ease transition from singleton couch_server to
multiple. The "couch_server" message queue is simply the sum of the
couch_server_X message queues.
@rnewson rnewson force-pushed the couch_server_system_aggregate branch from 21bc72c to 5724e8e Compare February 15, 2021 19:37
Copy link
Member

@davisp davisp left a comment

Choose a reason for hiding this comment

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

+1

@rnewson rnewson merged commit dd0c3af into 3.x Feb 15, 2021
@rnewson rnewson deleted the couch_server_system_aggregate branch February 15, 2021 20:36
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

Successfully merging this pull request may close these issues.

2 participants