mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 14:47:19 -04:00
for an ack for that message before sending another. Work around this: - batch up messages to sendmsg() and flush when there are more than 10 in the queue or there has been more than 1 second since flushing and the queue is non-empty This increases the indexing rate by a factor of 6.
14 lines
283 B
Ruby
14 lines
283 B
Ruby
require 'rubygems'
|
|
require 'lib/net/socket'
|
|
require 'socket'
|
|
require 'stomp'
|
|
require 'uuid'
|
|
|
|
module LogStash; module Net
|
|
class MessageServer < MessageSocket
|
|
#def run
|
|
#subscribe("logstash")
|
|
#super
|
|
#end
|
|
end # class MessageServer
|
|
end; end # module LogStash::Net
|