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 a RPC call to flush buffers and stop workers #1134

Merged
merged 1 commit into from
Aug 1, 2016

Conversation

tagomoris
Copy link
Member

revised version of #1111.

@@ -82,6 +82,16 @@ def run_rpc_server
end
nil
}
@rpc_server.mount_proc('/api/plugins.flushBuffersAndKillWorkers') { |req, res|
Copy link
Member

Choose a reason for hiding this comment

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

killWorkers operation is not related with plugins so adding it to plugins prefix seems not good.
processes is better.

Copy link
Member Author

Choose a reason for hiding this comment

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

Understood.

@tagomoris tagomoris force-pushed the rpc-call-flush-and-stop branch from 9116cdb to b46e652 Compare August 1, 2016 05:57
@tagomoris
Copy link
Member Author

@repeatedly could you review once again?

@@ -75,6 +75,16 @@ def run_rpc_server
Process.kill :TERM, $$
nil
}
@rpc_server.mount_proc('/api/processes.flushBuffersAndKillWorkers') { |req, res|
$log.debug "fluentd RPC got /api/plugins.flushBuffersAndKillWorkers request"
Copy link
Member

Choose a reason for hiding this comment

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

plugins -> processes

Copy link
Member Author

Choose a reason for hiding this comment

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

uguh, fixed :P

@tagomoris tagomoris force-pushed the rpc-call-flush-and-stop branch from b46e652 to 8507b3c Compare August 1, 2016 07:09
@repeatedly
Copy link
Member

LGTM

@tagomoris tagomoris merged commit 3213d10 into master Aug 1, 2016
@tagomoris tagomoris deleted the rpc-call-flush-and-stop branch August 1, 2016 07:35
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